All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] ftracetest: Do not use usleep directly
@ 2015-04-02  4:24 Namhyung Kim
  2015-04-02  4:34 ` [PATCH v2.1] " Namhyung Kim
  0 siblings, 1 reply; 10+ messages in thread
From: Namhyung Kim @ 2015-04-02  4:24 UTC (permalink / raw)
  To: Shuah Khan, Steven Rostedt
  Cc: LKML, Pádraig Brady, Masami Hiramatsu, Michael Ellerman,
	Dave Jones, Luis Henriques

The usleep is only provided on distros from Redhat so running ftracetest
on other distro resulted in failures due to the missing usleep.

The reason of using [u]sleep in the test was to generate (scheduler)
events.  It can be done various ways like this:

yield() {  pinc localhost -c 1 || sleep .001 || usleep 1 || sleep 1; }

Reported-by: Michael Ellerman <mpe@ellerman.id.au>
Reported-by: Dave Jones <davej@codemonkey.org.uk>
Reported-by: Luis Henriques <luis.henriques@canonical.com>
Based-on-patch-by: Pádraig Brady <P@draigBrady.com>
Cc: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
---
 tools/testing/selftests/ftrace/test.d/event/event-enable.tc | 13 ++++++++++---
 .../selftests/ftrace/test.d/event/subsystem-enable.tc       | 13 ++++++++++---
 .../selftests/ftrace/test.d/event/toplevel-enable.tc        | 13 +++++++++++++
 3 files changed, 33 insertions(+), 6 deletions(-)

diff --git a/tools/testing/selftests/ftrace/test.d/event/event-enable.tc b/tools/testing/selftests/ftrace/test.d/event/event-enable.tc
index 668616d9bb03..c40c139aaf2b 100644
--- a/tools/testing/selftests/ftrace/test.d/event/event-enable.tc
+++ b/tools/testing/selftests/ftrace/test.d/event/event-enable.tc
@@ -12,6 +12,10 @@ fail() { #msg
     exit -1
 }
 
+yield() {
+    ping localhost -c 1 || sleep .001 || usleep 1 || sleep 1
+}
+
 if [ ! -f set_event -o ! -d events/sched ]; then
     echo "event tracing is not supported"
     exit_unsupported
@@ -21,7 +25,8 @@ reset_tracer
 do_reset
 
 echo 'sched:sched_switch' > set_event
-usleep 1
+
+yield
 
 count=`cat trace | grep sched_switch | wc -l`
 if [ $count -eq 0 ]; then
@@ -31,7 +36,8 @@ fi
 do_reset
 
 echo 1 > events/sched/sched_switch/enable
-usleep 1
+
+yield
 
 count=`cat trace | grep sched_switch | wc -l`
 if [ $count -eq 0 ]; then
@@ -41,7 +47,8 @@ fi
 do_reset
 
 echo 0 > events/sched/sched_switch/enable
-usleep 1
+
+yield
 
 count=`cat trace | grep sched_switch | wc -l`
 if [ $count -ne 0 ]; then
diff --git a/tools/testing/selftests/ftrace/test.d/event/subsystem-enable.tc b/tools/testing/selftests/ftrace/test.d/event/subsystem-enable.tc
index 655c415b6e7f..cbd98b71ee8a 100644
--- a/tools/testing/selftests/ftrace/test.d/event/subsystem-enable.tc
+++ b/tools/testing/selftests/ftrace/test.d/event/subsystem-enable.tc
@@ -12,6 +12,10 @@ fail() { #msg
     exit -1
 }
 
+yield() {
+    ping localhost -c 1 || sleep .001 || usleep 1 || sleep 1
+}
+
 if [ ! -f set_event -o ! -d events/sched ]; then
     echo "event tracing is not supported"
     exit_unsupported
@@ -21,7 +25,8 @@ reset_tracer
 do_reset
 
 echo 'sched:*' > set_event
-usleep 1
+
+yield
 
 count=`cat trace | grep -v ^# | awk '{ print $5 }' | sort -u | wc -l`
 if [ $count -lt 3 ]; then
@@ -31,7 +36,8 @@ fi
 do_reset
 
 echo 1 > events/sched/enable
