#include <inttypes.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include "builtin.h"
#include "perf.h"
#include <subcmd/parse-options.h>
#include "util/trace-event.h"
#include "util/tool.h"
#include "util/session.h"
#include "util/data.h"
#include "util/mem-events.h"
#include "util/debug.h"
#include "util/symbol.h"
Go to the source code of this file.
|
static int | parse_record_events (const struct option *opt, const char *str, int unset __maybe_unused) |
|
static int | __cmd_record (int argc, const char **argv, struct perf_mem *mem) |
|
static int | dump_raw_samples (struct perf_tool *tool, union perf_event *event, struct perf_sample *sample, struct machine *machine) |
|
static int | process_sample_event (struct perf_tool *tool, union perf_event *event, struct perf_sample *sample, struct perf_evsel *evsel __maybe_unused, struct machine *machine) |
|
static int | report_raw_events (struct perf_mem *mem) |
|
static int | report_events (int argc, const char **argv, struct perf_mem *mem) |
|
static int | parse_mem_ops (const struct option *opt, const char *str, int unset) |
|
int | cmd_mem (int argc, const char **argv) |
|
◆ MEM_END
#define MEM_END { .name = NULL } |
◆ MEM_OPERATION_LOAD
#define MEM_OPERATION_LOAD 0x1 |
◆ MEM_OPERATION_STORE
#define MEM_OPERATION_STORE 0x2 |
◆ MEM_OPT
#define MEM_OPT |
( |
|
n, |
|
|
|
m |
|
) |
| { .name = n, .mode = (m) } |
◆ __cmd_record()
static int __cmd_record |
( |
int |
argc, |
|
|
const char ** |
argv, |
|
|
struct perf_mem * |
mem |
|
) |
| |
|
static |
◆ cmd_mem()
int cmd_mem |
( |
int |
argc, |
|
|
const char ** |
argv |
|
) |
| |
◆ dump_raw_samples()
◆ parse_mem_ops()
static int parse_mem_ops |
( |
const struct option * |
opt, |
|
|
const char * |
str, |
|
|
int |
unset |
|
) |
| |
|
static |
◆ parse_record_events()
static int parse_record_events |
( |
const struct option * |
opt, |
|
|
const char * |
str, |
|
|
int unset |
__maybe_unused |
|
) |
| |
|
static |
◆ process_sample_event()
◆ report_events()
static int report_events |
( |
int |
argc, |
|
|
const char ** |
argv, |
|
|
struct perf_mem * |
mem |
|
) |
| |
|
static |
◆ report_raw_events()
static int report_raw_events |
( |
struct perf_mem * |
mem | ) |
|
|
static |
◆ __usage
const char* const __usage[] |
|
static |
Initial value:= {
"perf mem record [<options>] [<command>]",
"perf mem record [<options>] -- <command> [<options>]",
NULL
}
Definition at line 59 of file builtin-mem.c.
◆ mem_modes
Initial value:={
}
#define MEM_OPERATION_LOAD
#define MEM_OPERATION_STORE
Definition at line 327 of file builtin-mem.c.
◆ record_mem_usage
const char* const* record_mem_usage = __usage |
|
static |