Lines Matching refs:bpf
8 static struct timerlat_bpf *bpf; variable
19 bpf = timerlat_bpf__open(); in timerlat_bpf_init()
20 if (!bpf) in timerlat_bpf_init()
24 bpf->rodata->output_divisor = params->output_divisor; in timerlat_bpf_init()
25 bpf->rodata->entries = params->entries; in timerlat_bpf_init()
26 bpf->rodata->irq_threshold = params->stop_us; in timerlat_bpf_init()
27 bpf->rodata->thread_threshold = params->stop_total_us; in timerlat_bpf_init()
28 bpf->rodata->aa_only = params->aa_only; in timerlat_bpf_init()
32 bpf->rodata->bucket_size = params->bucket_size; in timerlat_bpf_init()
35 bpf_map__set_max_entries(bpf->maps.hist_irq, params->entries); in timerlat_bpf_init()
36 bpf_map__set_max_entries(bpf->maps.hist_thread, params->entries); in timerlat_bpf_init()
37 bpf_map__set_max_entries(bpf->maps.hist_user, params->entries); in timerlat_bpf_init()
40 bpf_map__set_autocreate(bpf->maps.hist_irq, false); in timerlat_bpf_init()
41 bpf_map__set_autocreate(bpf->maps.hist_thread, false); in timerlat_bpf_init()
42 bpf_map__set_autocreate(bpf->maps.hist_user, false); in timerlat_bpf_init()
47 bpf_map__set_autocreate(bpf->maps.summary_irq, false); in timerlat_bpf_init()
48 bpf_map__set_autocreate(bpf->maps.summary_thread, false); in timerlat_bpf_init()
49 bpf_map__set_autocreate(bpf->maps.summary_user, false); in timerlat_bpf_init()
53 err = timerlat_bpf__load(bpf); in timerlat_bpf_init()
55 timerlat_bpf__destroy(bpf); in timerlat_bpf_init()
69 return timerlat_bpf__attach(bpf); in timerlat_bpf_attach()
77 timerlat_bpf__detach(bpf); in timerlat_bpf_detach()
85 timerlat_bpf__destroy(bpf); in timerlat_bpf_destroy()
101 rb = ring_buffer__new(bpf_map__fd(bpf->maps.signal_stop_tracing), in timerlat_bpf_wait()
117 return bpf_map__update_elem(bpf->maps.stop_tracing, in timerlat_bpf_restart_tracing()
160 return get_value(bpf->maps.hist_irq, in timerlat_bpf_get_hist_value()
161 bpf->maps.hist_thread, in timerlat_bpf_get_hist_value()
162 bpf->maps.hist_user, in timerlat_bpf_get_hist_value()
175 return get_value(bpf->maps.summary_irq, in timerlat_bpf_get_summary_value()
176 bpf->maps.summary_thread, in timerlat_bpf_get_summary_value()
177 bpf->maps.summary_user, in timerlat_bpf_get_summary_value()