Skip to contentSkip to conversation

cyclictest: Fixed incorrect wakeup reset interface

PATCH RESEND Superseded Geunsik Lim 2 participants 3 messages Mar 5, 2011 – Mar 9, 2011

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH RESEND 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 +2 -1
index 0847aed..abc0b4e 100644
@@ -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");
@@ -501,6 +501,7 @@ static void setup_tracer(void)
 		if (ftrace)
 			setkernvar("mcount_enabled", "1");
 		setkernvar("trace_enabled", "1");
+		setkernvar("latency_hist/wakeup_latency/reset", "1");
 	}
 
 	tracing(1);
Signature · 1 line
1.7.1
#1 lore raw

src/cyclictest/cyclictest.c static void setup_tracer(void) · line 490

Quoted 11 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.

---
  src/cyclictest/cyclictest.c |    3 ++-
  1 files changed, 2 insertions(+), 1 deletions(-)

[..]

src/cyclictest/cyclictest.c +1 -1
-		setkernvar("latency_hist/wakeup_latency/reset", "1");
+		setkernvar("latency_hist/wakeup/reset", "1");

This is correct. It considers a directory name change made longtime ago.

src/cyclictest/cyclictest.c static void setup_tracer(void) · line 504

Quoted 3 lines

[..]
setkernvar("trace_enabled", "1");

src/cyclictest/cyclictest.c +1 -0
+		setkernvar("latency_hist/wakeup_latency/reset", "1");

This is not correct - probably an unintended insertion of the line that was removed above.

Would you mind to resubmit the patch with the first part only?

-Carsten.

#2 lore raw
Quoted 16 lines · Carsten Emde
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.

Quoted 7 lines

---
 src/cyclictest/cyclictest.c |    3 ++-

 1 files changed, 2 insertions(+), 1 deletions(-)

[..]
-               setkernvar("latency_hist/wakeup_latency/reset", "1");
+               setkernvar("latency_hist/wakeup/reset", "1");

This is correct. It considers a directory name change made longtime ago.

Quoted 8 lines
Quoted 3 lines

[..]
               setkernvar("trace_enabled", "1");
+               setkernvar("latency_hist/wakeup_latency/reset", "1");

This is not correct - probably an unintended insertion of the line that was removed above.

Would you mind to resubmit the patch with the first part only?

Ok. I will resubmit this patch after modification. Thank you for your review.

Quoted 3 lines

       -Carsten.

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