Commit | Line | Data |
---|---|---|
b2441318 | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
8b40f521 JK |
2 | #ifndef __PERF_VALUES_H |
3 | #define __PERF_VALUES_H | |
8d513270 | 4 | |
d944c4ee | 5 | #include <linux/types.h> |
8d513270 BG |
6 | |
7 | struct perf_read_values { | |
8 | int threads; | |
9 | int threads_max; | |
10 | u32 *pid, *tid; | |
11 | int counters; | |
12 | int counters_max; | |
13 | u64 *counterrawid; | |
14 | char **countername; | |
15 | u64 **value; | |
16 | }; | |
17 | ||
89973506 | 18 | int perf_read_values_init(struct perf_read_values *values); |
8d513270 BG |
19 | void perf_read_values_destroy(struct perf_read_values *values); |
20 | ||
89973506 | 21 | int perf_read_values_add_value(struct perf_read_values *values, |
8d513270 | 22 | u32 pid, u32 tid, |
83a0944f | 23 | u64 rawid, const char *name, u64 value); |
8d513270 | 24 | |
9f866697 BG |
25 | void perf_read_values_display(FILE *fp, struct perf_read_values *values, |
26 | int raw); | |
8d513270 | 27 | |
8b40f521 | 28 | #endif /* __PERF_VALUES_H */ |