Skip to contentSkip to conversation

perf trace: Change __augmented_syscalls__'s value to int

PATCH In review Howard Chu 2 participants 2 messages Mar 26, 2025 – Mar 30, 2025 perf events

lore
Share & tools
lore

Howard Chu

author
#0 lore raw

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/

---
 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
index e4352881e3fa..18a3086489ea 100644
@@ -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
maintainer Acked-by on v1 1/1
#1 lore raw
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/

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
index e4352881e3fa..18a3086489ea 100644
@@ -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