Home
last modified time | relevance | path

Searched defs:hook (Results 1 – 25 of 226) sorted by relevance

12345678910

/external/python/cpython3/Lib/test/
Daudit-tests.py278 def hook(event, args): function
297 def hook(event, args): function
312 def hook(event, args): function
335 def hook(event, args): function
357 def hook(event, args): function
375 def hook(event, args): function
393 def hook(event, *args): function
418 def hook(event, args): function
429 def hook(event, args): function
440 def hook(event, args): function
[all …]
/external/cronet/tot/base/allocator/partition_allocator/src/partition_alloc/
Dpartition_alloc_hooks.cc72 if (auto* hook = allocation_observer_hook_.load(std::memory_order_relaxed)) { in AllocationObserverHookIfEnabled() local
82 if (auto* hook = allocation_override_hook_.load(std::memory_order_relaxed)) { in AllocationOverrideHookIfEnabled() local
90 if (auto* hook = free_observer_hook_.load(std::memory_order_relaxed)) { in FreeObserverHookIfEnabled() local
96 if (auto* hook = free_override_hook_.load(std::memory_order_relaxed)) { in FreeOverrideHookIfEnabled() local
118 if (ReallocOverrideHook* hook = in ReallocOverrideHookIfEnabled() local
128 QuarantineOverrideHook* hook) { in SetQuarantineOverrideHook()
/external/cronet/stable/base/allocator/partition_allocator/src/partition_alloc/
Dpartition_alloc_hooks.cc72 if (auto* hook = allocation_observer_hook_.load(std::memory_order_relaxed)) { in AllocationObserverHookIfEnabled() local
82 if (auto* hook = allocation_override_hook_.load(std::memory_order_relaxed)) { in AllocationOverrideHookIfEnabled() local
90 if (auto* hook = free_observer_hook_.load(std::memory_order_relaxed)) { in FreeObserverHookIfEnabled() local
96 if (auto* hook = free_override_hook_.load(std::memory_order_relaxed)) { in FreeOverrideHookIfEnabled() local
118 if (ReallocOverrideHook* hook = in ReallocOverrideHookIfEnabled() local
128 QuarantineOverrideHook* hook) { in SetQuarantineOverrideHook()
/external/pytorch/torch/csrc/autograd/
Dpython_cpp_function.cpp85 for (const auto& hook : fn.tensor_pre_hooks()) { in THPCppFunction_traverse() local
100 for (const auto& hook : fn.pre_hooks()) { in THPCppFunction_traverse() local
105 for (const auto& hook : fn.post_hooks()) { in THPCppFunction_traverse() local
183 PyObject* THPCppFunction_register_hook(PyObject* self, PyObject* hook) { in THPCppFunction_register_hook()
188 PyObject* THPCppFunction_register_prehook(PyObject* self, PyObject* hook) { in THPCppFunction_register_prehook()
340 PyObject* callRegisterFn(PyObject* dict, PyObject* hook) { in callRegisterFn()
354 PyObject* registerFunctionHook(Node& fn, PyObject* hook) { in registerFunctionHook()
356 for (const auto& hook : fn.post_hooks()) { in registerFunctionHook() local
377 PyObject* registerFunctionPreHook(Node& fn, PyObject* hook) { in registerFunctionPreHook()
379 for (const auto& hook : fn.pre_hooks()) { in registerFunctionPreHook() local
Dpython_hook.cpp69 const auto hook = PyList_GetItem(hooks, idx); in _call_hooks() local
244 for (const auto hook : saved.get_curr_node_call().post_acc_grad_hooks) { in apply_with_saved() local
289 static void check_result(PyObject* prev, PyObject* result, PyObject* hook) { in check_result()
318 PyObject* hook) { in check_single_result()
341 static std::string hook_name(PyObject* hook) { in hook_name()
Dcpp_hook.cpp33 auto& hook = (*hooks_)[i]; in operator ()() local
52 std::function<at::TensorBase(const at::TensorBase&)> hook, in CppFunctionSingleTensorPreHook()
/external/pytorch/torch/csrc/autograd/functions/
Daccumulate_grad.cpp60 auto& hook = tensor_post_acc_grad_hooks(); in apply() local
73 auto& hook = tensor_post_acc_grad_hooks(); in compiled_args() local
96 auto& hook = tensor_post_acc_grad_hooks(); in apply_with_saved() local
/external/caliper/caliper/src/main/java/com/google/caliper/runner/
DShutdownHookRegistrar.java26 void addShutdownHook(Thread hook); in addShutdownHook()
32 boolean removeShutdownHook(Thread hook); in removeShutdownHook()
DRuntimeShutdownHookRegistrar.java21 @Override public void addShutdownHook(Thread hook) { in addShutdownHook()
25 @Override public boolean removeShutdownHook(Thread hook) { in removeShutdownHook()
/external/rust/android-crates-io/crates/signal-hook/tests/
Dshutdown.rs59 fn hook() { in cleanup_inside_signal() function
75 fn hook() { in cleanup_after_signal() function
/external/tensorflow/tensorflow/compiler/xla/service/
Dllvm_compiler.h42 void SetPreOptimizationHook(ModuleHook hook) { in SetPreOptimizationHook()
51 void SetPostOptimizationHook(ModuleHook hook) { in SetPostOptimizationHook()
/external/trace-cmd/lib/trace-cmd/
Dtrace-hooks.c17 struct hook_list *hook; in tracecmd_create_event_hook() local
159 struct hook_list *hook; in tracecmd_free_hooks() local
/external/caliper/caliper/src/test/java/com/google/caliper/runner/
DWorkerProcessTest.java59 @Override public void addShutdownHook(Thread hook) { in addShutdownHook()
62 @Override public boolean removeShutdownHook(Thread hook) { in removeShutdownHook()
121 Thread hook = Iterables.getOnlyElement(registrar.hooks); in shutdownHook_exitValueThrows() local
/external/linux-kselftest/tools/testing/selftests/bpf/prog_tests/
Dtc_bpf.c25 static int test_tc_bpf_basic(const struct bpf_tc_hook *hook, int fd) in test_tc_bpf_basic()
68 static int test_tc_bpf_api(struct bpf_tc_hook *hook, int fd) in test_tc_bpf_api()
/external/rust/android-crates-io/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/base/internal/
Datomic_hook_test.cc32 hook; in TEST() local
60 hook(TestHook); in TEST() local
/external/angle/third_party/abseil-cpp/absl/base/internal/
Datomic_hook_test.cc32 hook; in TEST() local
60 hook(TestHook); in TEST() local
/external/abseil-cpp/absl/base/internal/
Datomic_hook_test.cc32 hook; in TEST() local
60 hook(TestHook); in TEST() local
/external/openscreen/third_party/abseil/src/absl/base/internal/
Datomic_hook_test.cc32 hook; in TEST() local
60 hook(TestHook); in TEST() local
/external/cronet/tot/third_party/abseil-cpp/absl/base/internal/
Datomic_hook_test.cc32 hook; in TEST() local
60 hook(TestHook); in TEST() local
/external/cronet/stable/third_party/abseil-cpp/absl/base/internal/
Datomic_hook_test.cc32 hook; in TEST() local
60 hook(TestHook); in TEST() local
/external/libbpf/src/
Dnetlink.c542 static int attach_point_to_config(struct bpf_tc_hook *hook, in attach_point_to_config()
582 static int tc_qdisc_modify(struct bpf_tc_hook *hook, int cmd, int flags) in tc_qdisc_modify()
606 static int tc_qdisc_create_excl(struct bpf_tc_hook *hook) in tc_qdisc_create_excl()
611 static int tc_qdisc_delete(struct bpf_tc_hook *hook) in tc_qdisc_delete()
616 int bpf_tc_hook_create(struct bpf_tc_hook *hook) in bpf_tc_hook_create()
632 int bpf_tc_hook_destroy(struct bpf_tc_hook *hook) in bpf_tc_hook_destroy()
718 int bpf_tc_attach(const struct bpf_tc_hook *hook, struct bpf_tc_opts *opts) in bpf_tc_attach()
792 static int __bpf_tc_detach(const struct bpf_tc_hook *hook, in __bpf_tc_detach()
853 int bpf_tc_detach(const struct bpf_tc_hook *hook, in bpf_tc_detach()
865 int bpf_tc_query(const struct bpf_tc_hook *hook, struct bpf_tc_opts *opts) in bpf_tc_query()
/external/tensorflow/tensorflow/core/util/
Dcommand_line_flags.cc31 const std::function<bool(string)>& hook, in ParseStringFlag()
44 const std::function<bool(int32_t)>& hook, in ParseInt32Flag()
65 const std::function<bool(int64_t)>& hook, in ParseInt64Flag()
86 const std::function<bool(bool)>& hook, in ParseBoolFlag()
113 const std::function<bool(float)>& hook, in ParseFloatFlag()
/external/aws-sdk-java-v2/core/sdk-core/src/test/java/software/amazon/awssdk/core/client/
DAsyncClientHandlerInterceptorExceptionTest.java81 private final Hook hook; field in AsyncClientHandlerInterceptorExceptionTest
92 public AsyncClientHandlerInterceptorExceptionTest(Hook hook) { in AsyncClientHandlerInterceptorExceptionTest()
/external/clang/test/Sema/
Dassign-null.c7 hookfunc hook; variable
/external/pytorch/test/distributed/_tools/
Dtest_mod_tracker.py93 def hook(mod, hook_name): function
166 def hook(mod, mt, hook_name): function

12345678910