Searched refs:bpf_timer (Results 1 - 13 of 13) sorted by relevance

/linux-master/tools/testing/selftests/bpf/progs/
H A Dtimer_failure.c14 struct bpf_timer t;
58 struct bpf_timer *timer;
H A Dasync_stack_depth.c8 struct bpf_timer timer;
19 static int timer_cb(void *map, int *key, struct bpf_timer *timer)
26 static int bad_timer_cb(void *map, int *key, struct bpf_timer *timer)
H A Dtimer.c12 struct bpf_timer timer;
32 struct bpf_timer t;
72 static int timer_cb1(void *map, int *key, struct bpf_timer *timer)
83 struct bpf_timer *lru_timer;
136 struct bpf_timer *arr_timer, *lru_timer;
177 struct bpf_timer *arr_timer;
300 static int timer_cb3(void *map, int *key, struct bpf_timer *timer)
320 struct bpf_timer *timer;
337 static int timer_cb_pinned(void *map, int *key, struct bpf_timer *timer)
352 struct bpf_timer *time
[all...]
H A Dtimer_crash.c8 struct bpf_timer timer;
H A Dtimer_mim_reject.c12 struct bpf_timer timer;
H A Dtest_helper_restricted.c7 struct bpf_timer t;
H A Dtimer_mim.c12 struct bpf_timer timer;
H A Dverifier_helper_restricted.c21 struct bpf_timer t;
89 __failure __msg("tracing progs cannot use bpf_timer yet")
114 __failure __msg("tracing progs cannot use bpf_timer yet")
139 __failure __msg("tracing progs cannot use bpf_timer yet")
164 __failure __msg("tracing progs cannot use bpf_timer yet")
H A Dexceptions_fail.c19 struct bpf_timer timer;
89 static int timer_cb(void *map, int *key, struct bpf_timer *timer)
/linux-master/kernel/bpf/
H A Dhelpers.c1082 /* BPF map elements can contain 'struct bpf_timer'.
1084 * 'struct bpf_timer' is allocated as part of map element allocation
1107 /* the actual struct hidden inside uapi struct bpf_timer */
1111 * sure that it always fits into space reserved by struct bpf_timer
1128 BTF_TYPE_EMIT(struct bpf_timer);
1166 BUILD_BUG_ON(sizeof(struct bpf_timer_kern) > sizeof(struct bpf_timer));
1167 BUILD_BUG_ON(__alignof__(struct bpf_timer_kern) != __alignof__(struct bpf_timer));
/linux-master/include/linux/
H A Dbpf.h314 return "bpf_timer";
342 return sizeof(struct bpf_timer);
369 return __alignof__(struct bpf_timer);
464 /* copy everything but bpf_spin_lock, bpf_timer, and kptrs. There could be one of each. */
735 ARG_PTR_TO_TIMER, /* pointer to bpf_timer */
/linux-master/include/uapi/linux/
H A Dbpf.h5176 * long bpf_timer_init(struct bpf_timer *timer, struct bpf_map *map, u64 flags)
5193 * long bpf_timer_set_callback(struct bpf_timer *timer, void *callback_fn)
5204 * long bpf_timer_start(struct bpf_timer *timer, u64 nsecs, u64 flags)
5210 * Since struct bpf_timer is a field inside map element the map
5238 * long bpf_timer_cancel(struct bpf_timer *timer)
7282 struct bpf_timer { struct
/linux-master/tools/include/uapi/linux/
H A Dbpf.h5176 * long bpf_timer_init(struct bpf_timer *timer, struct bpf_map *map, u64 flags)
5193 * long bpf_timer_set_callback(struct bpf_timer *timer, void *callback_fn)
5204 * long bpf_timer_start(struct bpf_timer *timer, u64 nsecs, u64 flags)
5210 * Since struct bpf_timer is a field inside map element the map
5238 * long bpf_timer_cancel(struct bpf_timer *timer)
7282 struct bpf_timer { struct

Completed in 317 milliseconds