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)
commitc48903b816e6cdffb09b473352851bf199d0c582
tree41390620c8dfa1f3f60ef1133953a010e8541fc1
parentb5d8bbe8601a45b908f7952707bbb30bf221ca3b
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