From c4cac8f17f3daee5d5290b48f495ffec592c7eaa Mon Sep 17 00:00:00 2001 From: Erick Reyes Date: Mon, 4 Feb 2019 19:02:18 -0800 Subject: [PATCH] meminfo: make dmabuf_dump dependency on debugfs optional dmabuf_dump had a hard dependency on debugfs to gather the initial list of buffers for all proceses, make it optional. Change-Id: I1d271297c0ad6124b321a1ee8aa01d3e88ca9fed Signed-off-by: Erick Reyes --- libmeminfo/libdmabufinfo/tools/dmabuf_dump.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libmeminfo/libdmabufinfo/tools/dmabuf_dump.cpp b/libmeminfo/libdmabufinfo/tools/dmabuf_dump.cpp index 223c001ae..5168ea00a 100644 --- a/libmeminfo/libdmabufinfo/tools/dmabuf_dump.cpp +++ b/libmeminfo/libdmabufinfo/tools/dmabuf_dump.cpp @@ -150,8 +150,8 @@ int main(int argc, char* argv[]) { if (show_all) { if (!ReadDmaBufInfo(&bufs)) { - std::cerr << "Unable to read DEBUGFS dmabuf info" << std::endl; - exit(EXIT_FAILURE); + std::cerr << "debugfs entry for dmabuf not available, skipping" << std::endl; + bufs.clear(); } std::unique_ptr dir(opendir("/proc"), closedir); if (!dir) {