summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHyeongsik Min <hyeongsik.min@samsung.com>2017-06-05 09:37:11 +0900
committerHyeongsik Min <hyeongsik.min@samsung.com>2017-06-05 09:49:48 +0900
commit276100ca693c08751d48ef631389ac2caef96505 (patch)
tree493d27364a55ceaeb2830bec5175863ae17bad49
parent9af1633870e30c8d2c8b2e4ce9da776ecdf871a7 (diff)
downloadmemps-276100ca693c08751d48ef631389ac2caef96505.tar.gz
memps-276100ca693c08751d48ef631389ac2caef96505.tar.bz2
memps-276100ca693c08751d48ef631389ac2caef96505.zip
Use debugfs node for accessing GEM information
drm_proc.c was removed in linux v3.11 Change-Id: I0ff9e92dea03c654ddc0c871f9bd4388ca5afc7b Signed-off-by: Hyeongsik Min <hyeongsik.min@samsung.com>
-rw-r--r--memps.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/memps.c b/memps.c
index e29dd9b..e3e339e 100644
--- a/memps.c
+++ b/memps.c
@@ -374,10 +374,10 @@ static unsigned total_gem_memory(void)
unsigned name, size, handles, refcount;
char line[BUF_MAX];
- gem_fp = fopen("/proc/dri/0/gem_names", "r");
+ gem_fp = fopen("/sys/kernel/debug/dri/0/gem_names", "r");
if(gem_fp == NULL) {
fprintf(stderr,
- "cannot open /proc/dir/0/gem_names\n");
+ "cannot open /sys/kernel/debug/dri/0/gem_names\n");
return 0;
}