2009-09-24 20:02:18 +04:00
|
|
|
#ifndef __PERF_VALUES_H
|
|
|
|
#define __PERF_VALUES_H
|
2009-08-07 15:55:24 +04:00
|
|
|
|
2014-04-25 23:31:02 +04:00
|
|
|
#include <linux/types.h>
|
2009-08-07 15:55:24 +04: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 00:23:11 +03:00
|
|
|
int perf_read_values_init(struct perf_read_values *values);
|
2009-08-07 15:55:24 +04:00
|
|
|
void perf_read_values_destroy(struct perf_read_values *values);
|
|
|
|
|
2016-10-15 00:23:11 +03:00
|
|
|
int perf_read_values_add_value(struct perf_read_values *values,
|
2009-08-07 15:55:24 +04:00
|
|
|
u32 pid, u32 tid,
|
2009-08-15 14:26:57 +04:00
|
|
|
u64 rawid, const char *name, u64 value);
|
2009-08-07 15:55:24 +04:00
|
|
|
|
2009-08-10 17:26:32 +04:00
|
|
|
void perf_read_values_display(FILE *fp, struct perf_read_values *values,
|
|
|
|
int raw);
|
2009-08-07 15:55:24 +04:00
|
|
|
|
2009-09-24 20:02:18 +04:00
|
|
|
#endif /* __PERF_VALUES_H */
|