-usleep 1
+
+yield
 
 count=`cat trace | grep -v ^# | awk '{ print $5 }' | sort -u | wc -l`
 if [ $count -lt 3 ]; then
@@ -41,7 +47,8 @@ fi
 do_reset
 
 echo 0 > events/sched/enable
-usleep 1
+
+yield
 
 count=`cat trace | grep -v ^# | awk '{ print $5 }' | sort -u | wc -l`
 if [ $count -ne 0 ]; then
diff --git a/tools/testing/selftests/ftrace/test.d/event/toplevel-enable.tc b/tools/testing/selftests/ftrace/test.d/event/toplevel-enable.tc
index 480845774007..65e2ab666611 100644
--- a/tools/testing/selftests/ftrace/test.d/event/toplevel-enable.tc
+++ b/tools/testing/selftests/ftrace/test.d/event/toplevel-enable.tc
@@ -12,6 +12,10 @@ fail() { #msg
     exit -1
 }
 
+yield() {
+    ping localhost -c 1 || sleep .001 || usleep 1 || sleep 1
+}
+
 if [ ! -f available_events -o ! -f set_event -o ! -d events ]; then
     echo "event tracing is not supported"
     exit_unsupported
@@ -21,6 +25,9 @@ reset_tracer
 do_reset
 
 echo '*:*' > set_event
+
+yield
+
 count=`cat trace | grep -v ^# | wc -l`
 if [ $count -eq 0 ]; then
     fail "none of events are recorded"
@@ -29,6 +36,9 @@ fi
 do_reset
 
 echo 1 > events/enable
+
+yield
+
 count=`cat trace | grep -v ^# | wc -l`
 if [ $count -eq 0 ]; then
     fail "none of events are recorded"
@@ -37,6 +47,9 @@ fi
 do_reset
 
 echo 0 > events/enable
+
+yield
+
 count=`cat trace | grep -v ^# | wc -l`
 if [ $count -ne 0 ]; then
     fail "any of events should not be recorded"
-- 
2.3.4


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH v2.1] ftracetest: Do not use usleep directly
  2015-04-02  4:24 [PATCH v2] ftracetest: Do not use usleep directly Namhyung Kim
@ 2015-04-02  4:34 ` Namhyung Kim
  2015-04-02  5:58   ` Masami Hiramatsu
  0 siblings, 1 reply; 10+ messages in thread
From: Namhyung Kim @ 2015-04-02  4:34 UTC (permalink / raw)
  To: Shuah Khan, Steven Rostedt
  Cc: LKML, Pádraig Brady, Masami Hiramatsu, Michael Ellerman,
	Dave Jones, Luis Henriques

The usleep is only provided on distros from Redhat so running ftracetest
on other distro resulted in failures due to the missing usleep.

The reason of using [u]sleep in the test was to generate (scheduler)
events.  It can be done various ways like this:

yield() {  ping localhost -c 1 || sleep .001 || usleep 1 || sleep 1; }

Reported-by: Michael Ellerman <mpe@ellerman.id.au>
Reported-by: Dave Jones <davej@codemonkey.org.uk>
Reported-by: Luis Henriques <luis.henriques@canonical.com>
Based-on-patch-by: Pádraig Brady <P@draigBrady.com>
CC: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
---
fix a typo of pinc

 tools/testing/selftests/ftrace/test.d/event/event-enable.tc | 13 ++++++++++---
 .../selftests/ftrace/test.d/event/subsystem-enable.tc       | 13 ++++++++++---
 .../selftests/ftrace/test.d/event/toplevel-enable.tc        | 13 +++++++++++++
 3 files changed, 33 insertions(+), 6 deletions(-)

diff --git a/tools/testing/selftests/ftrace/test.d/event/event-enable.tc b/tools/testing/selftests/ftrace/test.d/event/event-enable.tc
index 668616d9bb03..c40c139aaf2b 100644
--- a/tools/testing/selftests/ftrace/test.d/event/event-enable.tc
+++ b/tools/testing/selftests/ftrace/test.d/event/event-enable.tc
@@ -12,6 +12,10 @@ fail() { #msg
     exit -1
 }
 
