diff options
Diffstat (limited to 'tools/perf')
-rw-r--r-- | tools/perf/util/evlist.c | 6 | ||||
-rw-r--r-- | tools/perf/util/evlist.h | 3 |
2 files changed, 6 insertions, 3 deletions
diff --git a/tools/perf/util/evlist.c b/tools/perf/util/evlist.c index 8c44aadb9810..b9eac0daa0b9 100644 --- a/tools/perf/util/evlist.c +++ b/tools/perf/util/evlist.c | |||
@@ -534,9 +534,9 @@ void perf_evlist__id_add(struct perf_evlist *evlist, struct perf_evsel *evsel, | |||
534 | evsel->id[evsel->ids++] = id; | 534 | evsel->id[evsel->ids++] = id; |
535 | } | 535 | } |
536 | 536 | ||
537 | static int perf_evlist__id_add_fd(struct perf_evlist *evlist, | 537 | int perf_evlist__id_add_fd(struct perf_evlist *evlist, |
538 | struct perf_evsel *evsel, | 538 | struct perf_evsel *evsel, |
539 | int cpu, int thread, int fd) | 539 | int cpu, int thread, int fd) |
540 | { | 540 | { |
541 | u64 read_data[4] = { 0, }; | 541 | u64 read_data[4] = { 0, }; |
542 | int id_idx = 1; /* The first entry is the counter value */ | 542 | int id_idx = 1; /* The first entry is the counter value */ |
diff --git a/tools/perf/util/evlist.h b/tools/perf/util/evlist.h index a459fe71b452..139a50038097 100644 --- a/tools/perf/util/evlist.h +++ b/tools/perf/util/evlist.h | |||
@@ -97,6 +97,9 @@ perf_evlist__find_tracepoint_by_name(struct perf_evlist *evlist, | |||
97 | 97 | ||
98 | void perf_evlist__id_add(struct perf_evlist *evlist, struct perf_evsel *evsel, | 98 | void perf_evlist__id_add(struct perf_evlist *evlist, struct perf_evsel *evsel, |
99 | int cpu, int thread, u64 id); | 99 | int cpu, int thread, u64 id); |
100 | int perf_evlist__id_add_fd(struct perf_evlist *evlist, | ||
101 | struct perf_evsel *evsel, | ||
102 | int cpu, int thread, int fd); | ||
100 | 103 | ||
101 | int perf_evlist__add_pollfd(struct perf_evlist *evlist, int fd); | 104 | int perf_evlist__add_pollfd(struct perf_evlist *evlist, int fd); |
102 | int perf_evlist__alloc_pollfd(struct perf_evlist *evlist); | 105 | int perf_evlist__alloc_pollfd(struct perf_evlist *evlist); |