.. | .. |
---|
1 | | -// SPDX-License-Identifier: GPL-2.0 |
---|
2 | 1 | #include <linux/kernel.h> |
---|
3 | 2 | #include <linux/types.h> |
---|
4 | 3 | #include <stddef.h> |
---|
.. | .. |
---|
8 | 7 | #include "event.h" |
---|
9 | 8 | #include "evlist.h" |
---|
10 | 9 | #include "header.h" |
---|
11 | | -#include "util.h" |
---|
12 | 10 | #include "debug.h" |
---|
13 | 11 | |
---|
14 | | -static int process_event(struct perf_evlist **pevlist, union perf_event *event) |
---|
| 12 | +static int process_event(struct evlist **pevlist, union perf_event *event) |
---|
15 | 13 | { |
---|
16 | 14 | struct perf_sample sample; |
---|
17 | 15 | |
---|
.. | .. |
---|
39 | 37 | |
---|
40 | 38 | static int process_events(union perf_event **events, size_t count) |
---|
41 | 39 | { |
---|
42 | | - struct perf_evlist *evlist = NULL; |
---|
| 40 | + struct evlist *evlist = NULL; |
---|
43 | 41 | int err = 0; |
---|
44 | 42 | size_t i; |
---|
45 | 43 | |
---|
46 | 44 | for (i = 0; i < count && !err; i++) |
---|
47 | 45 | err = process_event(&evlist, events[i]); |
---|
48 | 46 | |
---|
49 | | - perf_evlist__delete(evlist); |
---|
| 47 | + evlist__delete(evlist); |
---|
50 | 48 | |
---|
51 | 49 | return err; |
---|
52 | 50 | } |
---|
.. | .. |
---|
87 | 85 | }, |
---|
88 | 86 | .id = 2, |
---|
89 | 87 | }; |
---|
90 | | - struct mmap_event event3 = { |
---|
| 88 | + struct perf_record_mmap event3 = { |
---|
91 | 89 | .header = { |
---|
92 | 90 | .type = PERF_RECORD_MMAP, |
---|
93 | | - .size = sizeof(struct mmap_event), |
---|
| 91 | + .size = sizeof(struct perf_record_mmap), |
---|
94 | 92 | }, |
---|
95 | 93 | }; |
---|
96 | 94 | union perf_event *events[] = { |
---|