diff options
author | Hyeongsik Min <hyeongsik.min@samsung.com> | 2017-06-05 09:37:11 +0900 |
---|---|---|
committer | Hyeongsik Min <hyeongsik.min@samsung.com> | 2017-06-05 09:49:48 +0900 |
commit | 276100ca693c08751d48ef631389ac2caef96505 (patch) | |
tree | 493d27364a55ceaeb2830bec5175863ae17bad49 | |
parent | 9af1633870e30c8d2c8b2e4ce9da776ecdf871a7 (diff) | |
download | memps-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |