Skip to contentSkip to conversation

perf parse-events: Remove unnecessary #includes

PATCH In review Ian Rogers 2 participants 2 messages Jan 27, 2021 – Feb 3, 2021 perf events

lore
Share & tools
lore

Ian Rogers

author reviewer
#0 lore raw

PATCH 1/1 perf parse-events: Remove unnecessary #includes

Minor cleanup motivated by trying to separately fuzz test parse-events.

---
 tools/perf/util/parse-events.c | 2 --
 tools/perf/util/parse-events.l | 1 -
 2 files changed, 3 deletions(-)
tools/perf/util/parse-events.c +0 -2
index 42c84adeb2fb..8982b3c8014c 100644
@@ -19,8 +19,6 @@
 #include <subcmd/exec-cmd.h>
 #include "string2.h"
 #include "strlist.h"
-#include "symbol.h"
-#include "header.h"
 #include "bpf-loader.h"
 #include "debug.h"
 #include <api/fs/tracing_path.h>
tools/perf/util/parse-events.l +0 -1
index 9db5097317f4..03d2ac04edb3 100644
@@ -12,7 +12,6 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <unistd.h>
-#include "../perf.h"
 #include "parse-events.h"
 #include "parse-events-bison.h"
 #include "evsel.h"
Signature · 1 line
2.30.0.280.ga3ce27912f-goog
maintainer Acked-by on v1 1/1
#1 lore raw

Hi Ian,

Quoted 4 lines · Ian Rogers

Minor cleanup motivated by trying to separately fuzz test parse-events.

Thanks,
Namhyung

Quoted 33 lines
---
 tools/perf/util/parse-events.c | 2 --
 tools/perf/util/parse-events.l | 1 -
 2 files changed, 3 deletions(-)
tools/perf/util/parse-events.c +0 -2
index 42c84adeb2fb..8982b3c8014c 100644
@@ -19,8 +19,6 @@
 #include <subcmd/exec-cmd.h>
 #include "string2.h"
 #include "strlist.h"
-#include "symbol.h"
-#include "header.h"
 #include "bpf-loader.h"
 #include "debug.h"
 #include <api/fs/tracing_path.h>
tools/perf/util/parse-events.l +0 -2
index 9db5097317f4..03d2ac04edb3 100644
@@ -12,7 +12,6 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <unistd.h>
-#include "../perf.h"
 #include "parse-events.h"
 #include "parse-events-bison.h"
 #include "evsel.h"
--

2.30.0.280.ga3ce27912f-goog