summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQiao Zhao <qzhao@redhat.com>2019-07-25 10:49:15 +0800
committerJohn Kacur <jkacur@redhat.com>2019-07-31 17:04:07 +0200
commit40eb214cc9b43f99df3d20b3303b7df1d149b5e2 (patch)
treef67a99b9e3212b7254647a08f8c2504f9820ab57
parent4591e48594feeef0c55b711f29d1b5e0d59e1e70 (diff)
downloadrt-tests-40eb214cc9b43f99df3d20b3303b7df1d149b5e2.tar.gz
rt-tests-40eb214cc9b43f99df3d20b3303b7df1d149b5e2.tar.xz
ptsematest, sigwaittest, pmqtest, svsematest reprot error "Could not access /sys/kernel/debug/tracing/tracing_enabled"
tracing_enabled was deprecated a long time ago and is no longer available, use tracing_on instead To reproduce This patches fixes that Signed-off-by: Qiao Zhao <qzhao@redhat.com> Signed-off-by: John Kacur <jkacur@redhat.com>
-rw-r--r--src/pmqtest/pmqtest.c2
-rw-r--r--src/ptsematest/ptsematest.c2
-rw-r--r--src/sigwaittest/sigwaittest.c2
-rw-r--r--src/svsematest/svsematest.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/src/pmqtest/pmqtest.c b/src/pmqtest/pmqtest.c
index 2191710..a04fc49 100644
--- a/src/pmqtest/pmqtest.c
+++ b/src/pmqtest/pmqtest.c
@@ -204,7 +204,7 @@ void *pmqthread(void *param)
char tracing_enabled_file[MAX_PATH];
strcpy(tracing_enabled_file, get_debugfileprefix());
- strcat(tracing_enabled_file, "tracing_enabled");
+ strcat(tracing_enabled_file, "tracing_on");
int tracing_enabled =
open(tracing_enabled_file, O_WRONLY);
if (tracing_enabled >= 0) {
diff --git a/src/ptsematest/ptsematest.c b/src/ptsematest/ptsematest.c
index e8a3177..5537592 100644
--- a/src/ptsematest/ptsematest.c
+++ b/src/ptsematest/ptsematest.c
@@ -131,7 +131,7 @@ void *semathread(void *param)
char tracing_enabled_file[MAX_PATH];
strcpy(tracing_enabled_file, get_debugfileprefix());
- strcat(tracing_enabled_file, "tracing_enabled");
+ strcat(tracing_enabled_file, "tracing_on");
int tracing_enabled =
open(tracing_enabled_file, O_WRONLY);
if (tracing_enabled >= 0) {
diff --git a/src/sigwaittest/sigwaittest.c b/src/sigwaittest/sigwaittest.c
index 4579f90..59f28a5 100644
--- a/src/sigwaittest/sigwaittest.c
+++ b/src/sigwaittest/sigwaittest.c
@@ -179,7 +179,7 @@ void *semathread(void *param)
char tracing_enabled_file[MAX_PATH];
strcpy(tracing_enabled_file, get_debugfileprefix());
- strcat(tracing_enabled_file, "tracing_enabled");
+ strcat(tracing_enabled_file, "tracing_on");
int tracing_enabled =
open(tracing_enabled_file, O_WRONLY);
if (tracing_enabled >= 0) {
diff --git a/src/svsematest/svsematest.c b/src/svsematest/svsematest.c
index 01083d1..8f88078 100644
--- a/src/svsematest/svsematest.c
+++ b/src/svsematest/svsematest.c
@@ -185,7 +185,7 @@ void *semathread(void *param)
char tracing_enabled_file[MAX_PATH];
strcpy(tracing_enabled_file, get_debugfileprefix());
- strcat(tracing_enabled_file, "tracing_enabled");
+ strcat(tracing_enabled_file, "tracing_on");
int tracing_enabled =
open(tracing_enabled_file, O_WRONLY);
if (tracing_enabled >= 0) {