2009-09-25 00:02:18 +08:00
|
|
|
#ifndef __PERF_VALUES_H
|
|
|
|
#define __PERF_VALUES_H
|
2009-08-07 19:55:24 +08:00
|
|
|
|
2014-04-26 03:31:02 +08:00
|
|
|
#include <linux/types.h>
|
2009-08-07 19:55:24 +08:00
|
|
|
|
|
|
|
struct perf_read_values {
|
|
|
|
int threads;
|
|
|
|
int threads_max;
|
|
|
|
u32 *pid, *tid;
|
|
|
|
int counters;
|
|
|
|
int counters_max;
|
|
|
|
u64 *counterrawid;
|
|
|
|
char **countername;
|
|
|
|
u64 **value;
|
|
|
|
};
|
|
|
|
|
2016-10-15 05:23:11 +08:00
|
|
|
int perf_read_values_init(struct perf_read_values *values);
|
2009-08-07 19:55:24 +08:00
|
|
|
void perf_read_values_destroy(struct perf_read_values *values);
|
|
|
|
|
2016-10-15 05:23:11 +08:00
|
|
|
int perf_read_values_add_value(struct perf_read_values *values,
|
2009-08-07 19:55:24 +08:00
|
|
|
u32 pid, u32 tid,
|
2009-08-15 18:26:57 +08:00
|
|
|
u64 rawid, const char *name, u64 value);
|
2009-08-07 19:55:24 +08:00
|
|
|
|
2009-08-10 21:26:32 +08:00
|
|
|
void perf_read_values_display(FILE *fp, struct perf_read_values *values,
|
|
|
|
int raw);
|
2009-08-07 19:55:24 +08:00
|
|
|
|
2009-09-25 00:02:18 +08:00
|
|
|
#endif /* __PERF_VALUES_H */
|