.. | .. |
---|
6 | 6 | #include <stdint.h> |
---|
7 | 7 | #include <stdio.h> |
---|
8 | 8 | #include <linux/types.h> |
---|
| 9 | +#include <linux/refcount.h> |
---|
| 10 | +#include <linux/perf_event.h> |
---|
9 | 11 | #include "stat.h" |
---|
10 | 12 | |
---|
11 | 13 | struct perf_mem_event { |
---|
.. | .. |
---|
14 | 16 | const char *tag; |
---|
15 | 17 | const char *name; |
---|
16 | 18 | const char *sysfs_name; |
---|
| 19 | +}; |
---|
| 20 | + |
---|
| 21 | +struct mem_info { |
---|
| 22 | + struct addr_map_symbol iaddr; |
---|
| 23 | + struct addr_map_symbol daddr; |
---|
| 24 | + union perf_mem_data_src data_src; |
---|
| 25 | + refcount_t refcnt; |
---|
17 | 26 | }; |
---|
18 | 27 | |
---|
19 | 28 | enum { |
---|
.. | .. |
---|
30 | 39 | |
---|
31 | 40 | char *perf_mem_events__name(int i); |
---|
32 | 41 | |
---|
| 42 | +void perf_mem_events__list(void); |
---|
| 43 | + |
---|
33 | 44 | struct mem_info; |
---|
34 | 45 | int perf_mem__tlb_scnprintf(char *out, size_t sz, struct mem_info *mem_info); |
---|
35 | 46 | int perf_mem__lvl_scnprintf(char *out, size_t sz, struct mem_info *mem_info); |
---|