perf trace: Change __augmented_syscalls__'s value to int
PATCH 1/1 perf trace: Change __augmented_syscalls__'s value to int
This is to match the type of file descriptors, as suggested by Ian Rogers in this discussion:
https://lore.kernel.org/linux-perf-users/CAP-5=fU+9EQKT2fOuBQ5ds6s4Bh6rWrvco1ow6B-CQ92XuO1kQ@mail.gmail.com/
Signed-off-by Howard Chu <[email protected]>
Suggested-by Ian Rogers <[email protected]>
--- tools/perf/util/bpf_skel/augmented_raw_syscalls.bpf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/perf/util/bpf_skel/augmented_raw_syscalls.bpf.c +1 -1
@@ -31,7 +31,7 @@struct __augmented_syscalls__ { __uint(type, BPF_MAP_TYPE_PERF_EVENT_ARRAY); __type(key, int); - __type(value, __u32); + __type(value, int); __uint(max_entries, MAX_CPUS); } __augmented_syscalls__ SEC(".maps");
Signature · 1 line
2.45.2
Quoted 6 lines · Howard Chu
This is to match the type of file descriptors, as suggested by Ian Rogers in this discussion:
https://lore.kernel.org/linux-perf-users/CAP-5=fU+9EQKT2fOuBQ5ds6s4Bh6rWrvco1ow6B-CQ92XuO1kQ@mail.gmail.com/Signed-off-by Howard Chu <[email protected]>Suggested-by Ian Rogers <[email protected]>
Acked-by Namhyung Kim <[email protected]>
Thanks,
Namhyung
Quoted 20 lines
--- tools/perf/util/bpf_skel/augmented_raw_syscalls.bpf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)tools/perf/util/bpf_skel/augmented_raw_syscalls.bpf.c +1
-1@@ -31,7 +31,7 @@struct __augmented_syscalls__ { __uint(type, BPF_MAP_TYPE_PERF_EVENT_ARRAY); __type(key, int); - __type(value, __u32); + __type(value, int); __uint(max_entries, MAX_CPUS); } __augmented_syscalls__ SEC(".maps");Signature · 1 line
2.45.2