2 #include <linux/kernel.h> 3 #include <linux/types.h> 4 #include <linux/bitops.h> 5 #include <linux/log2.h> 7 #include "../../util/evlist.h" 8 #include "../../util/auxtrace.h" 9 #include "../../util/evsel.h" 11 #define PERF_EVENT_CPUM_SF 0xB0000 12 #define PERF_EVENT_CPUM_SF_DIAG 0xBD000 13 #define DEFAULT_AUX_PAGES 128 14 #define DEFAULT_FREQ 4000 31 size_t priv_size __maybe_unused)
47 unsigned int factor = 1;
74 const char *
str __maybe_unused)
105 aux =
zalloc(
sizeof(*aux));
struct auxtrace_record * auxtrace_record__init(struct perf_evlist *evlist, int *err)
static void cpumsf_free(struct auxtrace_record *itr)
static int cpumsf_info_fill(struct auxtrace_record *itr __maybe_unused, struct perf_session *session __maybe_unused, struct auxtrace_info_event *auxtrace_info __maybe_unused, size_t priv_size __maybe_unused)
static unsigned long cpumsf_reference(struct auxtrace_record *itr __maybe_unused)
size_t(* info_priv_size)(struct auxtrace_record *itr, struct perf_evlist *evlist)
static int cpumsf_recording_options(struct auxtrace_record *ar __maybe_unused, struct perf_evlist *evlist __maybe_unused, struct record_opts *opts)
u64(* reference)(struct auxtrace_record *itr)
#define DEFAULT_AUX_PAGES
static struct perf_session * session
#define evlist__for_each_entry(evlist, evsel)
void(* free)(struct auxtrace_record *itr)
int(* recording_options)(struct auxtrace_record *itr, struct perf_evlist *evlist, struct record_opts *opts)
static int str(yyscan_t scanner, int token)
static int cpumsf_parse_snapshot_options(struct auxtrace_record *itr __maybe_unused, struct record_opts *opts __maybe_unused, const char *str __maybe_unused)
static size_t cpumsf_info_priv_size(struct auxtrace_record *itr __maybe_unused, struct perf_evlist *evlist __maybe_unused)
int(* parse_snapshot_options)(struct auxtrace_record *itr, struct record_opts *opts, const char *str)
#define PERF_EVENT_CPUM_SF_DIAG
unsigned int auxtrace_mmap_pages
int(* info_fill)(struct auxtrace_record *itr, struct perf_session *session, struct auxtrace_info_event *auxtrace_info, size_t priv_size)
struct perf_event_attr attr
void static void * zalloc(size_t size)