]> git.baikalelectronics.ru Git - kernel.git/commit
perf symbols: Use lsdir() for the search in kcore cache directory
authorMasami Hiramatsu <mhiramat@kernel.org>
Wed, 11 May 2016 13:52:08 +0000 (22:52 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 11 May 2016 16:06:07 +0000 (13:06 -0300)
commitb02becf8e30d147e92238afca32b09eb9ebc7804
tree41390620c8dfa1f3f60ef1133953a010e8541fc1
parentb835026aac2cc54a9c38a32d4ab8d72451946bad
perf symbols: Use lsdir() for the search in kcore cache directory

Use lsdir() to search in kcore cache directory. This also avoids
checking hidden dot directory entries, because kcore cache directories
must always have the name from timestamps when taking the kcore
snapshots, and it never start with dot.

Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Ananth N Mavinakayanahalli <ananth@linux.vnet.ibm.com>
Cc: Brendan Gregg <brendan.d.gregg@gmail.com>
Cc: Hemant Kumar <hemant@linux.vnet.ibm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20160511135208.23943.68071.stgit@devbox
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/symbol.c