+yield() {
+    ping localhost -c 1 || sleep .001 || usleep 1 || sleep 1
+}
+
 if [ ! -f set_event -o ! -d events/sched ]; then
     echo "event tracing is not supported"
     exit_unsupported
@@ -21,7 +25,8 @@ reset_tracer
 do_reset
 
 echo 'sched:sched_switch' > set_event
-usleep 1
+
+yield
 
 count=`cat trace | grep sched_switch | wc -l`
 if [ $count -eq 0 ]; then
@@ -31,7 +36,8 @@ fi
 do_reset
 
 echo 1 > events/sched/sched_switch/enable
-usleep 1
+
+yield
 
 count=`cat trace | grep sched_switch | wc -l`
 if [ $count -eq 0 ]; then
@@ -41,7 +47,8 @@ fi
 do_reset
 
 echo 0 > events/sched/sched_switch/enable
-usleep 1
+
+yield
 
 count=`cat trace | grep sched_switch | wc -l`
 if [ $count -ne 0 ]; then
diff --git a/tools/testing/selftests/ftrace/test.d/event/subsystem-enable.tc b/tools/testing/selftests/ftrace/test.d/event/subsystem-enable.tc
index 655c415b6e7f..cbd98b71ee8a 100644
--- a/tools/testing/selftests/ftrace/test.d/event/subsystem-enable.tc
+++ b/tools/testing/selftests/ftrace/test.d/event/subsystem-enable.tc
@@ -12,6 +12,10 @@ fail() { #msg
     exit -1
 }
 
+yield() {
+    ping localhost -c 1 || sleep .001 || usleep 1 || sleep 1
+}
+
 if [ ! -f set_event -o ! -d events/sched ]; then
     echo "event tracing is not supported"
     exit_unsupported
@@ -21,7 +25,8 @@ reset_tracer
 do_reset
 
 echo 'sched:*' > set_event
-usleep 1
+
+yield
 
 count=`cat trace | grep -v ^# | awk '{ print $5 }' | sort -u | wc -l`
 if [ $count -lt 3 ]; then
@@ -31,7 +36,8 @@ fi
 do_reset
 
 echo 1 > events/sched/enable
-usleep 1
+
+yield
 
 count=`cat trace | grep -v ^# | awk '{ print $5 }' | sort -u | wc -l`
 if [ $count -lt 3 ]; then
@@ -41,7 +47,8 @@ fi
 do_reset
 
 echo 0 > events/sched/enable
-usleep 1
+
+yield
 
 count=`cat trace | grep -v ^# | awk '{ print $5 }' | sort -u | wc -l`
 if [ $count -ne 0 ]; then
diff --git a/tools/testing/selftests/ftrace/test.d/event/toplevel-enable.tc b/tools/testing/selftests/ftrace/test.d/event/toplevel-enable.tc
index 480845774007..65e2ab666611 100644
--- a/tools/testing/selftests/ftrace/test.d/event/toplevel-enable.tc
+++ b/tools/testing/selftests/ftrace/test.d/event/toplevel-enable.tc
@@ -12,6 +12,10 @@ fail() { #msg
     exit -1
 }
 
+yield() {
+    ping localhost -c 1 || sleep .001 || usleep 1 || sleep 1
+}
+
 if [ ! -f available_events -o ! -f set_event -o ! -d events ]; then
     echo "event tracing is not supported"
     exit_unsupported
@@ -21,6 +25,9 @@ reset_tracer
 do_reset
 
 echo '*:*' > set_event
+
+yield
+
 count=`cat trace | grep -v ^# | wc -l`
 if [ $count -eq 0 ]; then
     fail "none of events are recorded"
@@ -29,6 +36,9 @@ fi
 do_reset
 
 echo 1 > events/enable
+
+yield
+
 count=`cat trace | grep -v ^# | wc -l`
 if [ $count -eq 0 ]; then
     fail "none of events are recorded"
@@ -37,6 +47,9 @@ fi
 do_reset
 
 echo 0 > events/enable
+
+yield
+
 count=`cat trace | grep -v ^# | wc -l`
 if [ $count -ne 0 ]; then
     fail "any of events should not be recorded"
