summaryrefslogtreecommitdiff
path: root/overlay/gpu-perf.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-08-23 15:51:21 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2013-08-23 15:53:01 +0100
commit9574cb1a3de0dfe45c59420e2cb9a74fc23baecc (patch)
treeaa474dcec21c0f00196394e6d78a4e97bd9bce06 /overlay/gpu-perf.c
parentfd88db77cccf5d8d9be133dfcb3cdc3ff3f219f3 (diff)
overlay: Search for right debugfs path
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'overlay/gpu-perf.c')
-rw-r--r--overlay/gpu-perf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/overlay/gpu-perf.c b/overlay/gpu-perf.c
index b9ca11bd..61e447da 100644
--- a/overlay/gpu-perf.c
+++ b/overlay/gpu-perf.c
@@ -36,6 +36,7 @@
#include <errno.h>
#include "gpu-perf.h"
+#include "debugfs.h"
#if defined(__i386__)
#define rmb() asm volatile("lock; addl $0,0(%%esp)" ::: "memory")
@@ -45,7 +46,6 @@
#define rmb() asm volatile("lfence" ::: "memory")
#endif
-#define TRACING_EVENT_PATH "/sys/kernel/debug/tracing/events"
#define N_PAGES 32
struct sample_event {
@@ -85,7 +85,7 @@ static uint64_t tracepoint_id(const char *sys, const char *name)
char buf[1024];
int fd, n;
- snprintf(buf, sizeof(buf), "%s/%s/%s/id", TRACING_EVENT_PATH, sys, name);
+ snprintf(buf, sizeof(buf), "%s/tracing/events/%s/%s/id", debugfs_path, sys, name);
fd = open(buf, 0);
if (fd < 0)
return 0;