Skip to content

Commit ea0c523

Browse files
captain5050acmel
authored andcommitted
perf util: Move perf_guest/host declarations
The definitions are in util.c so move the declarations to match. Signed-off-by: Ian Rogers <irogers@google.com> Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Athira Rajeev <atrajeev@linux.vnet.ibm.com> Cc: Chengdong Li <chengdongli@tencent.com> Cc: Denis Nikitin <denik@chromium.org> Cc: Florian Fischer <florian.fischer@muhq.space> Cc: Ingo Molnar <mingo@redhat.com> Cc: James Clark <james.clark@arm.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: John Garry <john.g.garry@oracle.com> Cc: Kan Liang <kan.liang@linux.intel.com> Cc: Leo Yan <leo.yan@linaro.org> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Martin Liška <mliska@suse.cz> Cc: Mathieu Poirier <mathieu.poirier@linaro.org> Cc: Mike Leach <mike.leach@linaro.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Raul Silvera <rsilvera@google.com> Cc: Ravi Bangoria <ravi.bangoria@amd.com> Cc: Rob Herring <robh@kernel.org> Cc: Sean Christopherson <seanjc@google.com> Cc: Suzuki Poulouse <suzuki.poulose@arm.com> Cc: Will Deacon <will@kernel.org> Cc: Xing Zhengjun <zhengjun.xing@linux.intel.com> Cc: coresight@lists.linaro.org Cc: linux-arm-kernel@lists.infradead.org Link: https://lore.kernel.org/r/20230410162511.3055900-2-irogers@google.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent f12ad27 commit ea0c523

File tree

11 files changed

+12
-10
lines changed

11 files changed

+12
-10
lines changed

tools/perf/builtin-diff.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
* DSOs and symbol information, sort them and produce a diff.
77
*/
88
#include "builtin.h"
9-
#include "perf.h"
109

1110
#include "util/debug.h"
1211
#include "util/event.h"
@@ -26,6 +25,7 @@
2625
#include "util/spark.h"
2726
#include "util/block-info.h"
2827
#include "util/stream.h"
28+
#include "util/util.h"
2929
#include <linux/err.h>
3030
#include <linux/zalloc.h>
3131
#include <subcmd/pager.h>

tools/perf/builtin-kvm.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
#include "util/data.h"
2424
#include "util/ordered-events.h"
2525
#include "util/kvm-stat.h"
26+
#include "util/util.h"
2627
#include "ui/browsers/hists.h"
2728
#include "ui/progress.h"
2829
#include "ui/ui.h"

tools/perf/perf.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,10 @@
22
#ifndef _PERF_PERF_H
33
#define _PERF_PERF_H
44

5-
#include <stdbool.h>
6-
75
#ifndef MAX_NR_CPUS
86
#define MAX_NR_CPUS 2048
97
#endif
108

11-
extern bool perf_host, perf_guest;
12-
139
enum perf_affinity {
1410
PERF_AFFINITY_SYS = 0,
1511
PERF_AFFINITY_NODE,

tools/perf/ui/hist.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#include "../util/sort.h"
1212
#include "../util/evsel.h"
1313
#include "../util/evlist.h"
14-
#include "../perf.h"
14+
#include "../util/util.h"
1515

1616
/* hist period print (hpp) functions */
1717

tools/perf/util/cs-etm.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
#include "tsc.h"
3939
#include <tools/libc_compat.h>
4040
#include "util/synthetic-events.h"
41+
#include "util/util.h"
4142

4243
struct cs_etm_auxtrace {
4344
struct auxtrace auxtrace;

tools/perf/util/event.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
#include "bpf-event.h"
3434
#include "print_binary.h"
3535
#include "tool.h"
36-
#include "../perf.h"
36+
#include "util.h"
3737

3838
static const char *perf_event__names[] = {
3939
[0] = "TOTAL",

tools/perf/util/evlist.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
#include "util/pmu.h"
3333
#include "util/sample.h"
3434
#include "util/bpf-filter.h"
35+
#include "util/util.h"
3536
#include <signal.h>
3637
#include <unistd.h>
3738
#include <sched.h>

tools/perf/util/parse-events.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@
2525
#include "util/parse-branch-options.h"
2626
#include "util/evsel_config.h"
2727
#include "util/event.h"
28-
#include "perf.h"
2928
#include "util/parse-events-hybrid.h"
3029
#include "util/pmu-hybrid.h"
3130
#include "util/bpf-filter.h"
31+
#include "util/util.h"
3232
#include "tracepoint.h"
3333
#include "thread_map.h"
3434

tools/perf/util/session.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
#include "stat.h"
3434
#include "tsc.h"
3535
#include "ui/progress.h"
36-
#include "../perf.h"
36+
#include "util.h"
3737
#include "arch/common.h"
3838
#include "units.h"
3939
#include <internal/lib.h>

tools/perf/util/top.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#include "parse-events.h"
1212
#include "symbol.h"
1313
#include "top.h"
14-
#include "../perf.h"
14+
#include "util.h"
1515
#include <inttypes.h>
1616

1717
#define SNPRINTF(buf, size, fmt, args...) \

0 commit comments

Comments
 (0)