/fuchsia/zircon/system/utest/fuzz-utils/ |
H A D | fuzzer-fixture.cpp | 68 bool FuzzerFixture::CreatePackage(const char* package, long int version, const char* target) { argument 78 CreateFile(path("pkgfs/packages/%s/%ld/bin/%s", package, version, target).c_str())); 82 CreateFile(path("pkgfs/packages/%s/%ld/meta/%s.cmx", package, version, target).c_str())); 85 CreateFile(path("pkgfs/packages/%s/%ld/data/%s/corpora", package, version, target).c_str(), 90 path("pkgfs/packages/%s/%ld/data/%s/dictionary", package, version, target).c_str(), 95 CreateFile(path("pkgfs/packages/%s/%ld/data/%s/options", package, version, target).c_str(), 102 bool FuzzerFixture::CreateData(const char* package, const char* target) { argument 105 ASSERT_TRUE(CreateDirectory(path("data/fuzzing/%s/%s/corpus", package, target).c_str())); 106 ASSERT_TRUE(CreateFile(path("data/fuzzing/%s/%s/crash-deadbeef", package, target).c_str())); 107 ASSERT_TRUE(CreateFile(path("data/fuzzing/%s/%s/leak-deadfa11", package, target) [all...] |
H A D | fuzzer-fixture.h | 38 // Creates a fake fuzz |target| in the given |version| of a fake Fuchsia |package|. Adds fake 40 bool CreatePackage(const char* package, long int version, const char* target); 43 // and |target|. 44 bool CreateData(const char* package, const char* target);
|
H A D | test-fuzzer.cpp | 124 bool TestFuzzer::CheckProcess(zx_handle_t process, const char* target) { argument 125 if (target) { 126 set_target(target); 138 fbl::String package, target; local 143 // .../boot/test/fuzz/<target> 145 target.Set(s + fixture_.path("boot/test/fuzz/").length()); 148 // fuchsia-pkg://fuchsia.com/<package>#meta/<target>.cmx 156 target.Set(s, t - s); 158 fixture_.max_version(package.c_str()), target.c_str()); 163 (rc = data_path_.Push(target [all...] |
H A D | test-fuzzer.h | 68 void FindZirconFuzzers(const char* zircon_path, const char* target, StringMap* out) { argument 69 Fuzzer::FindZirconFuzzers(zircon_path, target, out); 71 void FindFuchsiaFuzzers(const char* package, const char* target, StringMap* out) { argument 72 Fuzzer::FindFuchsiaFuzzers(package, target, out);
|
/fuchsia/zircon/system/ulib/fit/include/lib/fit/ |
H A D | function_internal.h | 29 struct target; 32 struct target<decltype(nullptr), true, Result, Args...> { struct in namespace:fit::internal 47 constexpr target_ops<Result, Args...> target<decltype(nullptr), true, Result, Args...>::ops = { 49 &target::invoke, 54 struct target<Callable, true, Result, Args...> { struct in namespace:fit::internal 55 static void initialize(void* bits, Callable&& target) { argument 56 new (bits) Callable(std::move(target)); 59 auto& target = *static_cast<Callable*>(bits); local 60 return target(std::forward<Args>(args)...); 68 auto& target local 87 struct target<Callable, false, Result, Args...> { struct in namespace:fit::internal 88 initialize(void* bits, Callable&& target) argument 93 auto& target = **static_cast<Callable**>(bits); local 147 function(Result (target)Args...)) argument 155 function(Callable target) argument 184 operator =(Callable target) argument 211 Callable* target() { function in class:fit::internal::function 217 const Callable* target() const { function in class:fit::internal::function 231 std::shared_ptr<function> target; member in struct:fit::internal::function::ref 240 auto target = ref{std::make_shared<function>(std::move(*this))}; local 254 initialize_target(Callable target) argument [all...] |
H A D | defer.h | 17 // The wrapper holds a function-like callable target with no arguments 25 // Creates a deferred action without a pending target. 29 // Creates a deferred action with a pending target. 30 explicit deferred_action(T target) { argument 31 if (fit::internal::is_null(target)) { 35 new (&target_) T(std::move(target)); 39 // Creates a deferred action with a pending target moved from another 40 // deferred action, leaving the other one without a pending target. 45 // Invokes and releases the deferred action's pending target (if any). 50 // Returns true if the deferred action has a pending target 132 defer(T target) argument [all...] |
/fuchsia/zircon/kernel/lib/version/include/lib/ |
H A D | version.h | 20 const char* target; member in struct:__anon83
|
/fuchsia/zircon/kernel/target/ |
H A D | init.cpp | 8 #include <target.h> 15 * default implementations of these routines, if the target code
|
/fuchsia/zircon/system/ulib/fbl/include/fbl/ |
H A D | function.h | 76 ZX_PANIC("Attempted to invoke fbl::Function with a null target."); 87 explicit InlineFunctionTarget(Callable target) argument 88 : target_(fbl::move(target)) {} 89 InlineFunctionTarget(Callable target, AllocChecker* ac) argument 90 : target_(fbl::move(target)) { ac->arm(0u, true); } 114 explicit HeapFunctionTarget(Callable target) argument 115 : target_ptr_(fbl::make_unique<Callable>(fbl::move(target))) {} 116 HeapFunctionTarget(Callable target, AllocChecker* ac) argument 117 : target_ptr_(fbl::make_unique_checked<Callable>(ac, fbl::move(target))) {} 138 // Holds a function target 164 InitializeTarget(Callable target) argument 169 InitializeTarget(Callable target, AllocChecker* ac) argument 182 FunctionTarget& target() { return *reinterpret_cast<FunctionTarget*>(&bits_); } function in struct:fbl::internal::final 183 const FunctionTarget& target() const { return *reinterpret_cast<const FunctionTarget*>(&bits_); } function in struct:fbl::internal::final 218 Function(Callable target) argument 223 Function(Callable target, AllocChecker* ac) argument 255 operator =(Callable target) argument 261 SetTarget(Callable target) argument 267 SetTarget(Callable target, AllocChecker* ac) argument 281 InitializeTarget(Callable target) argument 292 InitializeTarget(Callable target, AllocChecker* ac) argument [all...] |
/fuchsia/zircon/system/ulib/fuzz-utils/include/fuzz-utils/ |
H A D | fuzzer.h | 49 void set_target(const char* target) { target_.Set(target); } argument 70 // 'zircon_fuzzers' fuzz package located under |zircon_path| and matching |target|, if 72 void FindZirconFuzzers(const char* zircon_path, const char* target, StringMap* out); 75 // fuzz |package| located under "pkgfs/packages" and matching |target|, if specified. 76 void FindFuchsiaFuzzers(const char* package, const char* target, StringMap* out); 79 // |package| and |target|. 80 void FindFuzzers(const char* package, const char* target, StringMap* out); 92 // Callback used by |Walker| to match the fuzz target sub-process and print information on it, 122 // Fuzzer name; may be a user-supplied pattern until resolved into a package/target [all...] |
/fuchsia/zircon/system/core/netsvc/ |
H A D | netboot.c | 52 nbfilecontainer_t* target) { 55 assert(target); 58 if (target->file.data) { 66 st = zx_vmar_unmap(zx_vmar_root_self(), (uintptr_t)target->file.data, target->file.size); 72 zx_handle_close(target->data); 74 target->file.offset = 0; 75 target->file.size = 0; 76 target->file.data = 0; 79 st = zx_vmo_create(size, 0, &target 51 nbfilecontainer_init(size_t size, nbfilecontainer_t* target) argument [all...] |
/fuchsia/zircon/kernel/top/ |
H A D | rules.mk | 15 kernel/target
|
/fuchsia/zircon/system/ulib/gfx/ |
H A D | gfx.c | 461 void gfx_surface_blend(struct gfx_surface* target, struct gfx_surface* source, unsigned destx, unsigned desty) { argument 462 gfx_blend(target, source, 0, 0, source->width, source->height, destx, desty); 468 void gfx_blend(gfx_surface* target, gfx_surface* source, unsigned srcx, unsigned srcy, unsigned width, unsigned height, unsigned destx, unsigned desty) { argument 469 assert(target->format == source->format); 471 xprintf("target %p, source %p, srcx %u, srcy %u, width %u, height %u, destx %u, desty %u\n", target, source, srcx, srcy, width, height, destx, desty); 473 if (destx >= target->width) 475 if (desty >= target->height) 483 if (destx + width > target->width) 484 width = target [all...] |
/fuchsia/zircon/kernel/object/ |
H A D | excp_port.cpp | 73 void ExceptionPort::SetTarget(const fbl::RefPtr<JobDispatcher>& target) { argument 81 DEBUG_ASSERT(target != nullptr); 83 target_ = target; 86 void ExceptionPort::SetTarget(const fbl::RefPtr<ProcessDispatcher>& target) { argument 94 DEBUG_ASSERT(target != nullptr); 96 target_ = target; 99 void ExceptionPort::SetTarget(const fbl::RefPtr<ThreadDispatcher>& target) { argument 107 DEBUG_ASSERT(target != nullptr); 109 target_ = target; 131 // Unbind ourselves from our target i [all...] |
/fuchsia/zircon/kernel/arch/arm64/ |
H A D | mp.cpp | 82 zx_status_t arch_mp_send_ipi(mp_ipi_target_t target, cpu_mask_t mask, mp_ipi_t ipi) { argument 83 LTRACEF("target %d mask %#x, ipi %d\n", target, mask, ipi); 85 // translate the high level target + mask mechanism into just a mask 86 switch (target) {
|
/fuchsia/zircon/kernel/object/include/object/ |
H A D | excp_port.h | 29 // Represents the binding of an exception port to a specific target 50 // Records the target that the ExceptionPort is bound to, so it can 52 void SetTarget(const fbl::RefPtr<JobDispatcher>& target); 53 void SetTarget(const fbl::RefPtr<ProcessDispatcher>& target); 54 void SetTarget(const fbl::RefPtr<ThreadDispatcher>& target); 56 // Drops the ExceptionPort's references to its target and PortDispatcher. 57 // Called by the target when the port is explicitly unbound. 76 // Unbinds from the target if bound, and drops the ref to |port_|. 80 // Returns true if the ExceptionPort is currently bound to a target. 97 // The target o [all...] |
/fuchsia/zircon/kernel/lib/gfx/ |
H A D | gfx.cpp | 321 void gfx_surface_blend(struct gfx_surface* target, struct gfx_surface* source, uint destx, uint desty) { argument 322 DEBUG_ASSERT(target->format == source->format); 324 LTRACEF("target %p, source %p, destx %u, desty %u\n", target, source, destx, desty); 326 if (destx >= target->width) 328 if (desty >= target->height) 332 if (destx + width > target->width) 333 width = target->width - destx; 336 if (desty + height > target->height) 337 height = target [all...] |
/fuchsia/zircon/kernel/lib/version/ |
H A D | version.cpp | 35 .target = TARGET, 45 printf("\ttarget: %s\n", version.target);
|
/fuchsia/zircon/system/uapp/ihda/ |
H A D | intel_hda_codec.h | 29 zx_status_t (*parser)(TARGET_TYPE& target, const CodecResponse& resp); 54 zx_status_t RunCommandList(T& target,
|
/fuchsia/zircon/system/ulib/fuzz-utils/ |
H A D | fuzzer.cpp | 254 void Fuzzer::FindZirconFuzzers(const char* zircon_path, const char* target, StringMap* out) { argument 264 targets->keep_if(target); 270 void Fuzzer::FindFuchsiaFuzzers(const char* package, const char* target, StringMap* out) { argument 286 targets->keep_if(target); 298 void Fuzzer::FindFuzzers(const char* package, const char* target, StringMap* out) { argument 300 FindZirconFuzzers("boot/test/fuzz", target, out); 301 FindZirconFuzzers("system/test/fuzz", target, out); 303 FindFuchsiaFuzzers(package, target, out); 321 fbl::String package, target; local 322 if (ParseName(name, &package, &target) 432 const char* target = target_.c_str(); local 529 fbl::String package, target; local [all...] |
/fuchsia/zircon/system/utest/fbl/include/fbl/tests/intrusive_containers/ |
H A D | sequence_container_test_environment.h | 409 bool DoInsert(TargetType&& target, size_t pos) { argument 421 container().insert(target, new_object); 423 container().insert(target, TestEnvTraits::Transfer(new_object)); 427 container().insert(target, fbl::move(new_object)); 517 // the end() iterator as the target. 604 ContainerType target; local 605 EXPECT_EQ(0U, Size(target), ""); 607 // Splice empty source into end of empty target list. 608 target.splice(target [all...] |
/fuchsia/zircon/system/ulib/lockdep/include/lockdep/ |
H A D | thread_lock_state.h | 61 void Replace(AcquiredLockEntry* target); 225 inline void AcquiredLockEntry::Replace(AcquiredLockEntry* target) { argument 226 ThreadLockState::Get()->Replace(target, this);
|
/fuchsia/zircon/kernel/lib/vdso/ |
H A D | vdso.cpp | 108 #define set_symbol(symbol, target) \ 110 PASTE(VDSO_CODE_, target,), \ 111 PASTE(VDSO_CODE_, target, _SIZE)) 164 #define REDIRECT_SYSCALL(dynsym_window, symbol, target) \ 166 dynsym_window.set_symbol(symbol, target); \ 167 dynsym_window.set_symbol(_ ## symbol, target); \
|
/fuchsia/zircon/system/ulib/blobfs/ |
H A D | lz4.cpp | 101 uint8_t* target = target_buf + target_drained; local 104 size_t r = LZ4F_decompress(ctx, target, &dst_sz_next, src, &src_sz_next, nullptr);
|
/fuchsia/zircon/system/ulib/gfx/include/gfx/ |
H A D | gfx.h | 79 // blend source surface to target surface 80 void gfx_surface_blend(struct gfx_surface* target, struct gfx_surface* source, unsigned destx, unsigned desty); 82 // blend an area from the source surface to the target surface 83 void gfx_blend(struct gfx_surface* target, struct gfx_surface* source, unsigned srcx, unsigned srcy, unsigned width, unsigned height, unsigned destx, unsigned desty);
|