| /tools/testing/selftests/bpf/verifier/ |
| A D | ctx_skb.c | 396 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 D | thermal_nl.c | 65 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 D | thermal.c | 9 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 D | hfi-events.c | 88 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 D | sideband_evlist.c | 16 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 D | tp_pmu.c | 30 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 D | tp_pmu.h | 11 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 D | unwind.h | 24 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 D | unwind-libunwind.c | 82 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 D | kfree_skb.c | 16 } 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 D | skb_ctx.c | 8 .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 D | time_tai.c | 23 .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 D | mainloop.c | 15 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 D | mainloop.h | 9 extern int mainloop_add(int fd, mainloop_callback_t cb, void *data);
|
| /tools/testing/selftests/bpf/progs/ |
| A D | verifier_runtime_jit.c | 174 __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 D | verifier_leak_ptr.c | 29 __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 D | test_time_tai.c | 20 skb->cb[0] = ts2 & 0xffffffff; in time_tai() 21 skb->cb[1] = ts2 >> 32; in time_tai()
|
| A D | test_skb_ctx.c | 15 if (skb->cb[i] != i + 1) in process() 17 skb->cb[i]++; in process()
|
| A D | for_each_hash_modify.c | 15 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 D | verifier_cgroup_skb.c | 88 : __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 D | kfree_skb.c | 48 char cb[48]; member 80 cb8 = (__u8 *)&skb->cb; in BPF_PROG() 81 cb32 = (__u32 *)&skb->cb; in BPF_PROG()
|
| A D | cb_refs.c | 67 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 D | thermal.h | 99 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 D | libjvmti.c | 340 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 D | test-jvmti.c | 7 jvmtiEventCallbacks cb __attribute__((unused)); in main() local
|