From 5eba64df88be49c4f2aaddeda3f3f81d7b4b34f3 Mon Sep 17 00:00:00 2001 From: Christopher Celio Date: Thu, 7 Aug 2014 18:44:48 -0700 Subject: Added "-c" option to track uarch counter info. --- pk/pk.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'pk/pk.h') diff --git a/pk/pk.h b/pk/pk.h index 282530c..e7a8d8e 100644 --- a/pk/pk.h +++ b/pk/pk.h @@ -82,6 +82,11 @@ static inline int insn_len(long insn) #define ARRAY_SIZE(x) (sizeof(x)/sizeof((x)[0])) +#define NUM_COUNTERS (18) +extern int uarch_counters_enabled; +extern long uarch_counters[NUM_COUNTERS]; +extern char* uarch_counter_names[NUM_COUNTERS]; + #ifdef __cplusplus } #endif -- cgit v1.1