-- 
2.3.4


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* Re: [PATCH v2.1] ftracetest: Do not use usleep directly
  2015-04-02  4:34 ` [PATCH v2.1] " Namhyung Kim
@ 2015-04-02  5:58   ` Masami Hiramatsu
  2015-04-02 13:38     ` Steven Rostedt
  0 siblings, 1 reply; 10+ messages in thread
From: Masami Hiramatsu @ 2015-04-02  5:58 UTC (permalink / raw)
  To: Namhyung Kim
  Cc: Shuah Khan, Steven Rostedt, LKML, Pádraig Brady,
	Michael Ellerman, Dave Jones, Luis Henriques

(2015/04/02 13:34), Namhyung Kim wrote:
> The usleep is only provided on distros from Redhat so running ftracetest
> on other distro resulted in failures due to the missing usleep.
> 
> The reason of using [u]sleep in the test was to generate (scheduler)
> events.  It can be done various ways like this:
> 
> yield() {  ping localhost -c 1 || sleep .001 || usleep 1 || sleep 1; }

Nice hack! :)

Acked-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>

> 
> Reported-by: Michael Ellerman <mpe@ellerman.id.au>
> Reported-by: Dave Jones <davej@codemonkey.org.uk>
> Reported-by: Luis Henriques <luis.henriques@canonical.com>
> Based-on-patch-by: Pádraig Brady <P@draigBrady.com>
> CC: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
> Signed-off-by: Namhyung Kim <namhyung@kernel.org>
> ---
> fix a typo of pinc
> 
>  tools/testing/selftests/ftrace/test.d/event/event-enable.tc | 13 ++++++++++---
>  .../selftests/ftrace/test.d/event/subsystem-enable.tc       | 13 ++++++++++---
>  .../selftests/ftrace/test.d/event/toplevel-enable.tc        | 13 +++++++++++++
>  3 files changed, 33 insertions(+), 6 deletions(-)
> 
> diff --git a/tools/testing/selftests/ftrace/test.d/event/event-enable.tc b/tools/testing/selftests/ftrace/test.d/event/event-enable.tc
> index 668616d9bb03..c40c139aaf2b 100644
> --- a/tools/testing/selftests/ftrace/test.d/event/event-enable.tc
> +++ b/tools/testing/selftests/ftrace/test.d/event/event-enable.tc
> @@ -12,6 +12,10 @@ fail() { #msg
>      exit -1
>  }
>  
> +yield() {
> +    ping localhost -c 1 || sleep .001 || usleep 1 || sleep 1
> +}
> +
>  if [ ! -f set_event -o ! -d events/sched ]; then
>      echo "event tracing is not supported"
>      exit_unsupported
> @@ -21,7 +25,8 @@ reset_tracer
>  do_reset
>  
>  echo 'sched:sched_switch' > set_event
> -usleep 1
> +
> +yield
>  
>  count=`cat trace | grep sched_switch | wc -l`
>  if [ $count -eq 0 ]; then
> @@ -31,7 +36,8 @@ fi
>  do_reset
>  
>  echo 1 > events/sched/sched_switch/enable
> -usleep 1
> +
> +yield
>  
>  count=`cat trace | grep sched_switch | wc -l`
>  if [ $count -eq 0 ]; then
> @@ -41,7 +47,8 @@ fi
>  do_reset
>  
>  echo 0 > events/sched/sched_switch/enable
> -usleep 1
> +
> +yield
>  
>  count=`cat trace | grep sched_switch | wc -l`
>  if [ $count -ne 0 ]; then
> diff --git a/tools/testing/selftests/ftrace/test.d/event/subsystem-enable.tc b/tools/testing/selftests/ftrace/test.d/event/subsystem-enable.tc
> index 655c415b6e7f..cbd98b71ee8a 100644
> --- a/tools/testing/selftests/ftrace/test.d/event/subsystem-enable.tc
> +++ b/tools/testing/selftests/ftrace/test.d/event/subsystem-enable.tc
> @@ -12,6 +12,10 @@ fail() { #msg
>      exit -1
>  }
>  
> +yield() {
> +    ping localhost -c 1 || sleep .001 || usleep 1 || sleep 1
> +}
> +
>  if [ ! -f set_event -o ! -d events/sched ]; then
>      echo "event tracing is not supported"
>      exit_unsupported
> @@ -21,7 +25,8 @@ reset_tracer
>  do_reset
>  
>  echo 'sched:*' > set_event
> -usleep 1
> +
> +yield
>  
>  count=`cat trace | grep -v ^# | awk '{ print $5 }' | sort -u | wc -l`
>  if [ $count -lt 3 ]; then
> @@ -31,7 +36,8 @@ fi
>  do_reset
>  
>  echo 1 > events/sched/enable
> -usleep 1
> +
> +yield
>  
>  count=`cat trace | grep -v ^# | awk '{ print $5 }' | sort -u | wc -l`
>  if [ $count -lt 3 ]; then
> @@ -41,7 +47,8 @@ fi
>  do_reset
>  
>  echo 0 > events/sched/enable
> -usleep 1
> +
> +yield
>  
>  count=`cat trace | grep -v ^# | awk '{ print $5 }' | sort -u | wc -l`
>  if [ $count -ne 0 ]; then
> diff --git a/tools/testing/selftests/ftrace/test.d/event/toplevel-enable.tc b/tools/testing/selftests/ftrace/test.d/event/toplevel-enable.tc
> index 480845774007..65e2ab666611 100644
> --- a/tools/testing/selftests/ftrace/test.d/event/toplevel-enable.tc
> +++ b/tools/testing/selftests/ftrace/test.d/event/toplevel-enable.tc
> @@ -12,6 +12,10 @@ fail() { #msg
>      exit -1
>  }
>  
> +yield() {
> +    ping localhost -c 1 || sleep .001 || usleep 1 || sleep 1
> +}
> +
>  if [ ! -f available_events -o ! -f set_event -o ! -d events ]; then
>      echo "event tracing is not supported"
>      exit_unsupported
> @@ -21,6 +25,9 @@ reset_tracer
>  do_reset
>  
>  echo '*:*' > set_event
> +
> +yield
> +
>  count=`cat trace | grep -v ^# | wc -l`
>  if [ $count -eq 0 ]; then
>      fail "none of events are recorded"
> @@ -29,6 +36,9 @@ fi
>  do_reset
>  
>  echo 1 > events/enable
> +
> +yield
> +
>  count=`cat trace | grep -v ^# | wc -l`
>  if [ $count -eq 0 ]; then
>      fail "none of events are recorded"
> @@ -37,6 +47,9 @@ fi
>  do_reset
>  
>  echo 0 > events/enable
> +
> +yield
> +
>  count=`cat trace | grep -v ^# | wc -l`
>  if [ $count -ne 0 ]; then
>      fail "any of events should not be recorded"
> 


