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