]> 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)
commit0fee34ac0982f1ab125d436277a4cad695890f3e
tree41390620c8dfa1f3f60ef1133953a010e8541fc1
parent13b6b42950048a9e6349f7d8cd47325654ef523f
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