aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/include/bpf/stdio.h
diff options
context:
space:
mode:
authorIan Rogers <[email protected]>2022-11-03 04:54:37 +0000
committerArnaldo Carvalho de Melo <[email protected]>2022-11-04 14:41:48 +0000
commitcfddf0d4a5571bcc94760c27729a60daefda38bb (patch)
treebde7a7198ecaeba3d8d8e083af170b5e711c862c /tools/perf/include/bpf/stdio.h
parentperf trace: 5sec fix libbpf 1.0+ compatibility (diff)
downloadkernel-cfddf0d4a5571bcc94760c27729a60daefda38bb.tar.gz
kernel-cfddf0d4a5571bcc94760c27729a60daefda38bb.zip
perf bpf: Remove now unused BPF headers
Example code has migrated to use standard BPF header files, remove unnecessary perf equivalents. Update install step to not try to copy these. Signed-off-by: Ian Rogers <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Leo Yan <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Stephane Eranian <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/include/bpf/stdio.h')
-rw-r--r--tools/perf/include/bpf/stdio.h16
1 files changed, 0 insertions, 16 deletions
diff --git a/tools/perf/include/bpf/stdio.h b/tools/perf/include/bpf/stdio.h
deleted file mode 100644
index 316af5b2ff35..000000000000
--- a/tools/perf/include/bpf/stdio.h
+++ /dev/null
@@ -1,16 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0
-
-#include <bpf.h>
-
-struct bpf_map SEC("maps") __bpf_stdout__ = {
- .type = BPF_MAP_TYPE_PERF_EVENT_ARRAY,
- .key_size = sizeof(int),
- .value_size = sizeof(u32),
- .max_entries = __NR_CPUS__,
-};
-
-#define puts(from) \
- ({ const int __len = sizeof(from); \
- char __from[__len] = from; \
- perf_event_output(args, &__bpf_stdout__, BPF_F_CURRENT_CPU, \
- &__from, __len & (sizeof(from) - 1)); })