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>
This commit is contained in:
parent
c5e0171b21
commit
28612a2609
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue