perf tool: Remove unused includes in perf.c

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@google.com>
Assisted-by: Antigravity:gemini-3.1-pro
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
Ian Rogers 2026-09-02 08:48:55 -07:00 committed by Arnaldo Carvalho de Melo
parent 583ba92ef0
commit bc8af6295a

View File

@ -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"