-- 
Masami HIRAMATSU
Linux Technology Research Center, System Productivity Research Dept.
Center for Technology Innovation - Systems Engineering
Hitachi, Ltd., Research & Development Group
E-mail: masami.hiramatsu.pt@hitachi.com



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH v2.1] ftracetest: Do not use usleep directly
  2015-04-02  5:58   ` Masami Hiramatsu
@ 2015-04-02 13:38     ` Steven Rostedt
  2015-04-02 14:20       ` Shuah Khan
  0 siblings, 1 reply; 10+ messages in thread
From: Steven Rostedt @ 2015-04-02 13:38 UTC (permalink / raw)
  To: Masami Hiramatsu
  Cc: Namhyung Kim, Shuah Khan, LKML, Pádraig Brady,
	Michael Ellerman, Dave Jones, Luis Henriques

On Thu, 02 Apr 2015 14:58:04 +0900
Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com> wrote:

> (2015/04/02 13:34), Namhyung Kim wrote:
> > The usleep is only provided on distros from Redhat so running ftracetest
> > on other distro resulted in failures due to the missing usleep.
> > 
> > The reason of using [u]sleep in the test was to generate (scheduler)
> > events.  It can be done various ways like this:
> > 
> > yield() {  ping localhost -c 1 || sleep .001 || usleep 1 || sleep 1; }
> 
> Nice hack! :)

Yep, it was Pádraig Brady's idea.

> 
> Acked-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>

Acked-by: Steven Rostedt <rostedt@goodmis.org>

-- Steve

> 
> > 
> > Reported-by: Michael Ellerman <mpe@ellerman.id.au>
> > Reported-by: Dave Jones <davej@codemonkey.org.uk>
> > Reported-by: Luis Henriques <luis.henriques@canonical.com>
> > Based-on-patch-by: Pádraig Brady <P@draigBrady.com>
> > CC: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
> > Signed-off-by: Namhyung Kim <namhyung@kernel.org>
> > ---

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH v2.1] ftracetest: Do not use usleep directly
  2015-04-02 13:38     ` Steven Rostedt
