aboutsummaryrefslogtreecommitdiff
path: root/pk/pk.h
diff options
context:
space:
mode:
authorChristopher Celio <celio@eecs.berkeley.edu>2014-08-07 18:44:48 -0700
committerChristopher Celio <celio@eecs.berkeley.edu>2014-08-07 18:44:48 -0700
commit5eba64df88be49c4f2aaddeda3f3f81d7b4b34f3 (patch)
tree0f59124bce23058795d55dc5fba6937a9a02e3ce /pk/pk.h
parent929d2f0109570a84f9455b153d2547b172b0ac01 (diff)
downloadpk-5eba64df88be49c4f2aaddeda3f3f81d7b4b34f3.zip
pk-5eba64df88be49c4f2aaddeda3f3f81d7b4b34f3.tar.gz
pk-5eba64df88be49c4f2aaddeda3f3f81d7b4b34f3.tar.bz2
Added "-c" option to track uarch counter info.
Diffstat (limited to 'pk/pk.h')
-rw-r--r--pk/pk.h5
1 files changed, 5 insertions, 0 deletions
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