mirror of
https://github.com/Dasharo/linux.git
synced 2026-03-06 15:25:10 -08:00
perf tools: Move 'struct perf_sample' to a separate header file to disentangle headers
Some places were including event.h just to get 'struct perf_sample', move it to a separate place so that we speed up a bit the build. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
#include <elfutils/libdwfl.h>
|
||||
#include "../../../util/unwind-libdw.h"
|
||||
#include "../../../util/perf_regs.h"
|
||||
#include "../../../util/event.h"
|
||||
#include "../../../util/sample.h"
|
||||
|
||||
bool libdw__arch_set_initial_registers(Dwfl_Thread *thread, void *arg)
|
||||
{
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
#include "symbol.h"
|
||||
#include "callchain.h"
|
||||
#include "record.h"
|
||||
#include "util/perf_regs.h"
|
||||
|
||||
void arch__add_leaf_frame_record_opts(struct record_opts *opts)
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#include <elfutils/libdwfl.h>
|
||||
#include "../../../util/unwind-libdw.h"
|
||||
#include "../../../util/perf_regs.h"
|
||||
#include "../../../util/event.h"
|
||||
#include "../../../util/sample.h"
|
||||
|
||||
bool libdw__arch_set_initial_registers(Dwfl_Thread *thread, void *arg)
|
||||
{
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
#include "../../../util/tool.h"
|
||||
#include "../../../util/map.h"
|
||||
#include "../../../util/debug.h"
|
||||
#include "../../../util/sample.h"
|
||||
|
||||
void arch_perf_parse_sample_weight(struct perf_sample *data,
|
||||
const __u64 *array, u64 type)
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
#include <linux/kernel.h>
|
||||
#include "../../../util/unwind-libdw.h"
|
||||
#include "../../../util/perf_regs.h"
|
||||
#include "../../../util/event.h"
|
||||
#include "../../../util/sample.h"
|
||||
|
||||
/* See backends/ppc_initreg.c and backends/ppc_regs.c in elfutils. */
|
||||
static const int special_regs[3][2] = {
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
#include "../../util/unwind-libdw.h"
|
||||
#include "../../util/perf_regs.h"
|
||||
#include "../../util/event.h"
|
||||
#include "../../util/sample.h"
|
||||
#include "dwarf-regs-table.h"
|
||||
|
||||
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
#include "event.h"
|
||||
#include "evsel.h"
|
||||
#include "debug.h"
|
||||
#include "util/sample.h"
|
||||
#include "util/synthetic-events.h"
|
||||
|
||||
#include "tests/tests.h"
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
#include "../../../util/tool.h"
|
||||
#include "../../../util/map.h"
|
||||
#include "../../../util/debug.h"
|
||||
#include "util/sample.h"
|
||||
|
||||
#if defined(__x86_64__)
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#include <elfutils/libdwfl.h>
|
||||
#include "../../../util/unwind-libdw.h"
|
||||
#include "../../../util/perf_regs.h"
|
||||
#include "../../../util/event.h"
|
||||
#include "util/sample.h"
|
||||
|
||||
bool libdw__arch_set_initial_registers(Dwfl_Thread *thread, void *arg)
|
||||
{
|
||||
|
||||
@@ -19,10 +19,10 @@
|
||||
#include "util/data.h"
|
||||
#include "util/stat.h"
|
||||
#include "util/debug.h"
|
||||
#include "util/event.h"
|
||||
#include "util/symbol.h"
|
||||
#include "util/session.h"
|
||||
#include "util/build-id.h"
|
||||
#include "util/sample.h"
|
||||
#include "util/synthetic-events.h"
|
||||
|
||||
#define MMAP_DEV_MAJOR 8
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
#include "util/symbol.h"
|
||||
#include "util/pmu.h"
|
||||
#include "util/pmu-hybrid.h"
|
||||
#include "util/sample.h"
|
||||
#include "util/string2.h"
|
||||
#include <linux/err.h>
|
||||
|
||||
|
||||
@@ -33,6 +33,7 @@
|
||||
#include "archinsn.h"
|
||||
#include "dlfilter.h"
|
||||
#include "tests.h"
|
||||
#include "util/sample.h"
|
||||
|
||||
#define MAP_START 0x400000
|
||||
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
#include "thread_map.h"
|
||||
#include "tests.h"
|
||||
#include "util/mmap.h"
|
||||
#include "util/sample.h"
|
||||
#include <linux/err.h>
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/string.h>
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
#include "util/mmap.h"
|
||||
#include <errno.h>
|
||||
#include <perf/mmap.h>
|
||||
#include "util/sample.h"
|
||||
|
||||
#ifndef O_DIRECTORY
|
||||
#define O_DIRECTORY 00200000
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
#include "evlist.h"
|
||||
#include "header.h"
|
||||
#include "debug.h"
|
||||
#include "util/sample.h"
|
||||
|
||||
static int process_event(struct evlist **pevlist, union perf_event *event)
|
||||
{
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
#include "record.h"
|
||||
#include "tests.h"
|
||||
#include "util/mmap.h"
|
||||
#include "util/sample.h"
|
||||
|
||||
static int sched__get_first_possible_cpu(pid_t pid, cpu_set_t *maskp)
|
||||
{
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
#include "tsc.h"
|
||||
#include "mmap.h"
|
||||
#include "tests.h"
|
||||
#include "util/sample.h"
|
||||
|
||||
/*
|
||||
* Except x86_64/i386 and Arm64, other archs don't support TSC in perf. Just
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
#include "util/evlist.h"
|
||||
#include "util/cpumap.h"
|
||||
#include "util/mmap.h"
|
||||
#include "util/sample.h"
|
||||
#include "util/thread_map.h"
|
||||
#include <perf/evlist.h>
|
||||
#include <perf/mmap.h>
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
#include "record.h"
|
||||
#include "tests.h"
|
||||
#include "util/mmap.h"
|
||||
#include "util/sample.h"
|
||||
#include "pmu.h"
|
||||
|
||||
static int spin_sleep(void)
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
#include "evlist.h"
|
||||
#include "sample-raw.h"
|
||||
#include "pmu-events/pmu-events.h"
|
||||
#include "util/sample.h"
|
||||
|
||||
static u32 cpu_family, cpu_model, ibs_fetch_type, ibs_op_type;
|
||||
static bool zen4_ibs_extensions;
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user