@ 2015-04-02 14:20       ` Shuah Khan
  2015-04-02 15:08         ` Steven Rostedt
  0 siblings, 1 reply; 10+ messages in thread
From: Shuah Khan @ 2015-04-02 14:20 UTC (permalink / raw)
  To: Steven Rostedt, Masami Hiramatsu
  Cc: Namhyung Kim, LKML, Pádraig Brady, Michael Ellerman,
	Dave Jones, Luis Henriques, Shuah Khan

On 04/02/2015 07:38 AM, Steven Rostedt wrote:
> On Thu, 02 Apr 2015 14:58:04 +0900
> Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com> wrote:
> 
>> (2015/04/02 13:34), Namhyung Kim wrote:
>>> The usleep is only provided on distros from Redhat so running ftracetest
>>> on other distro resulted in failures due to the missing usleep.
>>>
>>> The reason of using [u]sleep in the test was to generate (scheduler)
>>> events.  It can be done various ways like this:
>>>
>>> yield() {  ping localhost -c 1 || sleep .001 || usleep 1 || sleep 1; }
>>
>> Nice hack! :)
> 
> Yep, it was Pádraig Brady's idea.
> 
>>
>> Acked-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
> 
> Acked-by: Steven Rostedt <rostedt@goodmis.org>
> 
> -- Steve
> 
>>
>>>
>>> Reported-by: Michael Ellerman <mpe@ellerman.id.au>
>>> Reported-by: Dave Jones <davej@codemonkey.org.uk>
>>> Reported-by: Luis Henriques <luis.henriques@canonical.com>
>>> Based-on-patch-by: Pádraig Brady <P@draigBrady.com>

Is this standard? checkpatch complained as non-standard. I am
seeing some patches posted with Based-on-patch-by

Anyway, I have this patch tagged for 4.1-rc2

thanks,
-- Shuah

-- 
Shuah Khan
Sr. Linux Kernel Developer
Open Source Innovation Group
Samsung Research America (Silicon Valley)
shuahkh@osg.samsung.com | (970) 217-8978

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH v2.1] ftracetest: Do not use usleep directly
  2015-04-02 14:20       ` Shuah Khan
@ 2015-04-02 15:08         ` Steven Rostedt
  2015-04-02 16:30           ` Shuah Khan
  0 siblings, 1 reply; 10+ messages in thread
From: Steven Rostedt @ 2015-04-02 15:08 UTC (permalink / raw)
  To: Shuah Khan
  Cc: Masami Hiramatsu, Namhyung Kim, LKML, Pádraig Brady,
	Michael Ellerman, Dave Jones, Luis Henriques

On Thu, 02 Apr 2015 08:20:09 -0600
Shuah Khan <shuahkh@osg.samsung.com> wrote:


> >>> Reported-by: Michael Ellerman <mpe@ellerman.id.au>
> >>> Reported-by: Dave Jones <davej@codemonkey.org.uk>
> >>> Reported-by: Luis Henriques <luis.henriques@canonical.com>
> >>> Based-on-patch-by: Pádraig Brady <P@draigBrady.com>
> 
> Is this standard? checkpatch complained as non-standard. I am
> seeing some patches posted with Based-on-patch-by

I ignore checkpatch for things like this. It doesn't have a foggiest
clue to what is standard. The only standard we truly have that counts
is "Signed-off-by", as that's partially a legal thing. Everything else
is info only.

This patch was based on a idea by Pádraig Brady and Namhyung is giving
him credit.

Hmm, since I do not believe that Pádraig sent a patch, but only
suggested the idea, the more "standard" tag, and actually more
appropriate tag would be:

Suggested-by: Pádraig Brady <P@draigBrady.com>

Also, we probably should add:

Link: http://lkml.kernel.org/r/1427329943-16896-1-git-send-email-namhyung@kernel.org

Which has more of a history for this patch.

> 
> Anyway, I have this patch tagged for 4.1-rc2

Why rc2?

-- Steve


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH v2.1] ftracetest: Do not use usleep directly
  2015-04-02 15:08         ` Steven Rostedt
