ftracetest: Fix hist unsupported result in hist selftests
Steven Rostedt
maintainerRFC PATCH 1/1 ftracetest: Fix hist unsupported result in hist selftests
[ Folks, is this a proper work around? ]
When histograms are not configured in the kernel, the ftracetest histogram selftests should return "unsupported" and not "Failed". To detect this, the test scripts have:
FEATURE=grep hist events/sched/sched_process_fork/trigger if [ -z "$FEATURE" ]; then
echo "hist trigger is not supported" exit_unsupported
fi
The problem is that '-e' is in effect and any error will cause the program to terminate. The grep for 'hist' fails, because it is not compiled it (thus unsupported), but because grep has an error code for failing to find the string, it causes the program to terminate, and is marked as a failed test.
As a work around, I added "|| echo -n ''" to not let bash terminate the script on a failed grep, and then the rest of the script can handle the fact that histograms are not supported and return a proper result.
--- tools/testing/selftests/ftrace/test.d/trigger/trigger-hist-mod.tc | 2 +- tools/testing/selftests/ftrace/test.d/trigger/trigger-hist.tc | 2 +- tools/testing/selftests/ftrace/test.d/trigger/trigger-multihist.tc | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
tools/testing/selftests/ftrace/test.d/trigger/trigger-hist-mod.tc +1 -1
@@ -26,7 +26,7 @@ fi reset_tracer do_reset -FEATURE=`grep hist events/sched/sched_process_fork/trigger` +FEATURE=`grep hist events/sched/sched_process_fork/trigger || echo -n ''` if [ -z "$FEATURE" ]; then echo "hist trigger is not supported" exit_unsupported
tools/testing/selftests/ftrace/test.d/trigger/trigger-hist.tc +1 -1
@@ -26,7 +26,7 @@ fi reset_tracer do_reset -FEATURE=`grep hist events/sched/sched_process_fork/trigger` +FEATURE=`grep hist events/sched/sched_process_fork/trigger || echo -n ''` if [ -z "$FEATURE" ]; then echo "hist trigger is not supported" exit_unsupported
tools/testing/selftests/ftrace/test.d/trigger/trigger-multihist.tc +1 -1
@@ -26,7 +26,7 @@ fi reset_tracer do_reset -FEATURE=`grep hist events/sched/sched_process_fork/trigger` +FEATURE=`grep hist events/sched/sched_process_fork/trigger || echo -n ''` if [ -z "$FEATURE" ]; then echo "hist trigger is not supported" exit_unsupported
Signature · 1 line
1.8.3.1
Hi Steve,
Quoted 13 lines · Steven Rostedt
[ Folks, is this a proper work around? ]
When histograms are not configured in the kernel, the ftracetest histogram selftests should return "unsupported" and not "Failed". To detect this, the test scripts have:
FEATURE=
grep hist events/sched/sched_process_fork/triggerif [ -z "$FEATURE" ]; then
echo "hist trigger is not supported"exit_unsupported
fi
Quoted 4 lines
The problem is that '-e' is in effect and any error will cause the program to terminate. The grep for 'hist' fails, because it is not compiled it (thus unsupported), but because grep has an error code for failing to find the string, it causes the program to terminate, and is marked as a failed test.
We have a feature check before doing grep, doesn't it detect such case?
if [ ! -f events/sched/sched_process_fork/trigger ]; then
echo "event trigger is not supported" exit_unsupported
fi
Thanks,
Namhyung
Quoted 54 lines
As a work around, I added "|| echo -n ''" to not let bash terminate the script on a failed grep, and then the rest of the script can handle the fact that histograms are not supported and return a proper result.
Signed-off-by Steven Rostedt <[email protected]>--- tools/testing/selftests/ftrace/test.d/trigger/trigger-hist-mod.tc | 2 +- tools/testing/selftests/ftrace/test.d/trigger/trigger-hist.tc | 2 +- tools/testing/selftests/ftrace/test.d/trigger/trigger-multihist.tc | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)tools/testing/selftests/ftrace/test.d/trigger/trigger-hist-mod.tc +1
-1@@ -26,7 +26,7 @@ fi reset_tracer do_reset -FEATURE=`grep hist events/sched/sched_process_fork/trigger` +FEATURE=`grep hist events/sched/sched_process_fork/trigger || echo -n ''` if [ -z "$FEATURE" ]; then echo "hist trigger is not supported" exit_unsupportedtools/testing/selftests/ftrace/test.d/trigger/trigger-hist.tc +1
-1@@ -26,7 +26,7 @@ fi reset_tracer do_reset -FEATURE=`grep hist events/sched/sched_process_fork/trigger` +FEATURE=`grep hist events/sched/sched_process_fork/trigger || echo -n ''` if [ -z "$FEATURE" ]; then echo "hist trigger is not supported" exit_unsupportedtools/testing/selftests/ftrace/test.d/trigger/trigger-multihist.tc +1
-1@@ -26,7 +26,7 @@ fi reset_tracer do_reset -FEATURE=`grep hist events/sched/sched_process_fork/trigger` +FEATURE=`grep hist events/sched/sched_process_fork/trigger || echo -n ''` if [ -z "$FEATURE" ]; then echo "hist trigger is not supported" exit_unsupportedSignature · 1 line
1.8.3.1
Steven Rostedt
maintainerQuoted 21 lines · On Tue, 24 May 2016 08:54:38 +0900 Namhyung Kim <[email protected]> wrote:
Hi Steve,
Quoted 13 lines · Steven Rostedt
[ Folks, is this a proper work around? ]
When histograms are not configured in the kernel, the ftracetest histogram selftests should return "unsupported" and not "Failed". To detect this, the test scripts have:
FEATURE=
grep hist events/sched/sched_process_fork/triggerif [ -z "$FEATURE" ]; then
echo "hist trigger is not supported"exit_unsupported
fiQuoted 4 lines
The problem is that '-e' is in effect and any error will cause the program to terminate. The grep for 'hist' fails, because it is not compiled it (thus unsupported), but because grep has an error code for failing to find the string, it causes the program to terminate, and is marked as a failed test.
Quoted 8 lines
We have a feature check before doing grep, doesn't it detect such case?
if [ ! -f events/sched/sched_process_fork/trigger ]; then
echo "event trigger is not supported"exit_unsupported
fi
Triggers exist, but the "hist" trigger does not, and that's what is being checked.
-- Steve
Quoted 27 lines · Steven Rostedt
Quoted 24 lines · On Tue, 24 May 2016 08:54:38 +0900 Namhyung Kim <[email protected]> wrote:
Hi Steve,
Quoted 13 lines · Steven Rostedt
[ Folks, is this a proper work around? ]
When histograms are not configured in the kernel, the ftracetest histogram selftests should return "unsupported" and not "Failed". To detect this, the test scripts have:
FEATURE=
grep hist events/sched/sched_process_fork/triggerif [ -z "$FEATURE" ]; then
echo "hist trigger is not supported"exit_unsupported
fiQuoted 4 lines
The problem is that '-e' is in effect and any error will cause the program to terminate. The grep for 'hist' fails, because it is not compiled it (thus unsupported), but because grep has an error code for failing to find the string, it causes the program to terminate, and is marked as a failed test.
We have a feature check before doing grep, doesn't it detect such case?
Quoted 8 lines
Quoted 5 lines
if [ ! -f events/sched/sched_process_fork/trigger ]; then
echo "event trigger is not supported"exit_unsupported
fiTriggers exist, but the "hist" trigger does not, and that's what is being checked.
Why not checking "hist" file then?
Thanks,
Namhyung
Steven Rostedt
maintainerQuoted 1 line · On Tue, 24 May 2016 11:16:31 +0900 Namhyung Kim <[email protected]> wrote:
Why not checking "hist" file then?
I guess that could be done too, but is there anything wrong with my current solution? Or is it just too hacky? How would one check if something exists in a file or not? Say, I want to detect if preemptirqsoff tracer exists or not, and that only happens if I do a grep of current_tracer (I have tests coming that will need to do that)?
-- Steve
Quoted 11 lines · Steven Rostedt
Quoted 1 line · On Tue, 24 May 2016 11:16:31 +0900 Namhyung Kim <[email protected]> wrote:
Why not checking "hist" file then?
I guess that could be done too, but is there anything wrong with my current solution? Or is it just too hacky? How would one check if something exists in a file or not? Say, I want to detect if preemptirqsoff tracer exists or not, and that only happens if I do a grep of
current_tracer(I have tests coming that will need to do that)?
There's nothing wrong with your approach IMHO. But I think checking existence of a file is clearer and consistent to other tests.
For the preemptirqsoff tracer case, it seems there's no other way to check it simply. It's not hacky to me grep-ing contents to check availability of some option.
Thanks,
Namhyung
Steven Rostedt
maintainerQuoted 13 lines · On Tue, 24 May 2016 12:02:35 +0900 Namhyung Kim <[email protected]> wrote:
Quoted 11 lines · Steven Rostedt
Quoted 1 line · On Tue, 24 May 2016 11:16:31 +0900 Namhyung Kim <[email protected]> wrote:
Why not checking "hist" file then?
I guess that could be done too, but is there anything wrong with my current solution? Or is it just too hacky? How would one check if something exists in a file or not? Say, I want to detect if preemptirqsoff tracer exists or not, and that only happens if I do a grep of
current_tracer(I have tests coming that will need to do that)?
Quoted 7 lines
There's nothing wrong with your approach IMHO. But I think checking existence of a file is clearer and consistent to other tests.
For the preemptirqsoff tracer case, it seems there's no other way to check it simply. It's not hacky to me grep-ing contents to check availability of some option.
Ah, due to traveling I never got around to finishing this. What about this patch?
Quoted 1 line
From
7bf19b58ba02e66014efce6c051acba2c6cbd861Mon Sep 17 00:00:00 2001
From: "Steven Rostedt (Red Hat)" <[email protected]>
Date: Mon, 23 May 2016 15:06:30 -0400
Subject: [PATCH] ftracetest: Fix hist unsupported result in hist selftests
When histograms are not configured in the kernel, the ftracetest histogram selftests should return "unsupported" and not "Failed". To detect this, the test scripts have:
FEATURE=grep hist events/sched/sched_process_fork/trigger if [ -z "$FEATURE" ]; then
echo "hist trigger is not supported" exit_unsupported
fi
The problem is that '-e' is in effect and any error will cause the program to terminate. The grep for 'hist' fails, because it is not compiled it (thus unsupported), but because grep has an error code for failing to find the string, it causes the program to terminate, and is marked as a failed test.
Namhyung Kim recommended to test for the "hist" file located in events/sched/sched_process_fork/hist instead, as it is more inline with the other checks. As the hist file is only created if the histogram feature is enabled, that is a valid check.
--- .../testing/selftests/ftrace/test.d/trigger/trigger-hist-mod.tc | 9 ++++----- tools/testing/selftests/ftrace/test.d/trigger/trigger-hist.tc | 9 ++++----- .../testing/selftests/ftrace/test.d/trigger/trigger-multihist.tc | 9 ++++----- 3 files changed, 12 insertions(+), 15 deletions(-)
tools/testing/selftests/ftrace/test.d/trigger/trigger-hist-mod.tc +4 -5
@@ -23,15 +23,14 @@ if [ ! -f events/sched/sched_process_fork/trigger ]; then exit_unsupported fi -reset_tracer -do_reset - -FEATURE=`grep hist events/sched/sched_process_fork/trigger` -if [ -z "$FEATURE" ]; then +if [ ! -f events/sched/sched_process_fork/hist ]; then echo "hist trigger is not supported" exit_unsupported fi +reset_tracer +do_reset + echo "Test histogram with execname modifier" echo 'hist:keys=common_pid.execname' > events/sched/sched_process_fork/trigger
tools/testing/selftests/ftrace/test.d/trigger/trigger-hist.tc +4 -5
@@ -23,15 +23,14 @@ if [ ! -f events/sched/sched_process_fork/trigger ]; then exit_unsupported fi -reset_tracer -do_reset - -FEATURE=`grep hist events/sched/sched_process_fork/trigger` -if [ -z "$FEATURE" ]; then +if [ ! -f events/sched/sched_process_fork/hist ]; then echo "hist trigger is not supported" exit_unsupported fi +reset_tracer +do_reset + echo "Test histogram basic tigger" echo 'hist:keys=parent_pid:vals=child_pid' > events/sched/sched_process_fork/trigger
tools/testing/selftests/ftrace/test.d/trigger/trigger-multihist.tc +4 -5
@@ -23,15 +23,14 @@ if [ ! -f events/sched/sched_process_fork/trigger ]; then exit_unsupported fi -reset_tracer -do_reset - -FEATURE=`grep hist events/sched/sched_process_fork/trigger` -if [ -z "$FEATURE" ]; then +if [ ! -f events/sched/sched_process_fork/hist ]; then echo "hist trigger is not supported" exit_unsupported fi +reset_tracer +do_reset + reset_trigger echo "Test histogram multiple tiggers"
Signature · 1 line
1.9.3
Quoted 47 lines · On Fri, 17 Jun 2016 17:28:47 -0400 Steven Rostedt <[email protected]> wrote:
Quoted 13 lines · On Tue, 24 May 2016 12:02:35 +0900 Namhyung Kim <[email protected]> wrote:
Quoted 11 lines · Steven Rostedt
Quoted 1 line · On Tue, 24 May 2016 11:16:31 +0900 Namhyung Kim <[email protected]> wrote:
Why not checking "hist" file then?
I guess that could be done too, but is there anything wrong with my current solution? Or is it just too hacky? How would one check if something exists in a file or not? Say, I want to detect if preemptirqsoff tracer exists or not, and that only happens if I do a grep of
current_tracer(I have tests coming that will need to do that)?Quoted 7 lines
There's nothing wrong with your approach IMHO. But I think checking existence of a file is clearer and consistent to other tests.
For the preemptirqsoff tracer case, it seems there's no other way to check it simply. It's not hacky to me grep-ing contents to check availability of some option.
Ah, due to traveling I never got around to finishing this. What about this patch?
From
7bf19b58ba02e66014efce6c051acba2c6cbd861Mon Sep 17 00:00:00 2001
From: "Steven Rostedt (Red Hat)" <[email protected]>
Date: Mon, 23 May 2016 15:06:30 -0400
Subject: [PATCH] ftracetest: Fix hist unsupported result in hist selftestsWhen histograms are not configured in the kernel, the ftracetest histogram selftests should return "unsupported" and not "Failed". To detect this, the test scripts have:
FEATURE=
grep hist events/sched/sched_process_fork/triggerif [ -z "$FEATURE" ]; then
echo "hist trigger is not supported"exit_unsupported
fiThe problem is that '-e' is in effect and any error will cause the program to terminate. The grep for 'hist' fails, because it is not compiled it (thus unsupported), but because grep has an error code for failing to find the string, it causes the program to terminate, and is marked as a failed test.
Quoted 4 lines
Namhyung Kim recommended to test for the "hist" file located in events/sched/sched_process_fork/hist instead, as it is more inline with the other checks. As the hist file is only created if the histogram feature is enabled, that is a valid check.
Looks good to me :)
Thanks Namhyung and Steve for fixing that!
Quoted 87 lines
Suggested-by Namhyung Kim <[email protected]>Fixes 76929ab51f0ee ("kselftests/ftrace: Add hist trigger testcases")Signed-off-by Steven Rostedt <[email protected]>--- .../testing/selftests/ftrace/test.d/trigger/trigger-hist-mod.tc | 9 ++++----- tools/testing/selftests/ftrace/test.d/trigger/trigger-hist.tc | 9 ++++----- .../testing/selftests/ftrace/test.d/trigger/trigger-multihist.tc | 9 ++++----- 3 files changed, 12 insertions(+), 15 deletions(-)tools/testing/selftests/ftrace/test.d/trigger/trigger-hist-mod.tc +4
-5@@ -23,15 +23,14 @@ if [ ! -f events/sched/sched_process_fork/trigger ]; then exit_unsupported fi -reset_tracer -do_reset - -FEATURE=`grep hist events/sched/sched_process_fork/trigger` -if [ -z "$FEATURE" ]; then +if [ ! -f events/sched/sched_process_fork/hist ]; then echo "hist trigger is not supported" exit_unsupported fi +reset_tracer +do_reset + echo "Test histogram with execname modifier" echo 'hist:keys=common_pid.execname' > events/sched/sched_process_fork/triggertools/testing/selftests/ftrace/test.d/trigger/trigger-hist.tc +4
-5@@ -23,15 +23,14 @@ if [ ! -f events/sched/sched_process_fork/trigger ]; then exit_unsupported fi -reset_tracer -do_reset - -FEATURE=`grep hist events/sched/sched_process_fork/trigger` -if [ -z "$FEATURE" ]; then +if [ ! -f events/sched/sched_process_fork/hist ]; then echo "hist trigger is not supported" exit_unsupported fi +reset_tracer +do_reset + echo "Test histogram basic tigger" echo 'hist:keys=parent_pid:vals=child_pid' > events/sched/sched_process_fork/triggertools/testing/selftests/ftrace/test.d/trigger/trigger-multihist.tc +4
-5@@ -23,15 +23,14 @@ if [ ! -f events/sched/sched_process_fork/trigger ]; then exit_unsupported fi -reset_tracer -do_reset - -FEATURE=`grep hist events/sched/sched_process_fork/trigger` -if [ -z "$FEATURE" ]; then +if [ ! -f events/sched/sched_process_fork/hist ]; then echo "hist trigger is not supported" exit_unsupported fi +reset_tracer +do_reset + reset_trigger echo "Test histogram multiple tiggers"Signature · 1 line
1.9.3
Signature · 1 line
Masami Hiramatsu <[email protected]>
Namhyung Kim
Acked-byQuoted 28 lines · Steven Rostedt
Ah, due to traveling I never got around to finishing this. What about this patch?
From
7bf19b58ba02e66014efce6c051acba2c6cbd861Mon Sep 17 00:00:00 2001
From: "Steven Rostedt (Red Hat)" <[email protected]>
Date: Mon, 23 May 2016 15:06:30 -0400
Subject: [PATCH] ftracetest: Fix hist unsupported result in hist selftestsWhen histograms are not configured in the kernel, the ftracetest histogram selftests should return "unsupported" and not "Failed". To detect this, the test scripts have:
FEATURE=
grep hist events/sched/sched_process_fork/triggerif [ -z "$FEATURE" ]; then
echo "hist trigger is not supported"exit_unsupported
fiThe problem is that '-e' is in effect and any error will cause the program to terminate. The grep for 'hist' fails, because it is not compiled it (thus unsupported), but because grep has an error code for failing to find the string, it causes the program to terminate, and is marked as a failed test.
Namhyung Kim recommended to test for the "hist" file located in events/sched/sched_process_fork/hist instead, as it is more inline with the other checks. As the hist file is only created if the histogram feature is enabled, that is a valid check.
Quoted 5 lines
Suggested-by Namhyung Kim <[email protected]>Fixes 76929ab51f0ee ("kselftests/ftrace: Add hist trigger testcases")Signed-off-by Steven Rostedt <[email protected]>
Thanks,
Namhyung
Quoted 81 lines
--- .../testing/selftests/ftrace/test.d/trigger/trigger-hist-mod.tc | 9 ++++----- tools/testing/selftests/ftrace/test.d/trigger/trigger-hist.tc | 9 ++++----- .../testing/selftests/ftrace/test.d/trigger/trigger-multihist.tc | 9 ++++----- 3 files changed, 12 insertions(+), 15 deletions(-)tools/testing/selftests/ftrace/test.d/trigger/trigger-hist-mod.tc +4
-5@@ -23,15 +23,14 @@ if [ ! -f events/sched/sched_process_fork/trigger ]; then exit_unsupported fi -reset_tracer -do_reset - -FEATURE=`grep hist events/sched/sched_process_fork/trigger` -if [ -z "$FEATURE" ]; then +if [ ! -f events/sched/sched_process_fork/hist ]; then echo "hist trigger is not supported" exit_unsupported fi +reset_tracer +do_reset + echo "Test histogram with execname modifier" echo 'hist:keys=common_pid.execname' > events/sched/sched_process_fork/triggertools/testing/selftests/ftrace/test.d/trigger/trigger-hist.tc +4
-5@@ -23,15 +23,14 @@ if [ ! -f events/sched/sched_process_fork/trigger ]; then exit_unsupported fi -reset_tracer -do_reset - -FEATURE=`grep hist events/sched/sched_process_fork/trigger` -if [ -z "$FEATURE" ]; then +if [ ! -f events/sched/sched_process_fork/hist ]; then echo "hist trigger is not supported" exit_unsupported fi +reset_tracer +do_reset + echo "Test histogram basic tigger" echo 'hist:keys=parent_pid:vals=child_pid' > events/sched/sched_process_fork/triggertools/testing/selftests/ftrace/test.d/trigger/trigger-multihist.tc +4
-5@@ -23,15 +23,14 @@ if [ ! -f events/sched/sched_process_fork/trigger ]; then exit_unsupported fi -reset_tracer -do_reset - -FEATURE=`grep hist events/sched/sched_process_fork/trigger` -if [ -z "$FEATURE" ]; then +if [ ! -f events/sched/sched_process_fork/hist ]; then echo "hist trigger is not supported" exit_unsupported fi +reset_tracer +do_reset + reset_trigger echo "Test histogram multiple tiggers"Signature · 1 line
1.9.3
Quoted 31 lines · Namhyung Kim
Quoted 30 lines · Steven Rostedt
Ah, due to traveling I never got around to finishing this. What about this patch?
From
7bf19b58ba02e66014efce6c051acba2c6cbd861Mon Sep 17 00:00:00 2001
From: "Steven Rostedt (Red Hat)" <[email protected]>
Date: Mon, 23 May 2016 15:06:30 -0400
Subject: [PATCH] ftracetest: Fix hist unsupported result in hist selftestsWhen histograms are not configured in the kernel, the ftracetest histogram selftests should return "unsupported" and not "Failed". To detect this, the test scripts have:
FEATURE=
grep hist events/sched/sched_process_fork/triggerif [ -z "$FEATURE" ]; then
echo "hist trigger is not supported"exit_unsupported
fiThe problem is that '-e' is in effect and any error will cause the program to terminate. The grep for 'hist' fails, because it is not compiled it (thus unsupported), but because grep has an error code for failing to find the string, it causes the program to terminate, and is marked as a failed test.
Namhyung Kim recommended to test for the "hist" file located in events/sched/sched_process_fork/hist instead, as it is more inline with the other checks. As the hist file is only created if the histogram feature is enabled, that is a valid check.
Quoted 8 lines
Quoted 3 lines
Suggested-by Namhyung Kim <[email protected]>Fixes 76929ab51f0ee ("kselftests/ftrace: Add hist trigger testcases")Signed-off-by Steven Rostedt <[email protected]>Acked-by Namhyung Kim <[email protected]>Thanks,
Namhyung
Hi Steve,
Could you please send the patch. I don't see the patch in my inbox. I can get this into 4.8-rc1
thanks,
-- Shuah
Quoted 88 lines
Quoted 83 lines
--- .../testing/selftests/ftrace/test.d/trigger/trigger-hist-mod.tc | 9 ++++----- tools/testing/selftests/ftrace/test.d/trigger/trigger-hist.tc | 9 ++++----- .../testing/selftests/ftrace/test.d/trigger/trigger-multihist.tc | 9 ++++----- 3 files changed, 12 insertions(+), 15 deletions(-)tools/testing/selftests/ftrace/test.d/trigger/trigger-hist-mod.tc +4
-5@@ -23,15 +23,14 @@ if [ ! -f events/sched/sched_process_fork/trigger ]; then exit_unsupported fi -reset_tracer -do_reset - -FEATURE=`grep hist events/sched/sched_process_fork/trigger` -if [ -z "$FEATURE" ]; then +if [ ! -f events/sched/sched_process_fork/hist ]; then echo "hist trigger is not supported" exit_unsupported fi +reset_tracer +do_reset + echo "Test histogram with execname modifier" echo 'hist:keys=common_pid.execname' > events/sched/sched_process_fork/triggertools/testing/selftests/ftrace/test.d/trigger/trigger-hist.tc +4
-5@@ -23,15 +23,14 @@ if [ ! -f events/sched/sched_process_fork/trigger ]; then exit_unsupported fi -reset_tracer -do_reset - -FEATURE=`grep hist events/sched/sched_process_fork/trigger` -if [ -z "$FEATURE" ]; then +if [ ! -f events/sched/sched_process_fork/hist ]; then echo "hist trigger is not supported" exit_unsupported fi +reset_tracer +do_reset + echo "Test histogram basic tigger" echo 'hist:keys=parent_pid:vals=child_pid' > events/sched/sched_process_fork/triggertools/testing/selftests/ftrace/test.d/trigger/trigger-multihist.tc +4
-5@@ -23,15 +23,14 @@ if [ ! -f events/sched/sched_process_fork/trigger ]; then exit_unsupported fi -reset_tracer -do_reset - -FEATURE=`grep hist events/sched/sched_process_fork/trigger` -if [ -z "$FEATURE" ]; then +if [ ! -f events/sched/sched_process_fork/hist ]; then echo "hist trigger is not supported" exit_unsupported fi +reset_tracer +do_reset + reset_trigger echo "Test histogram multiple tiggers"Signature · 1 line
1.9.3--
To unsubscribe from this list: send the line "unsubscribe linux-kselftest" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Steven Rostedt
maintainerQuoted 3 lines · On Mon, 27 Jun 2016 11:40:42 -0600 Shuah Khan <[email protected]> wrote:
Could you please send the patch. I don't see the patch in my inbox. I can get this into 4.8-rc1
Ah, sorry, I should have sent this to you. Instead, I already pushed it up to Linus and it is already in Mainline.
Commit: 0ded5174e976e2b2a354fe38abf1ebf4492c6dc3
-- Steve