perf mem-info: Move mem-info out of mem-events and symbol
Move mem-info to its own header rather than having it split between mem-events and symbol. Signed-off-by: Ian Rogers <irogers@google.com> Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Andi Kleen <ak@linux.intel.com> Cc: Athira Rajeev <atrajeev@linux.vnet.ibm.com> Cc: Ben Gainey <ben.gainey@arm.com> Cc: Ingo Molnar <mingo@redhat.com> Cc: James Clark <james.clark@arm.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: K Prateek Nayak <kprateek.nayak@amd.com> Cc: Kajol Jain <kjain@linux.ibm.com> Cc: Kan Liang <kan.liang@linux.intel.com> Cc: Li Dong <lidong@vivo.com> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Oliver Upton <oliver.upton@linux.dev> Cc: Paran Lee <p4ranlee@gmail.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Ravi Bangoria <ravi.bangoria@amd.com> Cc: Sun Haiyong <sunhaiyong@loongson.cn> Cc: Tim Chen <tim.c.chen@linux.intel.com> Cc: Yanteng Si <siyanteng@loongson.cn> Cc: Yicong Yang <yangyicong@hisilicon.com> Link: https://lore.kernel.org/r/20240507183545.1236093-7-irogers@google.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
committed by
Arnaldo Carvalho de Melo
parent
13ca628716
commit
ad3003a65a
@ -3,13 +3,7 @@
|
||||
#define __PERF_MEM_EVENTS_H
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <linux/types.h>
|
||||
#include <linux/refcount.h>
|
||||
#include <linux/perf_event.h>
|
||||
#include "stat.h"
|
||||
#include "evsel.h"
|
||||
|
||||
struct perf_mem_event {
|
||||
bool record;
|
||||
@ -21,13 +15,6 @@ struct perf_mem_event {
|
||||
const char *event_name;
|
||||
};
|
||||
|
||||
struct mem_info {
|
||||
struct addr_map_symbol iaddr;
|
||||
struct addr_map_symbol daddr;
|
||||
union perf_mem_data_src data_src;
|
||||
refcount_t refcnt;
|
||||
};
|
||||
|
||||
enum {
|
||||
PERF_MEM_EVENTS__LOAD,
|
||||
PERF_MEM_EVENTS__STORE,
|
||||
@ -35,6 +22,10 @@ enum {
|
||||
PERF_MEM_EVENTS__MAX,
|
||||
};
|
||||
|
||||
struct evsel;
|
||||
struct mem_info;
|
||||
struct perf_pmu;
|
||||
|
||||
extern unsigned int perf_mem_events__loads_ldlat;
|
||||
extern struct perf_mem_event perf_mem_events[PERF_MEM_EVENTS__MAX];
|
||||
|
||||
@ -49,13 +40,13 @@ bool is_mem_loads_aux_event(struct evsel *leader);
|
||||
void perf_pmu__mem_events_list(struct perf_pmu *pmu);
|
||||
int perf_mem_events__record_args(const char **rec_argv, int *argv_nr);
|
||||
|
||||
int perf_mem__tlb_scnprintf(char *out, size_t sz, struct mem_info *mem_info);
|
||||
int perf_mem__lvl_scnprintf(char *out, size_t sz, struct mem_info *mem_info);
|
||||
int perf_mem__snp_scnprintf(char *out, size_t sz, struct mem_info *mem_info);
|
||||
int perf_mem__lck_scnprintf(char *out, size_t sz, struct mem_info *mem_info);
|
||||
int perf_mem__blk_scnprintf(char *out, size_t sz, struct mem_info *mem_info);
|
||||
int perf_mem__tlb_scnprintf(char *out, size_t sz, const struct mem_info *mem_info);
|
||||
int perf_mem__lvl_scnprintf(char *out, size_t sz, const struct mem_info *mem_info);
|
||||
int perf_mem__snp_scnprintf(char *out, size_t sz, const struct mem_info *mem_info);
|
||||
int perf_mem__lck_scnprintf(char *out, size_t sz, const struct mem_info *mem_info);
|
||||
int perf_mem__blk_scnprintf(char *out, size_t sz, const struct mem_info *mem_info);
|
||||
|
||||
int perf_script__meminfo_scnprintf(char *bf, size_t size, struct mem_info *mem_info);
|
||||
int perf_script__meminfo_scnprintf(char *bf, size_t size, const struct mem_info *mem_info);
|
||||
|
||||
struct c2c_stats {
|
||||
u32 nr_entries;
|
||||
|
Reference in New Issue
Block a user