]> git.openpandora.org Git - pandora-kernel.git/commitdiff
perf tests: Add pollfd growing test
authorArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 18 Aug 2014 19:49:00 +0000 (16:49 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 25 Sep 2014 19:46:54 +0000 (16:46 -0300)
  [acme@ssdandy linux]$ perf test "Add fd"
  34: Add fd to pollfd array, making it autogrow             : Ok
  [acme@ssdandy linux]$ perf test -v "Add fd"
  34: Add fd to pollfd array, making it autogrow             :
  --- start ---
  test child forked, pid 19817

  before growing array:   2 [ 1, 2 ]
  after 3rd add_pollfd:   3 [ 1, 2, 35 ]
  after 4th add_pollfd:   4 [ 1, 2, 35, 88 ]
  test child finished with 0
  ---- end ----
  Add fd to pollfd array, making it autogrow: Ok
  [acme@ssdandy linux]$

Acked-by: Jiri Olsa <jolsa@kernel.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jean Pihet <jean.pihet@linaro.org>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/n/tip-smflpyta146bzog7z0effjss@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/tests/builtin-test.c
tools/perf/tests/evlist.c
tools/perf/tests/tests.h

index 41e556edbe0252294bb9c83a171230f746cbb2c1..174c3ffc5713ec418768a4a3b4572178fc932144 100644 (file)
@@ -161,6 +161,10 @@ static struct test {
                .desc = "Filter fds with revents mask in a pollfd array",
                .func = test__perf_evlist__filter_pollfd,
        },
+       {
+               .desc = "Add fd to pollfd array, making it autogrow",
+               .func = test__perf_evlist__add_pollfd,
+       },
        {
                .func = NULL,
        },
Simple merge
Simple merge