29 lines
924 B
Diff
29 lines
924 B
Diff
From 4eeac8cdc23b797634a08cd2973ef86636c5a8b9 Mon Sep 17 00:00:00 2001
|
|
From: Colin Ian King <colin.king@canonical.com>
|
|
Date: Thu, 21 May 2020 08:58:55 +0100
|
|
Subject: [PATCH 18/28] core-ftrace: fix removed filename setting statement
|
|
|
|
Put a snprintf statement back after removing it
|
|
|
|
Fixes: 5dfc5ed3e0d9 ("core-ftrace: remove setting of set_event_pid and refactor code")
|
|
Signed-off-by: Colin Ian King <colin.king@canonical.com>
|
|
---
|
|
core-ftrace.c | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/core-ftrace.c b/core-ftrace.c
|
|
index d759ec8988e0..d743c964dbbd 100644
|
|
--- a/core-ftrace.c
|
|
+++ b/core-ftrace.c
|
|
@@ -300,6 +300,7 @@ int stress_ftrace_start(void)
|
|
return -1;
|
|
}
|
|
|
|
+ (void)snprintf(filename, sizeof(filename), "%s/tracing/function_profile_enabled", path);
|
|
if (system_write(filename, "0", 1) < 0) {
|
|
pr_inf("ftrace: cannot enable function profiling, errno=%d (%s)\n",
|
|
errno, strerror(errno));
|
|
--
|
|
2.21.3
|
|
|