cyclictest: Fixed incorrect wakeup reset interface
PATCH RESEND v2 1/1 cyclictest: Fixed incorrect wakeup reset interface
When we try to run ftrace with cyclictest command of rt-test, We view the error according to base kernel version. We need to modify this hard coded interface.
--- src/cyclictest/cyclictest.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
src/cyclictest/cyclictest.c +1 -1
@@ -487,7 +487,7 @@ static void setup_tracer(void)setkernvar (traceroptions, traceptr[i]); }setkernvar ("tracing_max_latency" ,"0" ); -setkernvar ("latency_hist/wakeup_latency/reset" ,"1" ); +setkernvar ("latency_hist/wakeup/reset" ,"1" ); }else {setkernvar ("trace_all_cpus" ,"1" );setkernvar ("trace_freerunning" ,"1" );
Signature · 1 line
1.7.1
Quoted 5 lines · Geunsik Lim
When we try to run ftrace with cyclictest command of rt-test, We view the error according to base kernel version. We need to modify this hard coded interface.
Signed-off-by Geunsik Lim<[email protected]>
We need a space here: Geunsik Lim <[email protected]>
Quoted 3 lines
--- src/cyclictest/cyclictest.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
Oops, this is still old, it's only 1 insertion now. You could have produced a real patch, couldn't you?
src/cyclictest/cyclictest.c static void setup_tracer(void) · line 493
Quoted 13 lines
src/cyclictest/cyclictest.c +1
-1@@ -487,7 +487,7 @@ static void setup_tracer(void)setkernvar (traceroptions, traceptr[i]); }setkernvar ("tracing_max_latency" ,"0" ); -setkernvar ("latency_hist/wakeup_latency/reset" ,"1" ); +setkernvar ("latency_hist/wakeup/reset" ,"1" ); }else {setkernvar ("trace_all_cpus" ,"1" );setkernvar ("trace_freerunning" ,"1" );
Quoted 20 lines · Carsten Emde
Quoted 6 lines · Geunsik Lim
When we try to run ftrace with cyclictest command of rt-test, We view the error according to base kernel version. We need to modify this hard coded interface.
Signed-off-by Geunsik Lim<[email protected]>We need a space here: Geunsik Lim <[email protected]>
---
Quoted 3 lines
src/cyclictest/cyclictest.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)Oops, this is still old, it's only 1 insertion now. You could have produced a real patch, couldn't you?
diff --git
a/src/cyclictest/cyclictest.cb/src/cyclictest/cyclictest.c
Quoted 16 lines
src/cyclictest/cyclictest.c static void setup_tracer(void) · line 493
Quoted 13 lines
index 0847aed..abc0b4e 100644
src/cyclictest/cyclictest.c +1
-1@@ -487,7 +487,7 @@ static void setup_tracer(void)setkernvar (traceroptions, traceptr[i]); }setkernvar ("tracing_max_latency" ,"0" ); -setkernvar ("latency_hist/wakeup_latency/reset" ,"1" ); +setkernvar ("latency_hist/wakeup/reset" ,"1" ); }else {setkernvar ("trace_all_cpus" ,"1" );setkernvar ("trace_freerunning" ,"1" );Acked-by Carsten Emde <[email protected]>
Did it used to be wakeup_latency in an older version that we still need to support?
Quoted 37 lines · John Kacur
Quoted 18 lines · Carsten Emde
Quoted 6 lines · Geunsik Lim
When we try to run ftrace with cyclictest command of rt-test, We view the error according to base kernel version. We need to modify this hard coded interface.
Signed-off-by Geunsik Lim<[email protected]>We need a space here: Geunsik Lim <[email protected]>
Quoted 3 lines
---
src/cyclictest/cyclictest.c | 3 ++-1 files changed, 2 insertions(+), 1 deletions(-)Oops, this is still old, it's only 1 insertion now. You could have produced a real patch, couldn't you?
Quoted 15 lines
src/cyclictest/cyclictest.c static void setup_tracer(void) · line 493
Quoted 13 lines
src/cyclictest/cyclictest.c +1
-1@@ -487,7 +487,7 @@ static void setup_tracer(void) setkernvar(traceroptions, traceptr[i]); } setkernvar("tracing_max_latency", "0"); - setkernvar("latency_hist/wakeup_latency/reset", "1"); + setkernvar("latency_hist/wakeup/reset", "1"); } else { setkernvar("trace_all_cpus", "1"); setkernvar("trace_freerunning", "1");Acked-by Carsten Emde <[email protected]>
Quoted 2 lines
Did it used to be
wakeup_latencyin an older version that we still need to support?
At first, I sent patch file to support both old version(e.g: 2.6.24 and current version(e.g: 2.6.33)
And then, I resent this patch file after update according to the review of Carsten Emde.
Quoted 1 line
This is not correct - probably an unintended insertion of the line that was removed abov
At that time, I think that We,may support latest Linux version. So, I agreed with
Carsten's review. But, I understood incorrectly the reply of Carsten Emde about my initial patch content.
Belows is wakeup interface per each Linus version. I summarized to understand the goal of original patch file.
2.6.24.7-rt23 /sys/kernel/debug/tracing/latency_hist/wakeup_latency/reset
2.6.31-rc9-rt9.1 /sys/kernel/debug/tracing/latency_hist/wakeup/reset
2.6.33.7.2-rt30 /sys/kernel/debug/tracing/latency_hist/wakeup/reset
John. You are right. In my case, I am using RHEL5-MRG(2.6.24) and RHEL6(2.6.32).
We have to support for software compatibility both previous Linux version and current Linux version.
John, Please, apply the previous original patch.
Or If Carsten Emde agree with this explanation for consensus, I will resend the original patch including additional reviewers like John , Carsten
file.
Signature · 14 lines
Regards, Geunsik Lim ( Samsung Electronics ) Blog : http://blog.naver.com/invain/ e-Mail: [email protected] [email protected] , [email protected] -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ -- To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 17 lines · Carsten Emde
Quoted 6 lines · Geunsik Lim
When we try to run ftrace with cyclictest command of rt-test, We view the error according to base kernel version. We need to modify this hard coded interface.
Signed-off-by Geunsik Lim<[email protected]>We need a space here: Geunsik Lim <[email protected]>
Quoted 3 lines
---
src/cyclictest/cyclictest.c | 3 ++-1 files changed, 2 insertions(+), 1 deletions(-)Oops, this is still old, it's only 1 insertion now. You could have produced a real patch, couldn't you?
Quoted 15 lines
src/cyclictest/cyclictest.c static void setup_tracer(void) · line 493
Quoted 13 lines
src/cyclictest/cyclictest.c +1
-1@@ -487,7 +487,7 @@ static void setup_tracer(void) setkernvar(traceroptions, traceptr[i]); } setkernvar("tracing_max_latency", "0"); - setkernvar("latency_hist/wakeup_latency/reset", "1"); + setkernvar("latency_hist/wakeup/reset", "1"); } else { setkernvar("trace_all_cpus", "1"); setkernvar("trace_freerunning", "1");Acked-by Carsten Emde <[email protected]>
Did it used to be wakeup_latency in an older version that we still need to support?
--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html