numam-dpdk/buildtools
David Marchand 24252a60ad buildtools: fix build with coverage
A compiler can reuse a variable name and prefix it when instrumenting
with coverage.

Example:
$ make defconfig T=x86_64-native-linux-gcc O=master
$ make EXTRA_CFLAGS='--coverage' O=master
[...]
    CC rte_flow.o
 rte_flow_dynf_metadata_offs is not flagged as experimental but is listed
 in version map
 Please add __rte_experimental to the definition of
 rte_flow_dynf_metadata_offs

$ objdump -t master/build/lib/librte_ethdev/rte_flow.o |grep _offs$
0000000000000000 l     F .text.startup	000000000000000a
  _GLOBAL__sub_I_65535_0_rte_flow_dynf_metadata_offs
0000000000000620 g     O .data	0000000000000004
  rte_flow_dynf_metadata_offs

Protect against this by adding a space character in the pattern.

Fixes: a4bcd61de8 ("buildtools: add script to check experimental API exports")
Cc: stable@dpdk.org

Reported-by: Andrew Rybchenko <arybchenko@solarflare.com>
Signed-off-by: David Marchand <david.marchand@redhat.com>
Tested-by: Andrew Rybchenko <arybchenko@solarflare.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
2019-11-26 09:04:36 +01:00
..
pmdinfogen remove extra blank lines at end of files 2019-08-05 15:19:32 +02:00
auto-config-h.sh buildtools: fix build for some mktemp 2018-10-27 15:30:25 +02:00
check-abi-version.sh buildtools: add ABI version check script 2019-11-20 23:05:39 +01:00
check-experimental-syms.sh buildtools: fix build with coverage 2019-11-26 09:04:36 +01:00
gen-build-mk.sh mk: allow renaming of build directories 2018-11-14 01:46:00 +01:00
gen-config-h.sh tools: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
gen-pmdinfo-cfile.sh drivers: improve pmdinfo generation with meson 2018-01-30 21:59:00 +01:00
Makefile buildtools: change license to SPDX 2018-07-26 22:45:17 +02:00
map_to_def.py build: generate Windows exports file 2019-06-05 19:49:28 +02:00
map-list-symbol.sh buildtools: detect discrepancies for experimental symbols 2019-06-29 19:04:32 +02:00
meson.build build: change ABI versioning to global 2019-11-20 23:05:39 +01:00
options-ibverbs-static.sh config: add static linkage of mlx dependency 2019-01-14 17:44:29 +01:00
relpath.sh tools: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
symlink-drivers-solibs.sh build: fix ninja install on FreeBSD 2019-05-02 23:07:04 +02:00
update_version_map_abi.py buildtools: add symbols map update script 2019-11-20 23:05:39 +01:00
update-abi.sh buildtools: add ABI version update script 2019-11-20 23:05:39 +01:00