Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef __PERF_VALUES_H
0003 #define __PERF_VALUES_H
0004 
0005 #include <linux/types.h>
0006 
0007 struct perf_read_values {
0008     int threads;
0009     int threads_max;
0010     u32 *pid, *tid;
0011     int counters;
0012     int counters_max;
0013     u64 *counterrawid;
0014     char **countername;
0015     u64 **value;
0016 };
0017 
0018 int perf_read_values_init(struct perf_read_values *values);
0019 void perf_read_values_destroy(struct perf_read_values *values);
0020 
0021 int perf_read_values_add_value(struct perf_read_values *values,
0022                 u32 pid, u32 tid,
0023                 u64 rawid, const char *name, u64 value);
0024 
0025 void perf_read_values_display(FILE *fp, struct perf_read_values *values,
0026                   int raw);
0027 
0028 #endif /* __PERF_VALUES_H */