Fixed
Created: Nov 27, 2015
Updated: Dec 3, 2018
Resolved Date: Dec 17, 2015
Found In Version: 8.0
Fix Version: 8.0.0.1
Severity: Standard
Applicable for: Wind River Linux 8
Component/s: BSP
Start testcase perf_events_l1_cache testing
kmemleak: 2 new suspected memory leaks (see /sys/kernel/debug/kmemleak)
<<start Various CPU level 1 data cache statistics>>
********************
root@hp_dl380p:/root# perf stat -e L1-dcache-loads,L1-dcache-load-misses,L1-dcache-stores sleep 10
Performance counter stats for 'sleep 10':
634310 L1-dcache-loads (93.37%)
14804 L1-dcache-load-misses # 2.33% of all L1-dcache hits
190704 L1-dcache-stores (22.83%)
10.003563927 seconds time elapsed
<<end Various CPU level 1 data cache statistics>>
********************
<<clean subcase>>
********************
<<start check testcase call trace>>
********************
root@hp_dl380p:/root# dmesg |grep -i -w -E -B10 -A50 'Call Trace|BUG:' ||return 0
<<end check testcase call trace>>
********************
<<clean subcase>>
********************
<<start check kmemleak>>
********************
root@hp_dl380p:/root# cat /sys/kernel/debug/kmemleak |grep -E -B10 -A50 'kmemleak_alloc|kmem_cache_alloc' ||return 0
unreferenced object 0xef014280 (size 64):
comm "swapper/0", pid 1, jiffies 4294672101 (age 1675.901s)
hex dump (first 32 bytes):
80 c3 58 c1 ac 78 6e ef 00 00 00 00 00 00 00 00 ..X..xn.........
00 00 00 00 00 00 00 00 11 00 00 00 80 00 00 00 ................
backtrace:
[<c1972adc>] kmemleak_alloc+0x2c/0x60
[<c117710b>] kmem_cache_alloc_trace+0x1db/0x250
[<c10a4992>] request_threaded_irq+0x92/0x170
[<c10a649f>] devm_request_threaded_irq+0x4f/0xa0
[<c158ab71>] ata_pci_sff_activate_host+0x1a1/0x220
[<c1594da1>] piix_init_one+0x2c1/0x630
[<c1415e65>] local_pci_probe+0x35/0x80
[<c1416f00>] pci_device_probe+0xc0/0x120
[<c1504b92>] driver_probe_device+0x152/0x290
[<c1504d89>] __driver_attach+0x79/0x80
[<c150324f>] bus_for_each_dev+0x4f/0x80
[<c150466e>] driver_attach+0x1e/0x20
[<c1504357>] bus_add_driver+0x147/0x200
[<c15054cd>] driver_register+0x5d/0xf0
[<c1415793>] __pci_register_driver+0x33/0x40
[<c1dc47c6>] piix_init+0x14/0x24
unreferenced object 0xefbe9900 (size 128):
comm "swapper/0", pid 1, jiffies 4294672101 (age 1675.901s)
hex dump (first 32 bytes):
a9 01 00 f0 6d 41 00 00 02 00 00 00 00 00 00 00 ....mA..........
00 00 00 00 00 00 00 00 00 00 00 00 00 9b 99 c1 ................
backtrace:
[<c1972adc>] kmemleak_alloc+0x2c/0x60
[<c11768ec>] __kmalloc+0x11c/0x2b0
[<c11df84a>] __proc_create+0x8a/0x220
[<c11dfcc0>] proc_mkdir_data+0x30/0x80
[<c11dfd4b>] proc_mkdir+0x1b/0x20
[<c10a7b74>] register_handler_proc+0xe4/0x110
[<c10a4620>] __setup_irq+0x2a0/0x500
[<c10a49d0>] request_threaded_irq+0xd0/0x170
[<c10a649f>] devm_request_threaded_irq+0x4f/0xa0
[<c158ab71>] ata_pci_sff_activate_host+0x1a1/0x220
[<c1594da1>] piix_init_one+0x2c1/0x630
[<c1415e65>] local_pci_probe+0x35/0x80
[<c1416f00>] pci_device_probe+0xc0/0x120
[<c1504b92>] driver_probe_device+0x152/0x290
[<c1504d89>] __driver_attach+0x79/0x80
[<c150324f>] bus_for_each_dev+0x4f/0x80
<<end check kmemleak>>
********************
<<clean subcase>>
********************
perf_events_l1_cache test results:
*1 Various CPU level 1 data cache statistics(do_test1) PASS
*2 check testcase call trace(do_check_call_trace) PASS
*3 check kmemleak(do_check_kmemleak) FAIL
ERROR CMD OR INFO IS :
line:151 "There is kmemleak for this testcase"
Test Summary
Total number : 3
Pass number : 2
Fail number : 1
Skip number : 0
Excution Time: 13 seconds
End testcase perf_events_l1_cache testing
Test case Author: lei.yang
------------------
Product update date(Spin):
------------------
spin=GIT_20151127
------------------
Project Build Path:
------------------
To Get The Testing Layer:
------------------------
# git clone git://git.wrs.com/git/projects/wassp-repos/testcases/wrlinux
# cd wrlinux;git checkout master
Project Configure Line:
----------------------
# Generated by wrlinux configure at Fri Nov 27 13:58:21 CST 2015
wrlinux-8/wrlinux/configure --enable-board=intel-x86-32 --enable-kernel=standard --enable-rootfs=glibc-std --with-layer=/lpg-build/cdc/WASSP_LINUX_80/testcases/wrlinux/wr-testing/bts-dev --with-template=feature/bts,feature/kexec,feature/kdump --enable-jobs=8 --enable-parallel-pkgbuilds=8 --enable-reconfig=yes --with-rcpl-version=0
Build Configuration:
----------------------------
BB_VERSION = "1.28.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "RedHat-6"
DISTRO = "wrlinux"
DISTRO_VERSION = "8.0.0.0"
MACHINE = "intel-x86-32"
DEFAULTTUNE = "corei7-32"
TARGET_SYS = "i686-wrs-linux"
TUNE_FEATURES = "m32 corei7"
TARGET_FPU = ""
wrlinux = "LB10_8.0:1fc383b7f20607c191f02194a7ce746f850d60a4"
wrlcompat = "LB10_8.0:62db4cf16fa7dabbb42b89231fcec1fefe7971aa"
wr-sdk-toolchain = "LB10_8.0:87457fe137573189eedb468fd73283ca35399941"
wr-tcwrappers = "LB10_8.0:6d4a369c118fd0035918d944bfdb3b939f67f46c"
meta = "LB10_8.0:6ae9e75779539ef3286986f6c0e3be597496d5de"
oe-core-dl-2.0 = "LB10_8.0:c7d1020ea77b2c8ce60936c13989ee1fd9212c14"
meta-downloads = "LB10_8.0:6a76b50afe1f7b8bd697c2b15c4797564d9a79d5"
wr-kernel = "LB10_8.0:6f30fd86b3c55f1ebf56e90e35f58f174bff554c"
intel-x86 = "LB10_8.0:e1a656127bd38f3abff87b5b3e441b0ac765b485"
wr-base = "LB10_8.0:5d857310d2a87349fa718ae9810b1db8e4499a20"
wr-fixes = "LB10_8.0:7dad12b521962f2a78c80000202217b16cdbe18a"
wr-tools-profile = "LB10_8.0:f600e0ebb136378964db276694d0279920958b9c"
wr-tools-debug = "LB10_8.0:b3361fc0bb65c164104cb60df1b1a9e62e34bd35"
meta-filesystems
meta-initramfs
meta-gnome
meta-multimedia
meta-networking
meta-oe
meta-python
meta-perl
meta-webserver
meta-xfce = "LB10_8.0:c1863fccdf4ab71534f30101d6d52a90be76a718"
wr-prebuilts = "LB10_8.0:61fbe7ea17afa5323a47b728b92be93e35b18e68"
bts-dev = "master:63550b0896e58f09038b7975168ec80b4b8a3564"
Kernel source top 10 commits:
----------------------------
Adrian Hunter c13ff29 perf tools: Fix build on powerpc broken by pt/bts Tue Nov 24 08:14:54 2015 +0800
Arnaldo Carvalho de Melo 8985c9d perf tools: Use atomic.h for the map_groups refcount Tue Nov 24 08:14:49 2015 +0800
Arnaldo Carvalho de Melo 7027ee7 perf tests: Fix map_groups refcount test Tue Nov 24 08:14:48 2015 +0800
Arnaldo Carvalho de Melo 5cd6864 perf tests: Show refcounting broken expectations in thread-mg-share test Tue Nov 24 08:14:48 2015 +0800
Arnaldo Carvalho de Melo 282e896 perf tools: Import rb_erase_init from block/ in the kernel sources Tue Nov 24 08:14:48 2015 +0800
Jiri Olsa ba015df perf thread_map: Introduce thread_map__reset function Tue Nov 24 08:14:47 2015 +0800
Arnaldo Carvalho de Melo 8920533 perf tools: Future-proof thread_map allocation size calculation Tue Nov 24 08:14:47 2015 +0800
Jiri Olsa 1d673ed perf tools: Add thread_map__(alloc|realloc) helpers Tue Nov 24 08:14:47 2015 +0800
Jiri Olsa 7e5087a perf tools: Add reference counting for cpu_map object Tue Nov 24 08:14:46 2015 +0800
Arnaldo Carvalho de Melo 33d3e92 perf tools: Check if a map is still in use when deleting it Tue Nov 24 08:14:46 2015 +0800
Kernel config enabled by the testing layer:
------------------------------------------
CONFIG_DEBUG_KMEMLEAK=y
CONFIG_DEBUG_KMEMLEAK_EARLY_LOG_SIZE=5000
CONFIG_IOSCHED_BFQ=y
CONFIG_INPUT_EVDEV=y
CONFIG_KVM=m
CONFIG_KVM_INTEL=m
CONFIG_DMATEST=m
CONFIG_DMA_API_DEBUG=y
CONFIG_USB_SERIAL_PL2303=y
CONFIG_PM_TEST_SUSPEND=m
CONFIG_IOMMU_STRESS=m
CONFIG_OPROFILE=y
CONFIG_ACPI_DEBUG=y
CONFIG_DEBUG_HIGHMEM=y
CONFIG_DEBUG_HOTPLUG_CPU0=y
CONFIG_DMADEVICES_DEBUG=y
CONFIG_PCI_DEBUG=y
CONFIG_USB_GADGET=m
CONFIG_USB_MASS_STORAGE=m
CONFIG_CMA_DEBUG=y
Kernel Boot Parameter:
---------------------
root@hp_dl380p:/root# cat /proc/cmdline
console=ttyS0,115200 root=/dev/nfs nfsroot=128.224.165.20:/export/pxeboot/vlm-boards/21966/rootfs rw ip=dhcp selinux=0 enforcing=0 mem=4G
To reproduce it:
---------------
# /opt/wr-test/testcases/bts/perf_events_l1_cache/runtest.sh
WRL Test Completed Unsuccessfully
root@hp_dl380p:~#logWrite/*tc*//*tc*/