kernel_optimize_test/tools/perf/tests
Elena Reshetova ec09a42a6d perf cpumap: Convert cpu_map.refcnt from atomic_t to refcount_t
The refcount_t type and corresponding API should be used instead of atomic_t
when the variable is used as a reference counter.

This allows to avoid accidental refcounter overflows that might lead to
use-after-free situations.

Signed-off-by: Elena Reshetova <elena.reshetova@intel.com>
Signed-off-by: David Windsor <dwindsor@gmail.com>
Signed-off-by: Hans Liljestrand <ishkamiel@gmail.com>
Signed-off-by: Kees Kook <keescook@chromium.org>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: David Windsor <dwindsor@gmail.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Hans Liljestrand <ishkamiel@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Kees Kook <keescook@chromium.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Matija Glavinic Pecotic <matija.glavinic-pecotic.ext@nokia.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: alsa-devel@alsa-project.org
Link: http://lkml.kernel.org/r/1487691303-31858-3-git-send-email-elena.reshetova@intel.com
[ fixed mixed conversion to refcount in tests/cpumap.c ]
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2017-03-03 19:07:14 -03:00
..
attr
.gitignore
attr.c perf utils: Check verbose flag properly 2017-02-20 11:35:54 -03:00
attr.py
backward-ring-buffer.c perf tools: Fix typo "No enough" to "Not enough" 2016-10-24 11:07:42 -03:00
bitmap.c perf tests: Add test for bitmap_scnprintf function 2016-08-02 16:33:27 -03:00
bp_signal_overflow.c
bp_signal.c
bpf-script-example.c perf tests bpf: Use SyS_epoll_wait alias 2016-08-03 19:40:48 -03:00
bpf-script-test-kbuild.c
bpf-script-test-prologue.c
bpf-script-test-relocation.c
bpf.c perf test: Add libbpf pinning test 2017-01-31 16:20:08 -03:00
Build perf tools: Add unit_number__scnprintf function 2017-01-11 16:48:01 -03:00
builtin-test.c perf utils: Check verbose flag properly 2017-02-20 11:35:54 -03:00
clang.c perf clang: Support compile IR to BPF object and add testcase 2016-12-05 15:51:44 -03:00
code-reading.c perf utils: Check verbose flag properly 2017-02-20 11:35:54 -03:00
cpumap.c perf cpumap: Convert cpu_map.refcnt from atomic_t to refcount_t 2017-03-03 19:07:14 -03:00
dso-data.c
dwarf-unwind.c perf tests: Add dwarf unwind test for powerpc 2016-09-29 11:18:21 -03:00
event_update.c
event-times.c tools: Introduce str_error_r() 2016-07-12 15:19:47 -03:00
evsel-roundtrip-name.c
evsel-tp-sched.c
fdarray.c perf utils: Check verbose flag properly 2017-02-20 11:35:54 -03:00
hists_common.c
hists_common.h
hists_cumulate.c perf tests: Fix hist accumulation test 2016-07-04 19:39:01 -03:00
hists_filter.c
hists_link.c
hists_output.c
is_printable_array.c perf tests: Add is_printable_array test 2016-07-18 19:50:35 -03:00
keep-tracking.c
kmod-path.c perf tests kmod-path: Fix build on ubuntu:16.04-x-armhf 2016-07-22 16:25:44 -03:00
llvm.c perf utils: Check verbose flag properly 2017-02-20 11:35:54 -03:00
llvm.h perf clang: Update test case to use real BPF script 2016-12-05 15:51:44 -03:00
make Merge branch 'kbuild' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild 2016-12-17 16:24:13 -08:00
mmap-basic.c perf tests: Add missing pthread.h include for CPU_*() macros 2016-07-12 15:19:53 -03:00
mmap-thread-lookup.c
openat-syscall-all-cpus.c perf tests: Add missing pthread.h include for CPU_*() macros 2016-07-12 15:19:53 -03:00
openat-syscall-tp-fields.c perf tests openat-syscall-tp-fields: Add some conditional defines 2016-07-12 15:19:54 -03:00
openat-syscall.c tools: Introduce str_error_r() 2016-07-12 15:19:47 -03:00
parse-events.c perf utils: Check verbose flag properly 2017-02-20 11:35:54 -03:00
parse-no-sample-id-all.c perf tests: Synthesize struct instead of using field after variable sized type 2017-02-14 15:19:18 -03:00
perf-hooks.c perf tools: Pass context to perf hook functions 2016-12-05 15:51:42 -03:00
perf-record.c perf utils: Check verbose flag properly 2017-02-20 11:35:54 -03:00
perf-targz-src-pkg
pmu.c
python-use.c perf utils: Check verbose flag properly 2017-02-20 11:35:54 -03:00
sample-parsing.c
sdt.c perf test: Add a test case for SDT event 2016-07-13 23:09:10 -03:00
stat.c
sw-clock.c tools: Introduce str_error_r() 2016-07-12 15:19:47 -03:00
switch-tracking.c
task-exit.c tools: Introduce str_error_r() 2016-07-12 15:19:47 -03:00
tests.h perf tools: Add unit_number__scnprintf function 2017-01-11 16:48:01 -03:00
thread-map.c perf utils: Check verbose flag properly 2017-02-20 11:35:54 -03:00
thread-mg-share.c
topology.c perf tools: Replace _SC_NPROCESSORS_CONF with max_present_cpu in cpu_topology_map 2017-02-17 12:56:35 -03:00
unit_number__scnprintf.c perf tools: Add unit_number__scnprintf function 2017-01-11 16:48:01 -03:00
vmlinux-kallsyms.c perf utils: Check verbose flag properly 2017-02-20 11:35:54 -03:00