diff options
author | Daniel T. Lee <[email protected]> | 2020-11-24 09:03:08 +0000 |
---|---|---|
committer | Andrii Nakryiko <[email protected]> | 2020-11-26 19:33:36 -0800 |
commit | c6497df0ddc3363c2c940d92c3af0b2620477003 (patch) | |
tree | af1e28c619db0869ce548a670c9a24faf754a2d0 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 763af200d6160b2f79f45cbf9a85b8dc6e20f2c7 (diff) |
samples: bpf: Refactor test_overhead program with libbpf
This commit refactors the existing program with libbpf bpf loader.
Since the kprobe, tracepoint and raw_tracepoint bpf program can be
attached with single bpf_program__attach() interface, so the
corresponding function of libbpf is used here.
Rather than specifying the number of cpus inside the code, this commit
uses the number of available cpus with _SC_NPROCESSORS_ONLN.
Signed-off-by: Daniel T. Lee <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Acked-by: Andrii Nakryiko <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions