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


Groups > linux.kernel > #1512017 > unrolled thread

[PATCH -tip v2 0/6] ftrace: selftests: Add full glob matching and update ftracetest

Started byMasami Hiramatsu <mhiramat@kernel.org>
First post2016-10-30 08:00 +0100
Last post2016-11-09 00:40 +0100
Articles 3 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH -tip v2 0/6] ftrace: selftests: Add full glob matching and update ftracetest Masami Hiramatsu <mhiramat@kernel.org> - 2016-10-30 08:00 +0100
    [PATCH -tip v2 4/6] selftests: ftrace: Introduce TMPDIR for temporary files Masami Hiramatsu <mhiramat@kernel.org> - 2016-10-30 08:00 +0100
    Re: [PATCH -tip v2 0/6] ftrace: selftests: Add full glob matching  and update ftracetest Masami Hiramatsu <mhiramat@kernel.org> - 2016-11-09 00:40 +0100

#1512017 — [PATCH -tip v2 0/6] ftrace: selftests: Add full glob matching and update ftracetest

FromMasami Hiramatsu <mhiramat@kernel.org>
Date2016-10-30 08:00 +0100
Subject[PATCH -tip v2 0/6] ftrace: selftests: Add full glob matching and update ftracetest
Message-ID<sxSg1-1dL-9@gated-at.bofh.it>
Hi,

Here is the 2nd version of the series of patches to
add full glob matching support in ftrace and update
ftracetest to test the glob matching and hexadecimal
types.

Previous version is here:
 https://lkml.org/lkml/2016/10/19/7

I've update ftracetest to initialize ftrace before
each testcase accordning to Steve's comment.
In this series I've added a patch which makes git
to ignore the directory for test results.

[1/6] Add full glob matching support on ftrace's
     function filter and event filter expression.
[2/6] Initialize ftrace before running each testcase.
[3/6] Hide logs direcotry from git.
[4/6] Introduce temporary directory for test cases,
     which is used for storing temporary test data.
[5/6] Add a testcase for function-name glob matching
[6/6] Add a testcase for types of event arguments 

Thanks,
---

Masami Hiramatsu (6):
      ftrace: Support full glob matching
      selftests: ftrace: Initialize ftrace before each test
      selftests: ftrace: Hide ftracetest logs from git
      selftests: ftrace: Introduce TMPDIR for temporary files
      selftests: ftrace: Add a testcase for function filter glob match
      selftests: ftrace: Add a testcase for types of kprobe event


 Documentation/trace/events.txt                     |    9 +---
 Documentation/trace/ftrace.txt                     |    9 +---
 kernel/trace/Kconfig                               |    2 +
 kernel/trace/ftrace.c                              |    4 ++
 kernel/trace/trace.c                               |    2 -
 kernel/trace/trace.h                               |    2 +
 kernel/trace/trace_events_filter.c                 |   17 +++++++
 tools/testing/selftests/ftrace/.gitignore          |    1 
 tools/testing/selftests/ftrace/ftracetest          |    4 +-
 .../ftrace/test.d/ftrace/func-filter-glob.tc       |   49 ++++++++++++++++++++
 tools/testing/selftests/ftrace/test.d/functions    |   25 ++++++++++
 .../ftrace/test.d/kprobe/kprobe_args_type.tc       |   37 +++++++++++++++
 12 files changed, 146 insertions(+), 15 deletions(-)
 create mode 100644 tools/testing/selftests/ftrace/.gitignore
 create mode 100644 tools/testing/selftests/ftrace/test.d/ftrace/func-filter-glob.tc
 create mode 100644 tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_type.tc

--
Masami Hiramatsu (Linaro Ltd.) <mhiramat@kernel.org>

[toc] | [next] | [standalone]


#1512018 — [PATCH -tip v2 4/6] selftests: ftrace: Introduce TMPDIR for temporary files

FromMasami Hiramatsu <mhiramat@kernel.org>
Date2016-10-30 08:00 +0100
Subject[PATCH -tip v2 4/6] selftests: ftrace: Introduce TMPDIR for temporary files
Message-ID<sxSg1-1dL-21@gated-at.bofh.it>
In reply to#1512017
Introduce TMPDIR variable which is removed after each test
is done, so that the test script can put their temporary
files in that.

Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
---
 tools/testing/selftests/ftrace/ftracetest |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/tools/testing/selftests/ftrace/ftracetest b/tools/testing/selftests/ftrace/ftracetest
