Home
last modified time | relevance | path

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

/Linux-v6.6/tools/testing/selftests/bpf/progs/
Dprofiler.inc.h451 static INLINE void bpf_stats_enter(struct bpf_func_stats_ctx* bpf_stat_ctx, in bpf_stats_enter() argument
456 bpf_stat_ctx->start_time_ns = bpf_ktime_get_ns(); in bpf_stats_enter()
457 bpf_stat_ctx->bpf_func_stats_data_val = in bpf_stats_enter()
459 if (bpf_stat_ctx->bpf_func_stats_data_val) in bpf_stats_enter()
460 bpf_stat_ctx->bpf_func_stats_data_val->num_executions++; in bpf_stats_enter()
463 static INLINE void bpf_stats_exit(struct bpf_func_stats_ctx* bpf_stat_ctx) in bpf_stats_exit() argument
465 if (bpf_stat_ctx->bpf_func_stats_data_val) in bpf_stats_exit()
466 bpf_stat_ctx->bpf_func_stats_data_val->time_elapsed_ns += in bpf_stats_exit()
467 bpf_ktime_get_ns() - bpf_stat_ctx->start_time_ns; in bpf_stats_exit()
471 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 …]