mirror of
https://github.com/adulau/aha.git
synced 2024-12-29 04:06:22 +00:00
9f86669711
If --pretty=raw is given to perf report -T, it now displays one line per-thread per-counter with the raw event id added. We get: # PID TID Name Raw Count 18608 18609 cache-misses 28e 416744 18608 18609 cache-references 28f 6456792 18608 18608 cache-misses 28e 448219 18608 18608 cache-references 28f 7270244 instead of: # PID TID cache-misses cache-references 18608 18609 416744 6456792 18608 18608 448219 7270244 Signed-off-by: Brice Goglin <Brice.Goglin@inria.fr> Acked-by: Peter Zijlstra <peterz@infradead.org> LKML-Reference: <4A802008.5050409@inria.fr> Signed-off-by: Ingo Molnar <mingo@elte.hu>
27 lines
609 B
C
27 lines
609 B
C
#ifndef _PERF_VALUES_H
|
|
#define _PERF_VALUES_H
|
|
|
|
#include "types.h"
|
|
|
|
struct perf_read_values {
|
|
int threads;
|
|
int threads_max;
|
|
u32 *pid, *tid;
|
|
int counters;
|
|
int counters_max;
|
|
u64 *counterrawid;
|
|
char **countername;
|
|
u64 **value;
|
|
};
|
|
|
|
void perf_read_values_init(struct perf_read_values *values);
|
|
void perf_read_values_destroy(struct perf_read_values *values);
|
|
|
|
void perf_read_values_add_value(struct perf_read_values *values,
|
|
u32 pid, u32 tid,
|
|
u64 rawid, char *name, u64 value);
|
|
|
|
void perf_read_values_display(FILE *fp, struct perf_read_values *values,
|
|
int raw);
|
|
|
|
#endif /* _PERF_VALUES_H */
|