Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

perf tests attr: Fix task term values

The perf_event_attr::task is 1 by default for first (tracking) event in
the session. Setting task=1 as default and adding task=0 for cases that
need it.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Thomas-Mich Richter <tmricht@linux.vnet.ibm.com>
Link: http://lkml.kernel.org/r/20170703145030.12903-16-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

authored by

Jiri Olsa and committed by
Arnaldo Carvalho de Melo
10836d9f c976a7d6

+4 -2
+1 -1
tools/perf/tests/attr/base-record
··· 23 23 freq=1 24 24 inherit_stat=0 25 25 enable_on_exec=1 26 - task=0 26 + task=1 27 27 watermark=0 28 28 precise_ip=0|1|2|3 29 29 mmap_data=0
+1
tools/perf/tests/attr/test-record-group
··· 17 17 read_format=4 18 18 mmap=0 19 19 comm=0 20 + task=0 20 21 enable_on_exec=0 21 22 disabled=0
+1 -1
tools/perf/tests/attr/test-record-group-sampling
··· 23 23 24 24 # PERF_FORMAT_ID | PERF_FORMAT_GROUP 25 25 read_format=12 26 - 26 + task=0 27 27 mmap=0 28 28 comm=0 29 29 enable_on_exec=0
+1
tools/perf/tests/attr/test-record-group1
··· 18 18 read_format=4 19 19 mmap=0 20 20 comm=0 21 + task=0 21 22 enable_on_exec=0 22 23 disabled=0