Searched refs:diff_val (Results 1 – 2 of 2) sorted by relevance
32 struct bpf_perf_event_value val, *prev_val, *diff_val; in BPF_PROG() local41 diff_val = bpf_map_lookup_elem(&diff_readings, &zero); in BPF_PROG()42 if (!diff_val) in BPF_PROG()49 diff_val->counter = val.counter - prev_val->counter; in BPF_PROG()50 diff_val->enabled = val.enabled - prev_val->enabled; in BPF_PROG()51 diff_val->running = val.running - prev_val->running; in BPF_PROG()
35 struct bpf_perf_event_value *diff_val, *accum_val; in BPF_PROG() local64 diff_val = bpf_map_lookup_elem(&diff_readings, &zero); in BPF_PROG()65 if (!diff_val) in BPF_PROG()72 accum_val->counter += diff_val->counter; in BPF_PROG()73 accum_val->enabled += diff_val->enabled; in BPF_PROG()74 accum_val->running += diff_val->running; in BPF_PROG()