Home
last modified time | relevance | path

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

/linux/tools/perf/util/bpf_skel/
H A Dbperf_leader.bpf.c31 struct bpf_perf_event_value val, *prev_val, *diff_val; in BPF_PROG() local
40 diff_val = bpf_map_lookup_elem(&diff_readings, &zero); in BPF_PROG()
41 if (!diff_val) in BPF_PROG()
48 diff_val->counter = val.counter - prev_val->counter; in BPF_PROG()
49 diff_val->enabled = val.enabled - prev_val->enabled; in BPF_PROG()
50 diff_val->running = val.running - prev_val->running; in BPF_PROG()
/linux/tools/testing/selftests/bpf/
H A Dveristat.c2912 long base_val = 0, comp_val = 0, diff_val = 0; in output_comp_stats() local
2945 diff_val = comp_val - base_val; in output_comp_stats()
2955 p = diff_val * 100.0 / base_val; in output_comp_stats()
2957 snprintf(diff_buf, sizeof(diff_buf), "%+ld (%+.2lf%%)", diff_val, p); in output_comp_stats()