Lines Matching defs:arr_timer
145 struct bpf_timer *arr_timer, *lru_timer;
150 arr_timer = bpf_map_lookup_elem(&array, &array_key);
151 if (!arr_timer)
153 bpf_timer_init(arr_timer, &array, CLOCK_MONOTONIC);
161 bpf_timer_set_callback(arr_timer, timer_cb1);
162 bpf_timer_start(arr_timer, 0 /* call timer_cb1 asap */, 0);
168 arr_timer = bpf_map_lookup_elem(&array, &array_key);
169 if (!arr_timer)
171 bpf_timer_init(arr_timer, &array, CLOCK_MONOTONIC);
184 struct bpf_timer *arr_timer;
187 arr_timer = bpf_map_lookup_elem(&array, &array_key);
188 if (!arr_timer)
190 bpf_timer_init(arr_timer, &array, CLOCK_MONOTONIC);
191 bpf_timer_set_callback(arr_timer, timer_error);
192 bpf_timer_start(arr_timer, 100000 /* 100us */, 0);
193 bpf_timer_cancel_async(arr_timer);
209 struct bpf_timer *arr_timer;
212 /* cancel arr_timer otherwise bpf_fentry_test1 prog
215 arr_timer = bpf_map_lookup_elem(&array, &array_key);
216 if (!arr_timer)
218 if (bpf_timer_cancel(arr_timer) != 1)
220 * that arr_timer was active at this time