Skip to contentSkip to conversation

perf auxtrace: Include sys/types.h for pid_t

PATCH Applied Arnaldo Carvalho de Melo 3 participants 3 messages Dec 3, 2025 – Dec 4, 2025 perf events

lore
Share & tools
lore

Arnaldo Carvalho de Melo

author maintainer
#0 lore raw

PATCH 1/1 perf auxtrace: Include sys/types.h for pid_t

In 754187ad73b73bcb ("perf build: Remove NO_AUXTRACE build option") sys/types.h was removed, which broke the build in all Alpine Linux releases, as musl libc has pid_t defined via sys/types.h, add it back.

Fixes 754187ad73b73bcb ("perf build: Remove NO_AUXTRACE build option")
Cc Adrian Hunter <[email protected]>
Cc Ian Rogers <[email protected]>
Cc James Clark <[email protected]>
Cc Jiri Olsa <[email protected]>
Cc Namhyung Kim <[email protected]>
---
 tools/perf/util/auxtrace.h | 1 +
 1 file changed, 1 insertion(+)
tools/perf/util/auxtrace.h +1 -0
index eee2c11f76668348..6947f3f284c02928 100644
@@ -7,6 +7,7 @@
 #ifndef __PERF_AUXTRACE_H
 #define __PERF_AUXTRACE_H
 
+#include <sys/types.h>
 #include <stdio.h> // FILE
 #include <linux/perf_event.h>
 #include <linux/types.h>
Signature · 1 line
2.52.0
reviewer Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · Arnaldo Carvalho de Melo

In 754187ad73b73bcb ("perf build: Remove NO_AUXTRACE build option") sys/types.h was removed, which broke the build in all Alpine Linux releases, as musl libc has pid_t defined via sys/types.h, add it back.

Quoted 7 lines
Fixes 754187ad73b73bcb ("perf build: Remove NO_AUXTRACE build option")
Cc Adrian Hunter <[email protected]>
Cc Ian Rogers <[email protected]>
Cc James Clark <[email protected]>
Cc Jiri Olsa <[email protected]>
Cc Namhyung Kim <[email protected]>

Thanks,
Ian

Quoted 19 lines
---
 tools/perf/util/auxtrace.h | 1 +
 1 file changed, 1 insertion(+)
tools/perf/util/auxtrace.h +1 -1
index eee2c11f76668348..6947f3f284c02928 100644
@@ -7,6 +7,7 @@
 #ifndef __PERF_AUXTRACE_H
 #define __PERF_AUXTRACE_H
 
+#include <sys/types.h>
 #include <stdio.h> // FILE
 #include <linux/perf_event.h>
 #include <linux/types.h>
--

2.52.0

maintainer Applied
#2 lore raw
In reply to Arnaldo Carvalho de Melo
Quoted 5 lines · Arnaldo Carvalho de Melo

In 754187ad73b73bcb ("perf build: Remove NO_AUXTRACE build option") sys/types.h was removed, which broke the build in all Alpine Linux releases, as musl libc has pid_t defined via sys/types.h, add it back.

Applied to perf-tools-next, thanks!

Best regards,
Namhyung