tools lib api fs: Replace debugfs/tracefs objects interface with fs.c
Switching to the fs.c related filesystem framework. Signed-off-by: Jiri Olsa <jolsa@kernel.org> Cc: David Ahern <dsahern@gmail.com> Cc: Matt Fleming <matt@codeblueprint.co.uk> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Raphael Beamonte <raphael.beamonte@gmail.com> Cc: Steven Rostedt <rostedt@goodmis.org> Link: http://lkml.kernel.org/r/1441180605-24737-14-git-send-email-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:

committed by
Arnaldo Carvalho de Melo

parent
4f234f06d6
commit
4605eab348
@@ -22,8 +22,7 @@
|
||||
#include "color.h"
|
||||
#include "symbol.h"
|
||||
#include "thread.h"
|
||||
#include <api/fs/debugfs.h>
|
||||
#include <api/fs/tracefs.h>
|
||||
#include <api/fs/fs.h>
|
||||
#include "probe-event.h"
|
||||
#include "probe-file.h"
|
||||
#include "session.h"
|
||||
@@ -77,11 +76,11 @@ static int open_probe_events(const char *trace_file, bool readwrite)
|
||||
const char *tracing_dir = "";
|
||||
int ret;
|
||||
|
||||
__debugfs = tracefs_find_mountpoint();
|
||||
__debugfs = tracefs__mountpoint();
|
||||
if (__debugfs == NULL) {
|
||||
tracing_dir = "tracing/";
|
||||
|
||||
__debugfs = debugfs_find_mountpoint();
|
||||
__debugfs = debugfs__mountpoint();
|
||||
if (__debugfs == NULL)
|
||||
return -ENOTSUP;
|
||||
}
|
||||
|
Reference in New Issue
Block a user