|
@@ -103,11 +103,10 @@ out:
|
|
|
|
|
|
static int record_header_files(void)
|
|
static int record_header_files(void)
|
|
{
|
|
{
|
|
- char *path;
|
|
|
|
|
|
+ char *path = get_events_file("header_page");
|
|
struct stat st;
|
|
struct stat st;
|
|
int err = -EIO;
|
|
int err = -EIO;
|
|
|
|
|
|
- path = get_tracing_file("events/header_page");
|
|
|
|
if (!path) {
|
|
if (!path) {
|
|
pr_debug("can't get tracing/events/header_page");
|
|
pr_debug("can't get tracing/events/header_page");
|
|
return -ENOMEM;
|
|
return -ENOMEM;
|
|
@@ -128,9 +127,9 @@ static int record_header_files(void)
|
|
goto out;
|
|
goto out;
|
|
}
|
|
}
|
|
|
|
|
|
- put_tracing_file(path);
|
|
|
|
|
|
+ put_events_file(path);
|
|
|
|
|
|
- path = get_tracing_file("events/header_event");
|
|
|
|
|
|
+ path = get_events_file("header_event");
|
|
if (!path) {
|
|
if (!path) {
|
|
pr_debug("can't get tracing/events/header_event");
|
|
pr_debug("can't get tracing/events/header_event");
|
|
err = -ENOMEM;
|
|
err = -ENOMEM;
|
|
@@ -154,7 +153,7 @@ static int record_header_files(void)
|
|
|
|
|
|
err = 0;
|
|
err = 0;
|
|
out:
|
|
out:
|
|
- put_tracing_file(path);
|
|
|
|
|
|
+ put_events_file(path);
|
|
return err;
|
|
return err;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -243,7 +242,7 @@ static int record_ftrace_files(struct tracepoint_path *tps)
|
|
char *path;
|
|
char *path;
|
|
int ret;
|
|
int ret;
|
|
|
|
|
|
- path = get_tracing_file("events/ftrace");
|
|
|
|
|
|
+ path = get_events_file("ftrace");
|
|
if (!path) {
|
|
if (!path) {
|
|
pr_debug("can't get tracing/events/ftrace");
|
|
pr_debug("can't get tracing/events/ftrace");
|
|
return -ENOMEM;
|
|
return -ENOMEM;
|