android_kernel_oneplus_msm8998/tools/perf
Gustavo A. R. Silva cb7c96ee91 perf tests evsel-tp-sched: Fix bitwise operator
commit 489338a717a0dfbbd5a3fabccf172b78f0ac9015 upstream.

Notice that the use of the bitwise OR operator '|' always leads to true
in this particular case, which seems a bit suspicious due to the context
in which this expression is being used.

Fix this by using bitwise AND operator '&' instead.

This bug was detected with the help of Coccinelle.

Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: stable@vger.kernel.org
Fixes: 6a6cd11d4e ("perf test: Add test for the sched tracepoint format fields")
Link: http://lkml.kernel.org/r/20190122233439.GA5868@embeddedor
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-02-20 10:13:17 +01:00
..
arch perf tools: Add Hygon Dhyana support 2019-02-20 10:13:06 +01:00
bench perf bench numa: Fixup discontiguous/sparse numa nodes 2018-02-25 11:03:39 +01:00
config perf tools: Move syscall number fallbacks from perf-sys.h to tools/arch/x86/include/asm/ 2018-07-19 15:35:57 +02:00
Documentation
python
scripts perf script python: Fix export-to-postgresql.py occasional failure 2018-10-20 09:52:34 +02:00
tests perf tests evsel-tp-sched: Fix bitwise operator 2019-02-20 10:13:17 +01:00
trace/strace/groups
ui perf annotate: Fix broken arrow at row 0 connecting jmp instruction to its target 2017-07-27 15:06:09 -07:00
util perf unwind: Take pgoff into account when reporting elf to libdwfl 2019-02-06 19:43:05 +01:00
.gitignore
Build
builtin-annotate.c
builtin-bench.c
builtin-buildid-cache.c
builtin-buildid-list.c
builtin-data.c
builtin-diff.c
builtin-evlist.c
builtin-help.c
builtin-inject.c
builtin-kmem.c
builtin-kvm.c
builtin-list.c
builtin-lock.c
builtin-mem.c
builtin-probe.c perf probe: Return errno when not hitting any event 2018-03-22 09:23:20 +01:00
builtin-record.c
builtin-report.c
builtin-sched.c
builtin-script.c perf script: Use readdir() instead of deprecated readdir_r() 2017-07-15 11:57:48 +02:00
builtin-stat.c
builtin-timechart.c
builtin-top.c perf top: Fix window dimensions change handling 2018-02-25 11:03:39 +01:00
builtin-trace.c perf trace: Add mmap alias for s390 2018-04-13 19:50:16 +02:00
builtin.h
command-list.txt
CREDITS
design.txt
Makefile perf tools: Disable parallelism for 'make clean' 2018-11-10 07:41:41 -08:00
Makefile.perf perf tools: Install tools/lib/traceevent plugins with install-bin 2017-08-06 19:19:46 -07:00
MANIFEST
perf-archive.sh
perf-completion.sh
perf-read-vdso.c
perf-sys.h perf tools: Move syscall number fallbacks from perf-sys.h to tools/arch/x86/include/asm/ 2018-07-19 15:35:57 +02:00
perf-with-kcore.sh
perf.c
perf.h perf tools: Allow overriding MAX_NR_CPUS at compile time 2018-09-19 22:48:57 +02:00