Home
last modified time | relevance | path

Searched refs:bpf_stat_ctx (Results 1 – 1 of 1) sorted by relevance

/linux/tools/testing/selftests/bpf/progs/
H A Dprofiler.inc.h443 static INLINE void bpf_stats_enter(struct bpf_func_stats_ctx* bpf_stat_ctx, in bpf_stats_enter() argument
448 bpf_stat_ctx->start_time_ns = bpf_ktime_get_ns(); in bpf_stats_enter()
449 bpf_stat_ctx->bpf_func_stats_data_val = in bpf_stats_enter()
451 if (bpf_stat_ctx->bpf_func_stats_data_val) in bpf_stats_enter()
452 bpf_stat_ctx->bpf_func_stats_data_val->num_executions++; in bpf_stats_enter()
455 static INLINE void bpf_stats_exit(struct bpf_func_stats_ctx* bpf_stat_ctx) in bpf_stats_exit() argument
457 if (bpf_stat_ctx->bpf_func_stats_data_val) in bpf_stats_exit()
458 bpf_stat_ctx->bpf_func_stats_data_val->time_elapsed_ns += in bpf_stats_exit()
459 bpf_ktime_get_ns() - bpf_stat_ctx->start_time_ns; in bpf_stats_exit()
463 bpf_stats_pre_submit_var_perf_event(struct bpf_func_stats_ctx* bpf_stat_ctx, in bpf_stats_pre_submit_var_perf_event() argument
[all …]