[PATCH v3 3/6] perf tool: Remove unused includes in perf.c
From: Ian Rogers
Date: Wed Sep 02 2026 - 12:45:04 EST
Remove perf-sys.h, internal/lib.h (page_size), signal.h, and perf.h
since their exports are not used directly in perf.c.
Signed-off-by: Ian Rogers <irogers@xxxxxxxxxx>
Assisted-by: Antigravity:gemini-3.1-pro
---
tools/perf/perf.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/tools/perf/perf.c b/tools/perf/perf.c
index 53c50cfd92d6..7e2e667b011f 100644
--- a/tools/perf/perf.c
+++ b/tools/perf/perf.c
@@ -6,10 +6,8 @@
* This is the main hub from which the sub-commands (perf stat,
* perf top, perf record, perf report, etc.) are started.
*/
-#include "perf.h"
#include <errno.h>
-#include <signal.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
@@ -21,7 +19,6 @@
#include <sys/stat.h>
#include <api/fs/tracing_path.h>
-#include <internal/lib.h> // page_size
#include <perf/core.h>
#include <subcmd/exec-cmd.h>
#include <subcmd/help.h>
@@ -30,7 +27,6 @@
#include <subcmd/run-command.h>
#include "builtin.h"
-#include "perf-sys.h"
#include "ui/ui.h"
#include "util/build-id.h"
#include "util/config.h"
--
2.55.0.966.g6673acef38-goog