Skip to content
Snippets Groups Projects
  1. May 11, 2019
    • Sean Klein's avatar
      [test][digest] Relocate unit tests to exist alongside source · cd9c7326
      Sean Klein authored
      Change-Id: Ib244d3afefbad49c5534bf71882c7f21ceff3b9b
      cd9c7326
    • Marie Janssen 💖's avatar
      [bt] Eliminate ::common:: namespace. · f6de06b4
      Marie Janssen 💖 authored
      Remove the ::common:: namespace for sapphire-wide objects.
      
      fx format-code
      
      Test: bt-host-unittests, manual test of supported platforms (no
          behavior change)
      BT-870
      
      Change-Id: I810f29852e0da0d3d5bec25d57b2706d39be4e61
      f6de06b4
    • Erick Tryzelaar's avatar
      [pkg-uri] Implement PkgUri::repo() · 930b3afc
      Erick Tryzelaar authored
      This allows for a zero copy conversion of a package uri into
      a repo uri.
      
      Change-Id: I6281b1a323ac7fe8b65c0556f1d638cd3cd8d114
      930b3afc
    • Jeremy Manson's avatar
      [fidlcat] Add XUnion support · bc135434
      Jeremy Manson authored
      DX-1013 #comment Add XUnion support
      
      Change-Id: I778175f975f9783824531018dab47fab8cadba7f
      bc135434
    • Roland McGrath's avatar
      [zircon][gn][libc] Add ubsan-sancov-full variant · c556aa40
      Roland McGrath authored
      This new variant enables all the kinds of sancov instrumentation,
      not just the basic one that the standard runtime handles.  This
      exercises more of the instrumentation features that e.g. fuzzing
      also uses.  The special magic in the dynamic linker to cope with
      the instrumentation is extended to handle all the cases.
      
      Bug: ZX-3986 #comment ubsan-sancov-full variant
      Test: /boot/test/sys/noop-test.ubsan-sancov-full
      Change-Id: I2ca2bbaca732526ee10e0d60822410f48d8eb1ef
      c556aa40
    • Roland McGrath's avatar
      [zircon][gn] Fix legacy export of trace-handler library · d7a53561
      Roland McGrath authored
      This makes it possible for Fuchsia GN targets to depend
      on //zircon/public/lib/trace-handler or on a static library
      like //zircon/public/lib/trace-test-utils that uses it.
      
      Bug: BLD-473 #done
      Test: no immediate effect on the build
      Change-Id: If29ed149c178c2aae0d03316d518de6e2d3c22a0
      d7a53561
    • Sean Klein's avatar
      [test][async-loop] Relocate unit tests to exist alongside source · c9d95b25
      Sean Klein authored
      Change-Id: I572c24dbcaf13e0197037499e379f94956cc5aa7
      c9d95b25
    • Adam Barth's avatar
      [sdk] Add sys and vfs to the SDK · 10fb4a7c
      Adam Barth authored
      Several customers have started copying these libraries into their tree.
      We're now at a point where we can add these libraries to the SDK.
      
      DX-387 #done
      
      Test: Captured by the "api" files.
      Change-Id: I0d2ecb6a259a145a9563ed5d3c39e28b5b467c89
      10fb4a7c
    • Jinwoo Lee's avatar
      Revert "[amberctl] Mirror source edits to pkg_resolver" · 34034708
      Jinwoo Lee authored
      This reverts commit 96f91478.
      
      Reason for revert: Breaks tests of SDK consumers.
      
      Original change's description:
      > [amberctl] Mirror source edits to pkg_resolver
      > 
      > To ease the migration from using amber source configs to using
      > pkg_resolver repository configs, this change modifies the source
      > management commands in amberctl to perform roughly equivalent operations
      > on the RepositoryManager and rewrite.Engine.
      > 
      > Test: modified amberctl test to verify pkg_resolver state
      > 
      > PKG-704 #done
      > 
      > Change-Id: I92853a61b59a60693014853862a9494c9d227caa
      
      TBR=raggi@google.com,etryzelaar@google.com,kevinwells@google.com,computerdruid@google.com,galbanum@google.com
      
      Change-Id: Ie0621d15882b5f71bc737fa2a9558b6d965cc361
      No-Presubmit: true
      No-Tree-Checks: true
      No-Try: true
      34034708
    • Casey Dahlin's avatar
      [debugger][elflib] Move Build ID extraction to elflib · 5b27d23c
      Casey Dahlin authored
      Change-Id: Ie2919f76b09db6f7419fc3be598af72f6f10ef24
      5b27d23c
    • Rich Kadel's avatar
      [fidl][docs] Add exception for repeating names if ambiguous · 513cd4f5
      Rich Kadel authored
      Test: No behavior change
      Change-Id: Ibd3183ee8337a77d30701a4e75cf635458dc10f4
      513cd4f5
    • Francois Rousseau's avatar
      [crash] switch to using fsl::GetObjectName to get the process name · 16d75f60
      Francois Rousseau authored
      the default name (from when the lookup fails) changes from "unknown-package" to "", which is fine and package was a bit of a misnomer anyway
      
      TESTED=`fx run-test crashpad_agent_tests`
      
      Change-Id: I51e4b86e2ccc74bc3e2d8751480211139f68aab2
      16d75f60
    • Francois Rousseau's avatar
      [feedback] add utilies to check the number of data provider processes in tests · 786d36b7
      Francois Rousseau authored
      for now, there are no data provider processes, but in the future there
      will be one per connection to fuchsia.feedback.DataProvider. This CL is
      just to introduce the test utilities.
      
      DX-1497 #comment
      
      TESTED=`fx run-test feedback_agent_tests -t feedback_agent_integration_test`
      
      Change-Id: Ia5cb07334d3d27874318cd6b54fcf4afaa336da0
      786d36b7
    • Joshua Seaton's avatar
      [build-id] Reland "[build-id] pass extended ids.txt to dump_breakpad_symbols" · 1a4a0325
      Joshua Seaton authored
      This is a reland of e52f9b4c
      
      Original change's description:
      > [build-id] pass extended ids.txt to dump_breakpad_symbols
      >
      > This change creates a concatenation of the ids.txt produced by the build
      > that that produced by the .build-id archives downloaded from CIPD - and
      > passes that to dump_breakpad_symbols.
      >
      > Tested locally.
      >
      > Bug: INTK-884 #comment
      > Bug: INTK-969 #comment
      > Change-Id: I9d96f8098239ca6a1c828be0a44dbe36a0c3b14a
      
      Bug: INTK-884 #comment, INTK-969 #comment
      Change-Id: I90adfc83c16bc00e80ff97f8bfe7190ae4607e21
      1a4a0325
    • Marie Janssen 💖's avatar
      [bt][host] Rename DeviceId => PeerId · 94ae69c8
      Marie Janssen 💖 authored
      DeviceId only referred to peers and is renamed to be more consistent
      with the idea that it is an identifier for a bluetooth peer.
      
      fx format-code because "Peer" is 2 characters shorter
      
      Test: bt-host-unittests (no behavior change)
      BT-870
      
      Change-Id: Ib97223e106bf9a9efb506de343ce218ba0b50c62
      94ae69c8
    • Yifei Teng's avatar
      [fidlc] Emit transitive dependencies in "library_dependencies" JSON IR · f76d76f3
      Yifei Teng authored
      When library A depends on B and B depends on C, declarations from C are
      not emitted as part of the JSON IR for library A. This would not work in
      backend generation if A references declarations from C.
      
      TEST:
      ./scripts/build-zircon-x64 -A
      ./scripts/ninja -C ./build-asan system/utest:host
      build-asan/host-x64-linux-clang/obj/system/utest/fidl-compiler/fidl-compiler-test
      
      Change-Id: Ic48ec8b2e55280ac6bedbd78853c2bd1303df288
      f76d76f3
    • Yifei Teng's avatar
      [fdio][llcpp] Start of migration to llcpp · 9c7feb81
      Yifei Teng authored
      Begin in remoteio.cpp, by rewriting calls to the C binding as llcpp.
      
      Public APIs converted:
      - fdio_open_at
      - fdio_service_connect_at
      - fdio_service_clone
      - fdio_service_clone_to
      
      As of this patch, some implementations are less than ideal: most
      helper functions take zx_handle_t as arguments as opposed to zx::channel
      or zx::unowned_channel, which encodes ownership in the type. As a
      result, there are frequent casting from zx_handle_t to zx::channel etc.
      and vice versa. As greater proportion of the library is converted to
      C++, these conversions may be removed.
      
      Change-Id: I9a8bc4df228610daafa64eec7ebc99ba194a3489
      9c7feb81
    • Roland McGrath's avatar
      [zircon][gn] Add build-tests target · 60950397
      Roland McGrath authored
      Instantiate the noop-test target in each variant of each environment()
      defined by standard_environments().  The top-level build-tests target
      collects all of these and is in the default set.  This ensures that
      each supported variant gets exercised and can successfully build an
      executable.
      
      Bug: BLD-430
      Change-Id: Iccd823f7711c9cff04e0c6bf891f7d4541023b27
      60950397
    • Tom Turney's avatar
      [sl4f] Rustfmt all of SL4F · ebca4e0f
      Tom Turney authored
      Bug: NONE
      Test: fx build-push sl4f
      Change-Id: If2b2f90cd059f82122c98b1ca73f99ad743b1512
      ebca4e0f
    • Sean Klein's avatar
      [test][async] Relocate ulib/async unit tests to live alongside source · da73f664
      Sean Klein authored
      Change-Id: Iad9571687b97d6f41b40d5ee17c3e2c356295c8a
      da73f664
    • Ben Keller's avatar
      [fuchsia_pkg] Rename package path to resource path · bd827aa7
      Ben Keller authored
      Change-Id: I9ac02eced65672a7fbedad4dd8337875846dd530
      bd827aa7
    • Roland McGrath's avatar
      [dev] system/dev/test is test, not dev · 4b89ce59
      Roland McGrath authored
      Bug: BLD-478 #done
      Test: observed built bringup.x64 system has no /boot/test
      Change-Id: Ib31ecd17306448f7a2600d3213316d8ead843536
      4b89ce59
    • Roland McGrath's avatar
      [drivers] Avoid system/dev/lib/mmio deps in libraries and tests · ed1f3896
      Roland McGrath authored
      Test code needs to use the mock mmio library header while driver
      code needs to use the real mmio library header.  Hence, a library
      like ddktl or hwreg that is used in both contexts cannot rely on
      this header directly.  Instead, make the APIs agnostic to mmio
      implementation by using forward declarations and requiring users of
      the mmio-related APIs to #include what they use.
      
      The renaming of the mock library to aaa-mock-mmio-reg was a previous
      attempt to work around this issue, which is actually wholly
      inadequate in the current build system.  So the library is renamed
      back to mock-mmio-reg.
      
      In the hwreg library, this was achieved by using a template common
      to the kernel and non-kernel cases, rather than an explicit forward
      declaration.  To make that work, the argument order for
      RegisterIo::Write was swapped to match MmioBuffer::Write so that
      they are interchangeable in template instantiation.
      
      Both implementations of the <lib/mmio/mmio.h> were using templates
      where they should have been using simple forward declarations.  Fix
      that so that separate forward declarations become tenable.
      
      Some cases of non-driver code still using the real mmio library
      remain and need to be untangled.
      
      Bug: ZX-4062 #comment hwreg, ddktl libraries made mmio-header-agnostic
      Change-Id: Ie20c246049b37569346790439b6b315fef69234a
      ed1f3896
    • Todd Eisenberger's avatar
      [devshell] Make fx reboot work without netruncmd · 488bb0d0
      Todd Eisenberger authored
      This attempts both netruncmd and ssh.
      
      Change-Id: I7fb6d2a16c1ae436f4a113207de1c536d789cfbc
      488bb0d0
    • Jake Ehrlich's avatar
      [prebuilt] Roll symbolize · c8ba10e0
      Jake Ehrlich authored
      This adds support for reading notes from sections before reading from segmnets.
      This allows split debug files to be used.
      
      Bug: TC-450 #done
      
      Change-Id: Ib2f66b9ea08f1767fb992dbf41955ff64abbc929
      c8ba10e0
    • John Bauman's avatar
      [magma][vkreadback] Reduce bind offset with large alignment · 4028fb11
      John Bauman authored
      On powervr the alignment requirements are large (around 4096), causing
      the bind offset to be large enough so that the resulting buffers OOM in
      ManyReadback.
      
      Change-Id: Ib6e046a16fe491742f971004bb3088eadec72721
      4028fb11
    • Jody Sankey's avatar
      [identity] Move dev auth providers to /src/identity. · 2459de2d
      Jody Sankey authored
      Previously the two auth providers were packaged together. There wasn't a
      good reason for this and its likely they will eventually be used
      separately so we give them their own package.
      
      AUTH-196 #comment
      
      Change-Id: I5dd60fdd18a10261636e46fde90d30587e76f0a9
      2459de2d
    • Marie Janssen 💖's avatar
      [bt][host] rename RemoteDevice to Peer · aa571291
      Marie Janssen 💖 authored
      as part of the effort to use consistent vocabulary, rename RemoteDevice
      to Peer, including PeerCache and related variables.
      
      fx format-code for reflows.
      
      Test: bt-host-unittests (no behavior change)
      BT-870
      
      Change-Id: Ib96e929f93e2fac23ccf098e6df9921678cd2e11
      aa571291
    • Yifei Teng's avatar
      [fidl] [llcpp] Fix an undefined behavior in move constructor of unions · 370d15d2
      Yifei Teng authored
      A subtle case in the move constructor of llcpp unions was exposed in the
      fdio refactor, when the code uses more than two std::moves, and compiled
      by GCC for ARM64. The move constructor delegates the move of the union
      payload to the corresponding move assignment operator of the payload.
      However, the payload's memory is not initilized when its move assignment
      operator is invoked, causing potential undefined behaivor.
      
      GCC perhaps took advantage of this and generated unexpected code.
      
      TEST: https://fuchsia-review.googlesource.com/c/fuchsia/+/274654 passes
      all the tests, when rebased over this patch. I'm not exactly sure how to
      write a test for this exact case.
      
      Change-Id: I05b1eb4be60d921a7ab12f167b45189ab1c4de94
      370d15d2
    • docs-roller's avatar
      [gndoc] Update GN build arguments documentation · 4824de96
      docs-roller authored
      Test: CQ
      
      Change-Id: Ib88d643a5fe64fce99fc33e68588453dddf66521
      4824de96
    • Erick Tryzelaar's avatar
      [system-ota-tests] Extract the host/target testing lib · cf476d5c
      Erick Tryzelaar authored
      This makes it easier for other tests to use the infrastructure
      created in the system ota tests for other host/target-style testing.
      
      Change-Id: Ib704b713d2889512656ebdbc0a58fd3063649414
      cf476d5c
    • Ankur Mittal's avatar
      Revert "[wlan-inspect] Be explicit about logging Option" · f9915b7a
      Ankur Mittal authored
      This reverts commit f50bcc0c.
      
      Reason for revert: Build is failing
      
      Original change's description:
      > [wlan-inspect] Be explicit about logging Option
      > 
      > Previously, we added a blanket WriteInspect implementation to Option
      > types that would log a value only if an Option doesn't exist. When
      > looking at an inspect_log call on an optional value, it's non-obvious
      > that in some cases, no value would be logged, and this blanket
      > implementation was only added because inspect_log didn't have a way to
      > specify optional logging.
      > 
      > With this commit, optional logging can be specified with a question
      > mark on the key, so the blanket WriteInspect implementation is also
      > removed.
      > 
      > Test: fx run-test wlan-inspect-tests
      > Change-Id: I926c20fe2e64fc2e1221c2b84b61d5d9b062e817
      
      TBR=qsr@google.com,hahnr@google.com,eyw@google.com,kiettran@google.com
      
      Change-Id: Iac6d853aa9561dd04089408b071909da66dcb63e
      No-Presubmit: true
      No-Tree-Checks: true
      No-Try: true
      f9915b7a
    • Joshua Seaton's avatar
      [test-env] Undo NUC restriction · 3f453965
      Joshua Seaton authored
      This was a band-aid put in place during the NUC shortage that allowed
      NUC environments by default only for debug builds.
      
      Change-Id: I55939864854b1f8ea640976d4cfc891becdc675a
      3f453965
  2. May 10, 2019
    • Dustin Green's avatar
      [ddk] Fix get_root_resource() bug references. · 51a2aa3e
      Dustin Green authored
      Change-Id: I9e6b33b75a7e70485a7d125db1251823cc682c3f
      51a2aa3e
    • Ilya Bobyr's avatar
      [pseudo-fs] Support OPEN_FLAG_POSIX · 3770a29d
      Ilya Bobyr authored
      Since the introduction of the hierarchical rights, we need
      OPEN_FLAG_POSIX to property traverse directires via the POSIX emulation
      layer.
      
      Change-Id: Ia33500623998a5919fdf6dd3cd162d6e928b0cc5
      3770a29d
    • Ross Wang's avatar
      [e2e][sl4f][dart] Adding request to JsonRpcException · 0568b97c
      Ross Wang authored
      Without the request, it's hard to tell exactly what went wrong.
      
      Test: logging change + unable to reproduce locally since adding
      Change-Id: I3c91315d14b0f2b47ba02b6af2504c1a55e503c9
      0568b97c
    • Kiet Tran's avatar
      [wlan-inspect] Be explicit about logging Option · f50bcc0c
      Kiet Tran authored
      Previously, we added a blanket WriteInspect implementation to Option
      types that would log a value only if an Option doesn't exist. When
      looking at an inspect_log call on an optional value, it's non-obvious
      that in some cases, no value would be logged, and this blanket
      implementation was only added because inspect_log didn't have a way to
      specify optional logging.
      
      With this commit, optional logging can be specified with a question
      mark on the key, so the blanket WriteInspect implementation is also
      removed.
      
      Test: fx run-test wlan-inspect-tests
      Change-Id: I926c20fe2e64fc2e1221c2b84b61d5d9b062e817
      f50bcc0c
    • Kiet Tran's avatar
      [wlan][sme] Improve key logging in Inspect · b7918049
      Kiet Tran authored
      WLAN-1117 #done
      
      Test: Verify Inspect output. Example:
      ```
      4:
        @time = 80.777
        cipher = 00-0F-AC:4
        derived_key = PTK
      5:
        @time = 80.777
        cipher = 00-0F-AC:2
        derived_key = GTK
        key_index = 2
      ```
      
      Change-Id: Id1046dcfbd65fc800d6b7cfbd04e7dd7ee27052e
      b7918049
    • Ilya Bobyr's avatar
      [pseudo-fs] Run rustfmt · 2ba01b86
      Ilya Bobyr authored
      For some reason some of the code was not formatted with rustfmt.  Maybe
      rustfmt or it's config has changed, or we forgot to run it.
      
      This change is a noop - just formatting changes.
      
      Change-Id: I86c480b5aa74bbf5c6c33940b9628382f473b20c
      2ba01b86
    • Vikram Auradkar's avatar
      [odu] Simplify Support operations · e2d1fa08
      Vikram Auradkar authored
      Supported operations will be used during argument parsing
      to varify that Target supports requested operations. For example
      if user wants to stress file creation then to verify we need
      Target to support readdir and opendir.
      
      There is no need to have current Option<> in TargetOps structure.
      
      Test: fx run-test odu_tests
      
      Change-Id: Ic5821433f67ca2cdc32d6b7076d4fe278047bfc0
      e2d1fa08
Loading