8 #include <linux/kernel.h> 13 int type, op,
err = 0, ret = 0, i, idx;
20 for (type = 0; type < PERF_COUNT_HW_CACHE_MAX; type++) {
21 for (op = 0; op < PERF_COUNT_HW_CACHE_OP_MAX; op++) {
26 for (i = 0; i < PERF_COUNT_HW_CACHE_RESULT_MAX; i++) {
39 for (type = 0; type < PERF_COUNT_HW_CACHE_MAX; type++) {
40 for (op = 0; op < PERF_COUNT_HW_CACHE_OP_MAX; op++) {
45 for (i = 0; i < PERF_COUNT_HW_CACHE_RESULT_MAX; i++) {
48 if (evsel->
idx != idx)
76 for (i = 0; i < nr_names; ++i) {
79 pr_debug(
"failed to parse event '%s', err %d\n",
81 goto out_delete_evlist;
98 #define perf_evsel__name_array_test(names) \ 99 __perf_evsel__name_array_test(names, ARRAY_SIZE(names)) 103 int err = 0, ret = 0;
110 PERF_COUNT_SW_DUMMY + 1);
bool perf_evsel__is_cache_op_valid(u8 type, u8 op)
const char * perf_evsel__hw_names[PERF_COUNT_HW_MAX]
void perf_evlist__delete(struct perf_evlist *evlist)
int parse_events(struct perf_evlist *evlist, const char *str, struct parse_events_error *err)
static int perf_evsel__roundtrip_cache_name_test(void)
int __perf_evsel__hw_cache_type_op_res_name(u8 type, u8 op, u8 result, char *bf, size_t size)
static struct perf_evsel * perf_evsel__next(struct perf_evsel *evsel)
const char * perf_evsel__sw_names[PERF_COUNT_SW_MAX]
#define pr_debug(fmt,...)
#define evlist__for_each_entry(evlist, evsel)
#define perf_evsel__name_array_test(names)
const char * perf_evsel__name(struct perf_evsel *evsel)
static struct perf_evsel * perf_evlist__first(struct perf_evlist *evlist)
static int __perf_evsel__name_array_test(const char *names[], int nr_names)
struct perf_evlist * perf_evlist__new(void)
int test__perf_evsel__roundtrip_name_test(struct test *test __maybe_unused, int subtest __maybe_unused)