Home
last modified time | relevance | path

Searched full:hook (Results 1 – 25 of 2403) sorted by relevance

12345678910>>...97

/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() argument
36 ret = bpf_tc_attach(hook, &opts); in test_tc_bpf_basic()
47 ret = bpf_tc_attach(hook, &opts); in test_tc_bpf_basic()
52 ret = bpf_tc_query(hook, &opts); in test_tc_bpf_basic()
63 ret = bpf_tc_detach(hook, &opts); in test_tc_bpf_basic()
68 static int test_tc_bpf_api(struct bpf_tc_hook *hook, int fd) in test_tc_bpf_api() argument
76 if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_hook_create invalid hook = NULL")) in test_tc_bpf_api()
79 /* hook ifindex = 0 */ in test_tc_bpf_api()
81 if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_hook_create invalid hook ifindex == 0")) in test_tc_bpf_api()
85 if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_hook_destroy invalid hook ifindex == 0")) in test_tc_bpf_api()
[all …]
/external/trace-cmd/lib/trace-cmd/
Dtrace-hooks.c17 struct hook_list *hook; in tracecmd_create_event_hook() local
29 hook = malloc(sizeof(*hook)); in tracecmd_create_event_hook()
30 if (!hook) in tracecmd_create_event_hook()
32 memset(hook, 0, sizeof(*hook)); in tracecmd_create_event_hook()
36 free(hook); in tracecmd_create_event_hook()
40 hook->str = str; in tracecmd_create_event_hook()
41 hook->hook = arg; in tracecmd_create_event_hook()
83 hook->start_system = system; in tracecmd_create_event_hook()
84 hook->start_event = event; in tracecmd_create_event_hook()
85 hook->start_match = match; in tracecmd_create_event_hook()
[all …]
/external/tensorflow/tensorflow/python/training/
Dbasic_session_run_hooks_test.py246 hook = basic_session_run_hooks.LoggingTensorHook(
248 hook.begin()
249 mon_sess = monitored_session._HookedSession(sess, [hook])
257 hook.end(sess)
264 hook = basic_session_run_hooks.LoggingTensorHook(
266 hook.begin()
267 mon_sess = monitored_session._HookedSession(sess, [hook])
287 hook.end(sess)
311 hook = basic_session_run_hooks.LoggingTensorHook(
313 hook.begin()
[all …]
/external/pigweed/pw_presubmit/py/pw_presubmit/
Dinstall_hook.py15 """Creates a Git hook that calls a script with certain arguments."""
41 def _stdin_args_for_hook(hook) -> Sequence[str]: argument
42 """Gives stdin arguments for each hook.
46 if hook == 'pre-push':
53 if hook in ('pre-receive', 'post-receive', 'reference-transaction'):
55 if hook == 'post-rewrite':
67 hook: str,
71 """Installs a simple Git hook that executes the provided command.
74 hook: Git hook to install, e.g. 'pre-push'.
75 command: Command to execute as the hook. The command is executed from the
[all …]
/external/python/cpython3/Lib/test/
Daudit-tests.py14 """Used in standard hook tests to collect any logged events.
83 with TestHook() as hook:
85 assertEqual(hook.seen[0][0], "test_event")
86 assertEqual(hook.seen[0][1], (1, 2, 3))
90 # Raising an exception should prevent a new hook from being added,
100 # Raising BaseException will propagate out when adding a hook
105 # Adding this next hook should raise BaseException
115 with TestHook() as hook:
126 actual = [(a[0], a[1]) for e, a in hook.seen if e == "marshal.dumps"]
129 actual = [a[0] for e, a in hook.seen if e == "marshal.loads"]
[all …]
/external/python/google-api-python-client/docs/dyn/
Dapigee_v1.organizations.environments.flowhooks.html79 <p class="firstline">Attaches a shared flow to a flow hook.</p>
85 <p class="firstline">Detaches a shared flow from a flow hook.</p>
88 … the shared flow attached to the specified flow hook. If there's no shared flow attached to the fl…
92 <pre>Attaches a shared flow to a flow hook.
95 …name: string, Required. Name of the flow hook to which the shared flow should be attached in the f…
100 …ontinue if the flow hook throws an exception. Set to `true` to continue execution. Set to `false` …
101 &quot;description&quot;: &quot;A String&quot;, # Description of the flow hook.
102 … &quot;A String&quot;, # Output only. Where in the API call flow the flow hook is invoked. Must be…
103 …&quot;sharedFlow&quot;: &quot;A String&quot;, # Shared flow attached to this flow hook, or empty i…
115 …ontinue if the flow hook throws an exception. Set to `true` to continue execution. Set to `false` …
[all …]
/external/elfutils/backends/
Dppc64_init.c51 HOOK (eh, reloc_simple_type); in ppc64_init()
52 HOOK (eh, dynamic_tag_name); in ppc64_init()
53 HOOK (eh, dynamic_tag_check); in ppc64_init()
54 HOOK (eh, machine_flag_check); in ppc64_init()
55 HOOK (eh, copy_reloc_p); in ppc64_init()
56 HOOK (eh, check_special_symbol); in ppc64_init()
57 HOOK (eh, check_st_other_bits); in ppc64_init()
58 HOOK (eh, bss_plt_p); in ppc64_init()
59 HOOK (eh, return_value_location); in ppc64_init()
60 HOOK (eh, register_info); in ppc64_init()
[all …]
Darm_init.c49 HOOK (eh, segment_type_name); in arm_init()
50 HOOK (eh, section_type_name); in arm_init()
51 HOOK (eh, machine_flag_check); in arm_init()
52 HOOK (eh, reloc_simple_type); in arm_init()
53 HOOK (eh, register_info); in arm_init()
54 HOOK (eh, core_note); in arm_init()
55 HOOK (eh, auxv_info); in arm_init()
56 HOOK (eh, check_object_attribute); in arm_init()
57 HOOK (eh, return_value_location); in arm_init()
58 HOOK (eh, abi_cfi); in arm_init()
[all …]
Dppc_init.c49 HOOK (eh, reloc_simple_type); in ppc_init()
50 HOOK (eh, machine_flag_check); in ppc_init()
51 HOOK (eh, dynamic_tag_name); in ppc_init()
52 HOOK (eh, dynamic_tag_check); in ppc_init()
53 HOOK (eh, check_special_symbol); in ppc_init()
54 HOOK (eh, bss_plt_p); in ppc_init()
55 HOOK (eh, return_value_location); in ppc_init()
56 HOOK (eh, register_info); in ppc_init()
57 HOOK (eh, core_note); in ppc_init()
58 HOOK (eh, auxv_info); in ppc_init()
[all …]
Dsparc_init.c54 HOOK (eh, reloc_simple_type); in sparc_init()
55 HOOK (eh, machine_flag_check); in sparc_init()
56 HOOK (eh, check_special_section); in sparc_init()
57 HOOK (eh, symbol_type_name); in sparc_init()
58 HOOK (eh, dynamic_tag_name); in sparc_init()
59 HOOK (eh, dynamic_tag_check); in sparc_init()
63 HOOK (eh, core_note); in sparc_init()
64 HOOK (eh, auxv_info); in sparc_init()
65 HOOK (eh, register_info); in sparc_init()
66 HOOK (eh, return_value_location); in sparc_init()
[all …]
/external/private-join-and-compute/third_party/abseil-cpp-20230125.2/absl/base/internal/
Datomic_hook_test.cc32 hook; in TEST() local
36 EXPECT_TRUE(hook.Load() == nullptr); in TEST()
38 hook(1); in TEST()
41 // Test a stored hook. in TEST()
42 hook.Store(TestHook); in TEST()
43 EXPECT_TRUE(hook.Load() == TestHook); in TEST()
45 hook(1); in TEST()
48 // Calling Store() with the same hook should not crash. in TEST()
49 hook.Store(TestHook); in TEST()
50 EXPECT_TRUE(hook.Load() == TestHook); in TEST()
[all …]
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/base/internal/
Datomic_hook_test.cc32 hook; in TEST() local
36 EXPECT_TRUE(hook.Load() == nullptr); in TEST()
38 hook(1); in TEST()
41 // Test a stored hook. in TEST()
42 hook.Store(TestHook); in TEST()
43 EXPECT_TRUE(hook.Load() == TestHook); in TEST()
45 hook(1); in TEST()
48 // Calling Store() with the same hook should not crash. in TEST()
49 hook.Store(TestHook); in TEST()
50 EXPECT_TRUE(hook.Load() == TestHook); in TEST()
[all …]
/external/abseil-cpp/absl/base/internal/
Datomic_hook_test.cc32 hook; in TEST() local
36 EXPECT_TRUE(hook.Load() == nullptr); in TEST()
38 hook(1); in TEST()
41 // Test a stored hook. in TEST()
42 hook.Store(TestHook); in TEST()
43 EXPECT_TRUE(hook.Load() == TestHook); in TEST()
45 hook(1); in TEST()
48 // Calling Store() with the same hook should not crash. in TEST()
49 hook.Store(TestHook); in TEST()
50 EXPECT_TRUE(hook.Load() == TestHook); in TEST()
[all …]
/external/tensorflow/third_party/absl/abseil-cpp/absl/base/internal/
Datomic_hook_test.cc32 hook; in TEST() local
36 EXPECT_TRUE(hook.Load() == nullptr); in TEST()
38 hook(1); in TEST()
41 // Test a stored hook. in TEST()
42 hook.Store(TestHook); in TEST()
43 EXPECT_TRUE(hook.Load() == TestHook); in TEST()
45 hook(1); in TEST()
48 // Calling Store() with the same hook should not crash. in TEST()
49 hook.Store(TestHook); in TEST()
50 EXPECT_TRUE(hook.Load() == TestHook); in TEST()
[all …]
/external/libtextclassifier/abseil-cpp/absl/base/internal/
Datomic_hook_test.cc32 hook; in TEST() local
36 EXPECT_TRUE(hook.Load() == nullptr); in TEST()
38 hook(1); in TEST()
41 // Test a stored hook. in TEST()
42 hook.Store(TestHook); in TEST()
43 EXPECT_TRUE(hook.Load() == TestHook); in TEST()
45 hook(1); in TEST()
48 // Calling Store() with the same hook should not crash. in TEST()
49 hook.Store(TestHook); in TEST()
50 EXPECT_TRUE(hook.Load() == TestHook); in TEST()
[all …]
/external/angle/third_party/abseil-cpp/absl/base/internal/
Datomic_hook_test.cc32 hook; in TEST() local
36 EXPECT_TRUE(hook.Load() == nullptr); in TEST()
38 hook(1); in TEST()
41 // Test a stored hook. in TEST()
42 hook.Store(TestHook); in TEST()
43 EXPECT_TRUE(hook.Load() == TestHook); in TEST()
45 hook(1); in TEST()
48 // Calling Store() with the same hook should not crash. in TEST()
49 hook.Store(TestHook); in TEST()
50 EXPECT_TRUE(hook.Load() == TestHook); in TEST()
[all …]
/external/cronet/third_party/abseil-cpp/absl/base/internal/
Datomic_hook_test.cc32 hook; in TEST() local
36 EXPECT_TRUE(hook.Load() == nullptr); in TEST()
38 hook(1); in TEST()
41 // Test a stored hook. in TEST()
42 hook.Store(TestHook); in TEST()
43 EXPECT_TRUE(hook.Load() == TestHook); in TEST()
45 hook(1); in TEST()
48 // Calling Store() with the same hook should not crash. in TEST()
49 hook.Store(TestHook); in TEST()
50 EXPECT_TRUE(hook.Load() == TestHook); in TEST()
[all …]
/external/openscreen/third_party/abseil/src/absl/base/internal/
Datomic_hook_test.cc32 hook; in TEST() local
36 EXPECT_TRUE(hook.Load() == nullptr); in TEST()
38 hook(1); in TEST()
41 // Test a stored hook. in TEST()
42 hook.Store(TestHook); in TEST()
43 EXPECT_TRUE(hook.Load() == TestHook); in TEST()
45 hook(1); in TEST()
48 // Calling Store() with the same hook should not crash. in TEST()
49 hook.Store(TestHook); in TEST()
50 EXPECT_TRUE(hook.Load() == TestHook); in TEST()
[all …]
/external/webrtc/third_party/abseil-cpp/absl/base/internal/
Datomic_hook_test.cc32 hook; in TEST() local
36 EXPECT_TRUE(hook.Load() == nullptr); in TEST()
38 hook(1); in TEST()
41 // Test a stored hook. in TEST()
42 hook.Store(TestHook); in TEST()
43 EXPECT_TRUE(hook.Load() == TestHook); in TEST()
45 hook(1); in TEST()
48 // Calling Store() with the same hook should not crash. in TEST()
49 hook.Store(TestHook); in TEST()
50 EXPECT_TRUE(hook.Load() == TestHook); in TEST()
[all …]
/external/icu/icu4c/source/data/translit/
DAny_Accents.txt61 # $pre XXX $post ↔ \u0309 ; # COMBINING HOOK ABOVE
94 # $pre YYY $post ↔ Ɓ ; # LATIN CAPITAL LETTER B WITH HOOK
99 # $pre YYY $post ↔ Ƈ ; # LATIN CAPITAL LETTER C WITH HOOK
100 # $pre YYY $post ↔ ƈ ; # LATIN SMALL LETTER C WITH HOOK
102 # $pre YYY $post ↔ Ɗ ; # LATIN CAPITAL LETTER D WITH HOOK
107 # $pre YYY $post ↔ Ƒ ; # LATIN CAPITAL LETTER F WITH HOOK
108 # $pre YYY $post ↔ ƒ ; # LATIN SMALL LETTER F WITH HOOK
109 # $pre YYY $post ↔ Ɠ ; # LATIN CAPITAL LETTER G WITH HOOK
114 # $pre YYY $post ↔ Ƙ ; # LATIN CAPITAL LETTER K WITH HOOK
115 # $pre YYY $post ↔ ƙ ; # LATIN SMALL LETTER K WITH HOOK
[all …]
/external/cronet/third_party/icu/source/data/translit/
DAny_Accents.txt61 # $pre XXX $post ↔ \u0309 ; # COMBINING HOOK ABOVE
94 # $pre YYY $post ↔ Ɓ ; # LATIN CAPITAL LETTER B WITH HOOK
99 # $pre YYY $post ↔ Ƈ ; # LATIN CAPITAL LETTER C WITH HOOK
100 # $pre YYY $post ↔ ƈ ; # LATIN SMALL LETTER C WITH HOOK
102 # $pre YYY $post ↔ Ɗ ; # LATIN CAPITAL LETTER D WITH HOOK
107 # $pre YYY $post ↔ Ƒ ; # LATIN CAPITAL LETTER F WITH HOOK
108 # $pre YYY $post ↔ ƒ ; # LATIN SMALL LETTER F WITH HOOK
109 # $pre YYY $post ↔ Ɠ ; # LATIN CAPITAL LETTER G WITH HOOK
114 # $pre YYY $post ↔ Ƙ ; # LATIN CAPITAL LETTER K WITH HOOK
115 # $pre YYY $post ↔ ƙ ; # LATIN SMALL LETTER K WITH HOOK
[all …]
/external/cldr/common/transforms/
DAny-Accents.xml65 # $pre XXX $post ↔ ̉ ; # COMBINING HOOK ABOVE
98 # $pre YYY $post ↔ Ɓ ; # LATIN CAPITAL LETTER B WITH HOOK
103 # $pre YYY $post ↔ Ƈ ; # LATIN CAPITAL LETTER C WITH HOOK
104 # $pre YYY $post ↔ ƈ ; # LATIN SMALL LETTER C WITH HOOK
106 # $pre YYY $post ↔ Ɗ ; # LATIN CAPITAL LETTER D WITH HOOK
111 # $pre YYY $post ↔ Ƒ ; # LATIN CAPITAL LETTER F WITH HOOK
112 # $pre YYY $post ↔ ƒ ; # LATIN SMALL LETTER F WITH HOOK
113 # $pre YYY $post ↔ Ɠ ; # LATIN CAPITAL LETTER G WITH HOOK
118 # $pre YYY $post ↔ Ƙ ; # LATIN CAPITAL LETTER K WITH HOOK
119 # $pre YYY $post ↔ ƙ ; # LATIN SMALL LETTER K WITH HOOK
[all …]
/external/cronet/base/allocator/partition_allocator/src/partition_alloc/
Dpartition_alloc_hooks.cc42 // Chained hooks are not supported. Registering a non-null hook when a in SetObserverHooks()
43 // non-null hook is already registered indicates somebody is trying to in SetObserverHooks()
44 // overwrite a hook. in SetObserverHooks()
72 if (auto* hook = allocation_observer_hook_.load(std::memory_order_relaxed)) { in AllocationObserverHookIfEnabled() local
73 hook(notification_data); in AllocationObserverHookIfEnabled()
82 if (auto* hook = allocation_override_hook_.load(std::memory_order_relaxed)) { in AllocationOverrideHookIfEnabled() local
83 return hook(out, flags, size, type_name); in AllocationOverrideHookIfEnabled()
90 if (auto* hook = free_observer_hook_.load(std::memory_order_relaxed)) { in FreeObserverHookIfEnabled() local
91 hook(notification_data); in FreeObserverHookIfEnabled()
96 if (auto* hook = free_override_hook_.load(std::memory_order_relaxed)) { in FreeOverrideHookIfEnabled() local
[all …]
/external/sdv/vsomeip/third_party/boost/intrusive/include/boost/intrusive/detail/
Dgeneric_hook.hpp43 template<class Hook>
44 BOOST_INTRUSIVE_FORCEINLINE void destructor_impl(Hook &hook, detail::link_dispatch<safe_link>) in destructor_impl() argument
48 (void)hook; BOOST_INTRUSIVE_SAFE_HOOK_DESTRUCTOR_ASSERT(!hook.is_linked()); in destructor_impl()
51 template<class Hook>
52 BOOST_INTRUSIVE_FORCEINLINE void destructor_impl(Hook &hook, detail::link_dispatch<auto_unlink>) in destructor_impl() argument
53 { hook.unlink(); } in destructor_impl()
55 template<class Hook>
56 BOOST_INTRUSIVE_FORCEINLINE void destructor_impl(Hook &, detail::link_dispatch<normal_link>) in destructor_impl() argument
132 //If the hook is a base hook, derive generic hook from node_holder
136 //If the hook is a member hook, generic hook will directly derive
[all …]
/external/jazzer-api/src/main/java/com/code_intelligence/jazzer/instrumentor/
DHookMethodVisitor.kt33 hooks: Iterable<Hook>, in <lambda>()
57 hooks: Iterable<Hook>,
64 // conditional hook logic as it adds a conditional jump. Before Java 7, stack map frames were
99 private val hooks = hooks.groupBy { hook -> in hook() method
100 var hookKey = "${hook.hookType}#${hook.targetInternalClassName}#${hook.targetMethodName}" in hook()
101 if (hook.targetMethodDescriptor != null) { in hook()
102 hookKey += "#${hook.targetMethodDescriptor}" in hook()
163 // If hooks aren't enabled, skip the hook invocations. in handleMethodInsn()
210 matchingHooks.forEachIndexed { index, hook -> in handleMethodInsn() method
214 // Start to build the arguments for the hook method. in handleMethodInsn()
[all …]

12345678910>>...97