@ 2015-04-02 16:30           ` Shuah Khan
  2015-04-02 16:48             ` Steven Rostedt
  0 siblings, 1 reply; 10+ messages in thread
From: Shuah Khan @ 2015-04-02 16:30 UTC (permalink / raw)
  To: Steven Rostedt, Namhyung Kim
  Cc: Masami Hiramatsu, LKML, Pádraig Brady, Michael Ellerman,
	Dave Jones, Luis Henriques, Shuah Khan

On 04/02/2015 09:08 AM, Steven Rostedt wrote:
> On Thu, 02 Apr 2015 08:20:09 -0600
> Shuah Khan <shuahkh@osg.samsung.com> wrote:
> 
> 
>>>>> Reported-by: Michael Ellerman <mpe@ellerman.id.au>
>>>>> Reported-by: Dave Jones <davej@codemonkey.org.uk>
>>>>> Reported-by: Luis Henriques <luis.henriques@canonical.com>
>>>>> Based-on-patch-by: Pádraig Brady <P@draigBrady.com>
>>
>> Is this standard? checkpatch complained as non-standard. I am
>> seeing some patches posted with Based-on-patch-by
> 
> I ignore checkpatch for things like this. It doesn't have a foggiest
> clue to what is standard. The only standard we truly have that counts
> is "Signed-off-by", as that's partially a legal thing. Everything else
> is info only.
> 
> This patch was based on a idea by Pádraig Brady and Namhyung is giving
> him credit.
> 
> Hmm, since I do not believe that Pádraig sent a patch, but only
> suggested the idea, the more "standard" tag, and actually more
> appropriate tag would be:
> 
> Suggested-by: Pádraig Brady <P@draigBrady.com>
> 
> Also, we probably should add:
> 
> Link: http://lkml.kernel.org/r/1427329943-16896-1-git-send-email-namhyung@kernel.org
> 
> Which has more of a history for this patch.

I added the following to the commit log:

For more information on the history of this patch, please refer to:

http://lkml.kernel.org/r/1427329943-16896-1-git-send-email-namhyung@kernel.org

> 
>>
>> Anyway, I have this patch tagged for 4.1-rc2
> 
> Why rc2?

I usually let the patches stay in next for a few days before
I send pull request. It is getting close to that, so decided
on rc2 as a better choice.

We are at rc-6 at the moment, maybe there is enough time for
this to get into rc-1

This patch has been in the works for a while now. Might as well
get it in.

Bummer. Now this patch conflicts with the following commits:

ftracetest: Convert exit -1 to exit $FAIL
ftracetest: Add basic event tracing test cases

Applying: ftracetest: Do not use usleep directly
error: patch failed:
tools/testing/selftests/ftrace/test.d/event/event-enable.tc:12
error: tools/testing/selftests/ftrace/test.d/event/event-enable.tc:
patch does not apply
error: patch failed:
tools/testing/selftests/ftrace/test.d/event/subsystem-enable.tc:12
error: tools/testing/selftests/ftrace/test.d/event/subsystem-enable.tc:
patch does not apply
error: patch failed:
tools/testing/selftests/ftrace/test.d/event/toplevel-enable.tc:12
error: tools/testing/selftests/ftrace/test.d/event/toplevel-enable.tc:
patch does not apply

I could attempt to fix the conflicts, however prefer if you can
rebase it on linux-kselftest next.

thanks,
-- Shuah

