diff options
author | 2016-12-04 15:14:43 +0200 | |
---|---|---|
committer | 2016-12-04 15:14:43 +0200 | |
commit | 10e549c80e4652161c0b212be835ec01e33441e9 (patch) | |
tree | 57152c5e05077bc40d9cd2801f639ccc0875d47a /scripts | |
parent | c2e0fc656cb6b3e34939dbe2b9495282f6fd0f53 (diff) |
valgrind cleanup and suppresion
Signed-off-by: imarom <imarom@cisco.com>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/t-rex-64-valgrind | 3 | ||||
-rw-r--r-- | scripts/valgrind.sup | 57 |
2 files changed, 59 insertions, 1 deletions
diff --git a/scripts/t-rex-64-valgrind b/scripts/t-rex-64-valgrind index 5ac2becf..d11491ba 100755 --- a/scripts/t-rex-64-valgrind +++ b/scripts/t-rex-64-valgrind @@ -31,7 +31,8 @@ export LD_LIBRARY_PATH=$PWD:$PWD/dumy_libs fi export VALGRIND_LIB=/auto/proj-pcube-b/apps/PL-b/tools/valgrind-dpdk/lib/valgrind -export VALGRIND_BIN="/auto/proj-pcube-b/apps/PL-b/tools/valgrind-dpdk/bin/valgrind --leak-check=full" +export VALGRIND_BIN="/auto/proj-pcube-b/apps/PL-b/tools/valgrind-dpdk/bin/valgrind --leak-check=full --error-exitcode=1 --suppressions=valgrind.sup" +export GLIBCXX_FORCE_NEW=1 if [ -t 0 ] && [ -t 1 ]; then export is_tty=true diff --git a/scripts/valgrind.sup b/scripts/valgrind.sup new file mode 100644 index 00000000..b6bcc883 --- /dev/null +++ b/scripts/valgrind.sup @@ -0,0 +1,57 @@ +{ + DL issue + Memcheck:Cond + fun:index + fun:expand_dynamic_string_token + fun:fillin_rpath + fun:_dl_init_paths + fun:dl_main + fun:_dl_sysdep_start + fun:_dl_start_final + fun:_dl_start + obj:/lib/x86_64-linux-gnu/ld-2.19.so + obj:* + obj:* + obj:* + obj:* +} + +{ + DPDK threads + Memcheck:Leak + match-leak-kinds: possible + fun:calloc + fun:allocate_dtv + fun:_dl_allocate_tls + fun:allocate_stack + fun:pthread_create@@GLIBC_2.2.5 + fun:rte_eal_init + fun:_Z9main_testiPPc + fun:(below main) +} + +{ + DPDK interrupt thread + Memcheck:Leak + match-leak-kinds: possible + fun:calloc + fun:allocate_dtv + fun:_dl_allocate_tls + fun:allocate_stack + fun:pthread_create@@GLIBC_2.2.5 + fun:rte_eal_intr_init + fun:rte_eal_init + fun:_Z9main_testiPPc + fun:(below main) +} + +{ + DPDK epoll ctl + Memcheck:Param + epoll_ctl(event) + fun:epoll_ctl + fun:eal_intr_thread_main + fun:start_thread + fun:clone +} + |