perf tools: Add sysfs mountpoint interface
authorJiri Olsa <jolsa@redhat.com>
Fri, 27 Jan 2012 14:34:22 +0000 (15:34 +0100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 14 Feb 2012 01:27:15 +0000 (23:27 -0200)
commite90fda0635401225ca7c2343bea2f6d279347d10
treed87047ae41bacd526c7658572372f86fbd572df1
parent2837609fefbfe8f1248bfce09d9f0b44d5eb713d
perf tools: Add sysfs mountpoint interface

Adding sysfs object to provide sysfs mount information in the same way
as debugfs object does.

The object provides following function:
  sysfs_find_mountpoint

which returns the sysfs mount mount.

Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1327674868-10486-4-git-send-email-jolsa@redhat.com
Signed-off-by: Jiri Olsa <jolsa@redhat.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/Makefile
tools/perf/util/sysfs.c [new file with mode: 0644]
tools/perf/util/sysfs.h [new file with mode: 0644]