-- 
Shuah Khan
Sr. Linux Kernel Developer
Open Source Innovation Group
Samsung Research America (Silicon Valley)
shuahkh@osg.samsung.com | (970) 217-8978

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH v2.1] ftracetest: Do not use usleep directly
  2015-04-02 16:30           ` Shuah Khan
@ 2015-04-02 16:48             ` Steven Rostedt
  2015-04-02 16:52               ` Shuah Khan
  0 siblings, 1 reply; 10+ messages in thread
From: Steven Rostedt @ 2015-04-02 16:48 UTC (permalink / raw)
  To: Shuah Khan
  Cc: Namhyung Kim, Masami Hiramatsu, LKML, Pádraig Brady,
	Michael Ellerman, Dave Jones, Luis Henriques

On Thu, 02 Apr 2015 10:30:05 -0600
Shuah Khan <shuahkh@osg.samsung.com> wrote:

> >> Anyway, I have this patch tagged for 4.1-rc2
> > 
> > Why rc2?
> 
> I usually let the patches stay in next for a few days before
> I send pull request. It is getting close to that, so decided
> on rc2 as a better choice.
> 
> We are at rc-6 at the moment, maybe there is enough time for
> this to get into rc-1
> 

But the merge window closes at the rc1 release. Is this also a "stable"
thing? It should be labeled as such if that's the case.

-- Steve


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH v2.1] ftracetest: Do not use usleep directly
  2015-04-02 16:48             ` Steven Rostedt
@ 2015-04-02 16:52               ` Shuah Khan
  2015-04-02 17:26                 ` Steven Rostedt
  0 siblings, 1 reply; 10+ messages in thread
From: Shuah Khan @ 2015-04-02 16:52 UTC (permalink / raw)
  To: Steven Rostedt
  Cc: Namhyung Kim, Masami Hiramatsu, LKML, Pádraig Brady,
	Michael Ellerman, Dave Jones, Luis Henriques, Shuah Khan

On 04/02/2015 10:48 AM, Steven Rostedt wrote:
> On Thu, 02 Apr 2015 10:30:05 -0600
> Shuah Khan <shuahkh@osg.samsung.com> wrote:
> 
>>>> Anyway, I have this patch tagged for 4.1-rc2
>>>
>>> Why rc2?
>>
>> I usually let the patches stay in next for a few days before
>> I send pull request. It is getting close to that, so decided
>> on rc2 as a better choice.
>>
>> We are at rc-6 at the moment, maybe there is enough time for
>> this to get into rc-1
>>
> 
> But the merge window closes at the rc1 release. Is this also a "stable"
> thing? It should be labeled as such if that's the case.
> 

I am treating this as a fix so rc2 would be fine, however, if I can
get the rebased patch soon I can take it in for rc1.

thanks,
-- Shuah

-- 
Shuah Khan
Sr. Linux Kernel Developer
Open Source Innovation Group
Samsung Research America (Silicon Valley)
shuahkh@osg.samsung.com | (970) 217-8978

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH v2.1] ftracetest: Do not use usleep directly
  2015-04-02 16:52               ` Shuah Khan
@ 2015-04-02 17:26                 ` Steven Rostedt
  0 siblings, 0 replies; 10+ messages in thread
From: Steven Rostedt @ 2015-04-02 17:26 UTC (permalink / raw)
  To: Shuah Khan
  Cc: Namhyung Kim, Masami Hiramatsu, LKML, Pádraig Brady,
	Michael Ellerman, Dave Jones, Luis Henriques

On Thu, 02 Apr 2015 10:52:38 -0600
Shuah Khan <shuahkh@osg.samsung.com> wrote:


> > But the merge window closes at the rc1 release. Is this also a "stable"
> > thing? It should be labeled as such if that's the case.
> > 
> 
> I am treating this as a fix so rc2 would be fine, however, if I can
> get the rebased patch soon I can take it in for rc1.

That would need to come from Namhyung, who's in South Korea, and is
probably in bed right now ;-)

-- Steve


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2015-04-02 17:26 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-02  4:24 [PATCH v2] ftracetest: Do not use usleep directly Namhyung Kim
2015-04-02  4:34 ` [PATCH v2.1] " Namhyung Kim
2015-04-02  5:58   ` Masami Hiramatsu
2015-04-02 13:38     ` Steven Rostedt
2015-04-02 14:20       ` Shuah Khan
2015-04-02 15:08         ` Steven Rostedt
2015-04-02 16:30           ` Shuah Khan
2015-04-02 16:48             ` Steven Rostedt
2015-04-02 16:52               ` Shuah Khan
2015-04-02 17:26                 ` Steven Rostedt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.