aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/mem-phys-addr.py
diff options
context:
space:
mode:
authorDave Marchevsky <[email protected]>2021-09-17 11:29:07 -0700
committerAlexei Starovoitov <[email protected]>2021-09-17 14:02:05 -0700
commit6c66b0e7c91a1320c1b85ad8150bdd534eb4ddae (patch)
treefe11dc67b044b33bb16b5603bfe14652594fcc7e /tools/perf/scripts/python/mem-phys-addr.py
parentc2758baa9798bf75d79a9aad8792edb8b694373e (diff)
libbpf: Use static const fmt string in __bpf_printk
The __bpf_printk convenience macro was using a 'char' fmt string holder as it predates support for globals in libbpf. Move to more efficient 'static const char', but provide a fallback to the old way via BPF_NO_GLOBAL_DATA so users on old kernels can still use the macro. Signed-off-by: Dave Marchevsky <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]> Acked-by: Andrii Nakryiko <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions