android_kernel_motorola_sm6375/tools
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Athira Rajeev 1407cc68aa testing/selftests/mqueue: Fix mq_perf_tests to free the allocated cpu set
[ Upstream commit ce64763c63854b4079f2e036638aa881a1fb3fbc ]

The selftest "mqueue/mq_perf_tests.c" use CPU_ALLOC to allocate
CPU set. This cpu set is used further in pthread_attr_setaffinity_np
and by pthread_create in the code. But in current code, allocated
cpu set is not freed.

Fix this issue by adding CPU_FREE in the "shutdown" function which
is called in most of the error/exit path for the cleanup. There are
few error paths which exit without using shutdown. Add a common goto
error path with CPU_FREE for these cases.

Fixes: 7820b0715b ("tools/selftests: add mq_perf_tests")
Signed-off-by: Athira Rajeev <[email protected]>
Signed-off-by: Shuah Khan <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
2022-04-20 09:19:35 +02:00
..
accounting
arch x86/speculation: Rename RETPOLINE_AMD to RETPOLINE_LFENCE 2022-03-11 11:22:37 +01:00
bpf
build tools build: Use $(shell ) instead of `` to get embedded libperl's ccopts 2022-04-15 14:18:40 +02:00
cgroup
debugging
firewire
firmware
gpio
hv
iio
include bpf: Fix comment for helper bpf_current_task_under_cgroup() 2022-04-15 14:18:30 +02:00
io_uring
kvm/kvm_stat
laptop
leds
lib libbpf: Skip forward declaration when counting duplicated type names 2022-04-15 14:18:14 +02:00
memory-model
nfsd
objtool
pci
pcmcia
perf tools build: Filter out options and warnings not supported by clang 2022-04-15 14:18:40 +02:00
power
scripts
spi
testing testing/selftests/mqueue: Fix mq_perf_tests to free the allocated cpu set 2022-04-20 09:19:35 +02:00
thermal/tmon
time
usb
virtio
vm
wmi
Makefile