index a03d366..f0ab3a0 100755
--- a/tools/testing/selftests/ftrace/ftracetest
+++ b/tools/testing/selftests/ftrace/ftracetest
@@ -236,6 +236,7 @@ __run_test() { # testfile
 run_test() { # testfile
   local testname=`basename $1`
   local testlog=`mktemp $LOG_DIR/${testname}-log.XXXXXX`
+  export TMPDIR=`mktemp -d /tmp/ftracetest-dir.XXXXXX`
   testcase $1
   echo "execute: "$1 > $testlog
   SIG_RESULT=0
@@ -252,6 +253,7 @@ run_test() { # testfile
     catlog $testlog
     TOTAL_RESULT=1
   fi
+  rm -rf $TMPDIR
 }
 
 # load in the helper functions

[toc] | [prev] | [next] | [standalone]


#1517651 — Re: [PATCH -tip v2 0/6] ftrace: selftests: Add full glob matching and update ftracetest

FromMasami Hiramatsu <mhiramat@kernel.org>
Date2016-11-09 00:40 +0100
SubjectRe: [PATCH -tip v2 0/6] ftrace: selftests: Add full glob matching and update ftracetest
Message-ID<sBo9I-7OT-13@gated-at.bofh.it>
In reply to#1512017
Ping?

On Sun, 30 Oct 2016 15:53:49 +0900
Masami Hiramatsu <mhiramat@kernel.org> wrote:

> Hi,
> 
> Here is the 2nd version of the series of patches to
> add full glob matching support in ftrace and update
> ftracetest to test the glob matching and hexadecimal
> types.
> 
> Previous version is here:
>  https://lkml.org/lkml/2016/10/19/7
> 
> I've update ftracetest to initialize ftrace before
> each testcase accordning to Steve's comment.
> In this series I've added a patch which makes git
> to ignore the directory for test results.
> 
> [1/6] Add full glob matching support on ftrace's
>      function filter and event filter expression.
> [2/6] Initialize ftrace before running each testcase.
> [3/6] Hide logs direcotry from git.
> [4/6] Introduce temporary directory for test cases,
>      which is used for storing temporary test data.
> [5/6] Add a testcase for function-name glob matching
> [6/6] Add a testcase for types of event arguments 
> 
> Thanks,
> ---
> 
> Masami Hiramatsu (6):
>       ftrace: Support full glob matching
>       selftests: ftrace: Initialize ftrace before each test
>       selftests: ftrace: Hide ftracetest logs from git
>       selftests: ftrace: Introduce TMPDIR for temporary files
>       selftests: ftrace: Add a testcase for function filter glob match
>       selftests: ftrace: Add a testcase for types of kprobe event
> 
> 
>  Documentation/trace/events.txt                     |    9 +---
>  Documentation/trace/ftrace.txt                     |    9 +---
>  kernel/trace/Kconfig                               |    2 +
>  kernel/trace/ftrace.c                              |    4 ++
>  kernel/trace/trace.c                               |    2 -
>  kernel/trace/trace.h                               |    2 +
>  kernel/trace/trace_events_filter.c                 |   17 +++++++
>  tools/testing/selftests/ftrace/.gitignore          |    1 
>  tools/testing/selftests/ftrace/ftracetest          |    4 +-
>  .../ftrace/test.d/ftrace/func-filter-glob.tc       |   49 ++++++++++++++++++++
>  tools/testing/selftests/ftrace/test.d/functions    |   25 ++++++++++
>  .../ftrace/test.d/kprobe/kprobe_args_type.tc       |   37 +++++++++++++++
>  12 files changed, 146 insertions(+), 15 deletions(-)
>  create mode 100644 tools/testing/selftests/ftrace/.gitignore
>  create mode 100644 tools/testing/selftests/ftrace/test.d/ftrace/func-filter-glob.tc
>  create mode 100644 tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_type.tc
> 
> --
> Masami Hiramatsu (Linaro Ltd.) <mhiramat@kernel.org>


-- 
Masami Hiramatsu <mhiramat@kernel.org>

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web