#include <api/fs/fs.h>
#include <linux/bitops.h>
#include <linux/compiler.h>
#include <linux/coresight-pmu.h>
#include <linux/kernel.h>
#include <linux/log2.h>
#include <linux/types.h>
#include "cs-etm.h"
#include "../../perf.h"
#include "../../util/auxtrace.h"
#include "../../util/cpumap.h"
#include "../../util/evlist.h"
#include "../../util/evsel.h"
#include "../../util/pmu.h"
#include "../../util/thread_map.h"
#include "../../util/cs-etm.h"
#include <stdlib.h>
#include <sys/stat.h>
Go to the source code of this file.
|
static bool | cs_etm_is_etmv4 (struct auxtrace_record *itr, int cpu) |
|
static int | cs_etm_parse_snapshot_options (struct auxtrace_record *itr, struct record_opts *opts, const char *str) |
|
static int | cs_etm_recording_options (struct auxtrace_record *itr, struct perf_evlist *evlist, struct record_opts *opts) |
|
static u64 | cs_etm_get_config (struct auxtrace_record *itr) |
|
static u64 | cs_etmv4_get_config (struct auxtrace_record *itr) |
|
static size_t | cs_etm_info_priv_size (struct auxtrace_record *itr __maybe_unused, struct perf_evlist *evlist __maybe_unused) |
|
static int | cs_etm_get_ro (struct perf_pmu *pmu, int cpu, const char *path) |
|
static void | cs_etm_get_metadata (int cpu, u32 *offset, struct auxtrace_record *itr, struct auxtrace_info_event *info) |
|
static int | cs_etm_info_fill (struct auxtrace_record *itr, struct perf_session *session, struct auxtrace_info_event *info, size_t priv_size) |
|
static int | cs_etm_find_snapshot (struct auxtrace_record *itr __maybe_unused, int idx, struct auxtrace_mmap *mm, unsigned char *data __maybe_unused, u64 *head, u64 *old) |
|
static int | cs_etm_snapshot_start (struct auxtrace_record *itr) |
|
static int | cs_etm_snapshot_finish (struct auxtrace_record *itr) |
|
static u64 | cs_etm_reference (struct auxtrace_record *itr __maybe_unused) |
|
static void | cs_etm_recording_free (struct auxtrace_record *itr) |
|
static int | cs_etm_read_finish (struct auxtrace_record *itr, int idx) |
|
struct auxtrace_record * | cs_etm_record_init (int *err) |
|
static FILE * | cs_device__open_file (const char *name) |
|
static int | __printf (2, 3) |
|
int | cs_etm_set_drv_config (struct perf_evsel_config_term *term) |
|
◆ BIT
#define BIT |
( |
|
N | ) |
(1UL << (N)) |
◆ CS_BUS_DEVICE_PATH
#define CS_BUS_DEVICE_PATH "/bus/coresight/devices/" |
◆ ENABLE_SINK_MAX
#define ENABLE_SINK_MAX 128 |
◆ __printf()
static int __printf |
( |
2 |
, |
|
|
3 |
|
|
) |
| |
|
static |
◆ cs_device__open_file()
static FILE* cs_device__open_file |
( |
const char * |
name | ) |
|
|
static |
◆ cs_etm_find_snapshot()
static int cs_etm_find_snapshot |
( |
struct auxtrace_record *itr |
__maybe_unused, |
|
|
int |
idx, |
|
|
struct auxtrace_mmap * |
mm, |
|
|
unsigned char *data |
__maybe_unused, |
|
|
u64 * |
head, |
|
|
u64 * |
old |
|
) |
| |
|
static |
◆ cs_etm_get_config()
◆ cs_etm_get_metadata()
◆ cs_etm_get_ro()
static int cs_etm_get_ro |
( |
struct perf_pmu * |
pmu, |
|
|
int |
cpu, |
|
|
const char * |
path |
|
) |
| |
|
static |
◆ cs_etm_info_fill()
◆ cs_etm_info_priv_size()
◆ cs_etm_is_etmv4()
◆ cs_etm_parse_snapshot_options()
◆ cs_etm_read_finish()
◆ cs_etm_record_init()
◆ cs_etm_recording_free()
◆ cs_etm_recording_options()
◆ cs_etm_reference()
◆ cs_etm_set_drv_config()
◆ cs_etm_snapshot_finish()
◆ cs_etm_snapshot_start()
◆ cs_etmv4_get_config()
◆ metadata_etmv3_ro
Initial value:
Definition at line 325 of file cs-etm.c.
◆ metadata_etmv4_ro
Initial value:
Definition at line 330 of file cs-etm.c.