|
@@ -43,10 +43,15 @@ void perf_evlist__add(struct perf_evlist *evlist, struct perf_evsel *entry);
|
|
int perf_evlist__add_default(struct perf_evlist *evlist);
|
|
int perf_evlist__add_default(struct perf_evlist *evlist);
|
|
int perf_evlist__add_attrs(struct perf_evlist *evlist,
|
|
int perf_evlist__add_attrs(struct perf_evlist *evlist,
|
|
struct perf_event_attr *attrs, size_t nr_attrs);
|
|
struct perf_event_attr *attrs, size_t nr_attrs);
|
|
|
|
+int perf_evlist__add_tracepoints(struct perf_evlist *evlist,
|
|
|
|
+ const char *tracepoints[], size_t nr_tracepoints);
|
|
|
|
|
|
#define perf_evlist__add_attrs_array(evlist, array) \
|
|
#define perf_evlist__add_attrs_array(evlist, array) \
|
|
perf_evlist__add_attrs(evlist, array, ARRAY_SIZE(array))
|
|
perf_evlist__add_attrs(evlist, array, ARRAY_SIZE(array))
|
|
|
|
|
|
|
|
+#define perf_evlist__add_tracepoints_array(evlist, array) \
|
|
|
|
+ perf_evlist__add_tracepoints(evlist, array, ARRAY_SIZE(array))
|
|
|
|
+
|
|
void perf_evlist__id_add(struct perf_evlist *evlist, struct perf_evsel *evsel,
|
|
void perf_evlist__id_add(struct perf_evlist *evlist, struct perf_evsel *evsel,
|
|
int cpu, int thread, u64 id);
|
|
int cpu, int thread, u64 id);
|
|
|
|
|