Home
last modified time | relevance | path

Searched refs:cb (Results 1 – 25 of 91) sorted by relevance

1234

/tools/testing/selftests/bpf/verifier/
A Dctx_skb.c396 offsetof(struct __sk_buff, cb[0])),
404 offsetof(struct __sk_buff, cb[1])),
412 offsetof(struct __sk_buff, cb[2])),
420 offsetof(struct __sk_buff, cb[3])),
428 offsetof(struct __sk_buff, cb[4])),
436 offsetof(struct __sk_buff, cb[0])),
444 offsetof(struct __sk_buff, cb[1])),
452 offsetof(struct __sk_buff, cb[2])),
460 offsetof(struct __sk_buff, cb[3])),
468 offsetof(struct __sk_buff, cb[4])),
[all …]
/tools/lib/thermal/
A Dthermal_nl.c65 nl_cb_set(cb, NL_CB_VALID, NL_CB_CUSTOM, rx_handler, data); in nl_send_msg()
70 nl_recvmsgs(sock, cb); in nl_send_msg()
113 static int nl_get_multicast_id(struct nl_sock *sock, struct nl_cb *cb, in nl_get_multicast_id() argument
133 ret = nl_send_msg(sock, cb, msg, nl_family_handler, &grp); in nl_get_multicast_id()
146 struct nl_cb *cb; in nl_thermal_connect() local
149 cb = nl_cb_alloc(NL_CB_DEFAULT); in nl_thermal_connect()
150 if (!cb) in nl_thermal_connect()
160 if (nl_cb_err(cb, NL_CB_CUSTOM, nl_error_handler, &err) || in nl_thermal_connect()
162 nl_cb_set(cb, NL_CB_ACK, NL_CB_CUSTOM, nl_ack_handler, &done) || in nl_thermal_connect()
167 *nl_cb = cb; in nl_thermal_connect()
[all …]
A Dthermal.c9 int for_each_thermal_threshold(struct thermal_threshold *th, cb_th_t cb, void *arg) in for_each_thermal_threshold() argument
17 ret |= cb(&th[i], arg); in for_each_thermal_threshold()
22 int for_each_thermal_cdev(struct thermal_cdev *cdev, cb_tc_t cb, void *arg) in for_each_thermal_cdev() argument
30 ret |= cb(&cdev[i], arg); in for_each_thermal_cdev()
35 int for_each_thermal_trip(struct thermal_trip *tt, cb_tt_t cb, void *arg) in for_each_thermal_trip() argument
43 ret |= cb(&tt[i], arg); in for_each_thermal_trip()
48 int for_each_thermal_zone(struct thermal_zone *tz, cb_tz_t cb, void *arg) in for_each_thermal_zone() argument
56 ret |= cb(&tz[i], arg); in for_each_thermal_zone()
/tools/power/x86/intel-speed-select/
A Dhfi-events.c88 struct nl_cb *cb; in send_and_recv_msgs() local
91 cb = nl_cb_clone(drv->nl_cb); in send_and_recv_msgs()
92 if (!cb) in send_and_recv_msgs()
101 nl_cb_err(cb, NL_CB_CUSTOM, error_handler, &err); in send_and_recv_msgs()
103 nl_cb_set(cb, NL_CB_ACK, NL_CB_CUSTOM, ack_handler, &err); in send_and_recv_msgs()
106 nl_cb_set(cb, NL_CB_VALID, NL_CB_CUSTOM, in send_and_recv_msgs()
110 nl_recvmsgs(drv->nl_handle, cb); in send_and_recv_msgs()
112 nl_cb_put(cb); in send_and_recv_msgs()
247 struct nl_cb *cb; in hfi_main() local
268 drv.nl_cb = cb = nl_cb_alloc(NL_CB_DEFAULT); in hfi_main()
[all …]
/tools/perf/util/
A Dsideband_evlist.c16 evsel__sb_cb_t cb, void *data) in evlist__add_sb_event() argument
29 evsel->side_band.cb = cb; in evlist__add_sb_event()
67 if (evsel && evsel->side_band.cb) in perf_evlist__poll_thread()
68 evsel->side_band.cb(event, evsel->side_band.data); in perf_evlist__poll_thread()
84 void evlist__set_cb(struct evlist *evlist, evsel__sb_cb_t cb, void *data) in evlist__set_cb() argument
92 evsel->side_band.cb = cb; in evlist__set_cb()
A Dtp_pmu.c30 int tp_pmu__for_each_tp_event(const char *sys, void *state, tp_event_callback cb) in tp_pmu__for_each_tp_event() argument
56 ret = cb(state, sys, evt_ent->d_name); in tp_pmu__for_each_tp_event()
64 int tp_pmu__for_each_tp_sys(void *state, tp_sys_callback cb) in tp_pmu__for_each_tp_sys() argument
90 ret = cb(state, events_ent->d_name); in tp_pmu__for_each_tp_sys()
105 pmu_event_callback cb; member
149 err = args->cb(args->state, &info); in for_each_event_cb()
159 int tp_pmu__for_each_event(struct perf_pmu *pmu, void *state, pmu_event_callback cb) in tp_pmu__for_each_event() argument
163 .cb = cb, in tp_pmu__for_each_event()
A Dtp_pmu.h11 int tp_pmu__for_each_tp_event(const char *sys, void *state, tp_event_callback cb);
12 int tp_pmu__for_each_tp_sys(void *state, tp_sys_callback cb);
15 int tp_pmu__for_each_event(struct perf_pmu *pmu, void *state, pmu_event_callback cb);
A Dunwind.h24 int (*get_entries)(unwind_entry_cb_t cb, void *arg,
35 int unwind__get_entries(unwind_entry_cb_t cb, void *arg,
62 unwind__get_entries(unwind_entry_cb_t cb __maybe_unused, in unwind__get_entries()
A Dunwind-libunwind.c82 int unwind__get_entries(unwind_entry_cb_t cb, void *arg, in unwind__get_entries() argument
90 return ops->get_entries(cb, arg, thread, data, max_stack, best_effort); in unwind__get_entries()
/tools/testing/selftests/bpf/prog_tests/
A Dkfree_skb.c16 } cb = { variable
33 if (CHECK(meta->cb8_0 != cb.cb8[0], "check_cb8_0", "cb8_0 %x != %x\n", in on_sample()
34 meta->cb8_0, cb.cb8[0])) in on_sample()
36 if (CHECK(meta->cb32_0 != cb.cb32[0], "check_cb32_0", in on_sample()
38 meta->cb32_0, cb.cb32[0])) in on_sample()
103 memcpy(skb.cb, &cb, sizeof(cb)); in serial_test_kfree_skb()
A Dskb_ctx.c8 .cb[0] = 1, in test_skb_ctx()
9 .cb[1] = 2, in test_skb_ctx()
10 .cb[2] = 3, in test_skb_ctx()
11 .cb[3] = 4, in test_skb_ctx()
12 .cb[4] = 5, in test_skb_ctx()
83 ASSERT_EQ(skb.cb[i], i + 2, "ctx_out_cb"); in test_skb_ctx()
A Dtime_tai.c23 .cb[0] = 0, in test_time_tai()
24 .cb[1] = 0, in test_time_tai()
52 ts2 = skb.cb[0] | ((__u64)skb.cb[1] << 32); in test_time_tai()
/tools/thermal/lib/
A Dmainloop.c15 mainloop_callback_t cb; member
47 if (md->cb(md->fd, md->data) > 0) in mainloop()
53 int mainloop_add(int fd, mainloop_callback_t cb, void *data) in mainloop_add() argument
66 md->cb = cb; in mainloop_add()
A Dmainloop.h9 extern int mainloop_add(int fd, mainloop_callback_t cb, void *data);
/tools/testing/selftests/bpf/progs/
A Dverifier_runtime_jit.c174 __imm_const(__sk_buff_cb_0, offsetof(struct __sk_buff, cb[0])) in _2_key_2_first_branch()
199 __imm_const(__sk_buff_cb_0, offsetof(struct __sk_buff, cb[0])) in _2_key_2_second_branch()
224 __imm_const(__sk_buff_cb_0, offsetof(struct __sk_buff, cb[0])) in _0_key_2_first_branch()
249 __imm_const(__sk_buff_cb_0, offsetof(struct __sk_buff, cb[0])) in _0_key_2_second_branch()
276 __imm_const(__sk_buff_cb_0, offsetof(struct __sk_buff, cb[0])) in bounds_different_maps_first_branch()
303 __imm_const(__sk_buff_cb_0, offsetof(struct __sk_buff, cb[0])) in bounds_different_maps_second_branch()
A Dverifier_leak_ptr.c29 __imm_const(__sk_buff_cb_0, offsetof(struct __sk_buff, cb[0])) in leak_pointer_into_ctx_1()
45 : __imm_const(__sk_buff_cb_0, offsetof(struct __sk_buff, cb[0])) in leak_pointer_into_ctx_2()
62 __imm_const(__sk_buff_cb_0, offsetof(struct __sk_buff, cb[0])) in leak_pointer_into_ctx_3()
A Dtest_time_tai.c20 skb->cb[0] = ts2 & 0xffffffff; in time_tai()
21 skb->cb[1] = ts2 >> 32; in time_tai()
A Dtest_skb_ctx.c15 if (skb->cb[i] != i + 1) in process()
17 skb->cb[i]++; in process()
A Dfor_each_hash_modify.c15 static int cb(struct bpf_map *map, __u64 *key, __u64 *val, void *arg) in cb() function
27 bpf_for_each_map_elem(&hashmap, cb, NULL, 0); in test_pkt_access()
A Dverifier_cgroup_skb.c88 : __imm_const(__sk_buff_cb_0, offsetof(struct __sk_buff, cb[0])), in test_3_for_cgroup_skb()
89 __imm_const(__sk_buff_cb_1, offsetof(struct __sk_buff, cb[1])), in test_3_for_cgroup_skb()
90 __imm_const(__sk_buff_cb_2, offsetof(struct __sk_buff, cb[2])), in test_3_for_cgroup_skb()
91 __imm_const(__sk_buff_cb_3, offsetof(struct __sk_buff, cb[3])), in test_3_for_cgroup_skb()
92 __imm_const(__sk_buff_cb_4, offsetof(struct __sk_buff, cb[4])), in test_3_for_cgroup_skb()
A Dkfree_skb.c48 char cb[48]; member
80 cb8 = (__u8 *)&skb->cb; in BPF_PROG()
81 cb32 = (__u32 *)&skb->cb; in BPF_PROG()
A Dcb_refs.c67 static __always_inline int cb(void *map, void *key, void *value, void *ctx) in cb() function
78 bpf_for_each_map_elem(&array_map, cb, &p, 0); in cb3()
/tools/lib/thermal/include/
A Dthermal.h99 LIBTHERMAL_API int for_each_thermal_zone(struct thermal_zone *tz, cb_tz_t cb, void *arg);
101 LIBTHERMAL_API int for_each_thermal_trip(struct thermal_trip *tt, cb_tt_t cb, void *arg);
103 LIBTHERMAL_API int for_each_thermal_cdev(struct thermal_cdev *cdev, cb_tc_t cb, void *arg);
105 LIBTHERMAL_API int for_each_thermal_threshold(struct thermal_threshold *th, cb_th_t cb, void *arg);
/tools/perf/jvmti/
A Dlibjvmti.c340 jvmtiEventCallbacks cb; in Agent_OnLoad() local
385 memset(&cb, 0, sizeof(cb)); in Agent_OnLoad()
387 cb.CompiledMethodLoad = compiled_method_load_cb; in Agent_OnLoad()
388 cb.DynamicCodeGenerated = code_generated_cb; in Agent_OnLoad()
390 ret = (*jvmti)->SetEventCallbacks(jvmti, &cb, sizeof(cb)); in Agent_OnLoad()
/tools/build/feature/
A Dtest-jvmti.c7 jvmtiEventCallbacks cb __attribute__((unused)); in main() local

Completed in 32 milliseconds

1234