Searched refs:bpf_stat_ctx (Results 1 – 1 of 1) sorted by relevance
447 static INLINE void bpf_stats_enter(struct bpf_func_stats_ctx* bpf_stat_ctx, in bpf_stats_enter() argument452 bpf_stat_ctx->start_time_ns = bpf_ktime_get_ns(); in bpf_stats_enter()453 bpf_stat_ctx->bpf_func_stats_data_val = in bpf_stats_enter()455 if (bpf_stat_ctx->bpf_func_stats_data_val) in bpf_stats_enter()456 bpf_stat_ctx->bpf_func_stats_data_val->num_executions++; in bpf_stats_enter()459 static INLINE void bpf_stats_exit(struct bpf_func_stats_ctx* bpf_stat_ctx) in bpf_stats_exit() argument461 if (bpf_stat_ctx->bpf_func_stats_data_val) in bpf_stats_exit()462 bpf_stat_ctx->bpf_func_stats_data_val->time_elapsed_ns += in bpf_stats_exit()463 bpf_ktime_get_ns() - bpf_stat_ctx->start_time_ns; in bpf_stats_exit()467 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 …]