evsel.h (0588000eac9ba4178cebade437da3b28e8fad48f) evsel.h (cac21425578abddc4e9f529845832a57ba27ce0f)
1#ifndef __PERF_EVSEL_H
2#define __PERF_EVSEL_H 1
3
4#include <linux/list.h>
5#include <stdbool.h>
6#include "../../../include/uapi/linux/perf_event.h"
7#include "types.h"
8#include "xyarray.h"

--- 78 unchanged lines hidden (view full) ---

87struct event_format *event_format__new(const char *sys, const char *name);
88
89void perf_evsel__init(struct perf_evsel *evsel,
90 struct perf_event_attr *attr, int idx);
91void perf_evsel__exit(struct perf_evsel *evsel);
92void perf_evsel__delete(struct perf_evsel *evsel);
93
94void perf_evsel__config(struct perf_evsel *evsel,
1#ifndef __PERF_EVSEL_H
2#define __PERF_EVSEL_H 1
3
4#include <linux/list.h>
5#include <stdbool.h>
6#include "../../../include/uapi/linux/perf_event.h"
7#include "types.h"
8#include "xyarray.h"

--- 78 unchanged lines hidden (view full) ---

87struct event_format *event_format__new(const char *sys, const char *name);
88
89void perf_evsel__init(struct perf_evsel *evsel,
90 struct perf_event_attr *attr, int idx);
91void perf_evsel__exit(struct perf_evsel *evsel);
92void perf_evsel__delete(struct perf_evsel *evsel);
93
94void perf_evsel__config(struct perf_evsel *evsel,
95 struct perf_record_opts *opts,
96 struct perf_evsel *first);
95 struct perf_record_opts *opts);
97
98bool perf_evsel__is_cache_op_valid(u8 type, u8 op);
99
100#define PERF_EVSEL__MAX_ALIASES 8
101
102extern const char *perf_evsel__hw_cache[PERF_COUNT_HW_CACHE_MAX]
103 [PERF_EVSEL__MAX_ALIASES];
104extern const char *perf_evsel__hw_cache_op[PERF_COUNT_HW_CACHE_OP_MAX]

--- 124 unchanged lines hidden ---
96
97bool perf_evsel__is_cache_op_valid(u8 type, u8 op);
98
99#define PERF_EVSEL__MAX_ALIASES 8
100
101extern const char *perf_evsel__hw_cache[PERF_COUNT_HW_CACHE_MAX]
102 [PERF_EVSEL__MAX_ALIASES];
103extern const char *perf_evsel__hw_cache_op[PERF_COUNT_HW_CACHE_OP_MAX]

--- 124 unchanged lines hidden ---