Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1732333

Re: [PATCH 1/3] selftests/ftrace: multiple_kprobes: Also check for support

From Shuah Khan <shuah@kernel.org>
Newsgroups linux.kernel
Subject Re: [PATCH 1/3] selftests/ftrace: multiple_kprobes: Also check for support
Date 2017-09-14 17:00 +0200
Message-ID <upDMu-6ln-21@gated-at.bofh.it> (permalink)
References <unqgG-6Qe-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 09/08/2017 06:01 AM, Thomas Meyer wrote:
> The multiple_kprobes test case fails to check for KPROBE_EVENT support.
> Add the check to prevent a false test result.
> 
> Signed-off-by: Thomas Meyer <thomas@m3y3r.de>
> ---
>  tools/testing/selftests/ftrace/test.d/kprobe/multiple_kprobes.tc | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/tools/testing/selftests/ftrace/test.d/kprobe/multiple_kprobes.tc b/tools/testing/selftests/ftrace/test.d/kprobe/multiple_kprobes.tc
> index 2a1cb9908746..a4fd4c851a5b 100644
> --- a/tools/testing/selftests/ftrace/test.d/kprobe/multiple_kprobes.tc
> +++ b/tools/testing/selftests/ftrace/test.d/kprobe/multiple_kprobes.tc
> @@ -1,6 +1,8 @@
>  #!/bin/sh
>  # description: Register/unregister many kprobe events
>  
> +[ -f kprobe_events ] || exit_unsupported # this is configurable
> +
>  # ftrace fentry skip size depends on the machine architecture.
>  # Currently HAVE_KPROBES_ON_FTRACE defined on x86 and powerpc64le
>  case `uname -m` in
> 

Hi Steve/Masami,

This patch looks good to me. Adds a check similar to the one one in
tools/testing/selftests/ftrace/test.d/kprobe/functions

If you don't have objections, I will get this into 4.14-rc2 or rc3

thanks,
-- Shuah

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Re: [PATCH 1/3] selftests/ftrace: multiple_kprobes: Also check for  support Shuah Khan <shuah@kernel.org> - 2017-09-14 17:00 +0200
  Re: [PATCH 1/3] selftests/ftrace: multiple_kprobes: Also check for  support Masami Hiramatsu <mhiramat@kernel.org> - 2017-09-14 17:20 +0200
    Re: [PATCH 1/3] selftests/ftrace: multiple_kprobes: Also check for  support Steven Rostedt <rostedt@goodmis.org> - 2017-09-15 21:20 +0200
    Re: [PATCH 1/3] selftests/ftrace: multiple_kprobes: Also check for  support Steven Rostedt <rostedt@goodmis.org> - 2017-09-18 17:20 +0200
      Re: [PATCH 1/3] selftests/ftrace: multiple_kprobes: Also check for  support Shuah Khan <shuahkh@osg.samsung.com> - 2017-09-18 17:30 +0200
        Re: [PATCH 1/3] selftests/ftrace: multiple_kprobes: Also check for  support Shuah Khan <shuah@kernel.org> - 2017-09-19 16:50 +0200

csiph-web