buildtools: fix experimental symbols listing
The map-list-symbol.sh script displays the filename, section and symbol
names of map files.
Example:
$ buildtools/map-list-symbol.sh -S EXPERIMENTAL \
lib/librte_ethdev/rte_ethdev_version.map |grep rte_mtr_create
lib/librte_ethdev/rte_ethdev_version.map EXPERIMENTAL rte_mtr_create
The experimental symbol check should only consider the symbol name.
Fixes: 3290ac14eb
("buildtools: detect discrepancies for experimental symbols")
Cc: stable@dpdk.org
Signed-off-by: David Marchand <david.marchand@redhat.com>
Tested-by: Andrew Rybchenko <arybchenko@solarflare.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
This commit is contained in:
parent
bdc993fa3d
commit
72e75e1f1b
@ -23,7 +23,7 @@ trap 'rm -f "$DUMPFILE"' EXIT
|
|||||||
objdump -t $OBJFILE >$DUMPFILE
|
objdump -t $OBJFILE >$DUMPFILE
|
||||||
|
|
||||||
ret=0
|
ret=0
|
||||||
for SYM in `$LIST_SYMBOL -S EXPERIMENTAL $MAPFILE`
|
for SYM in `$LIST_SYMBOL -S EXPERIMENTAL $MAPFILE |cut -d ' ' -f 3`
|
||||||
do
|
do
|
||||||
if grep -q "\.text.*$SYM$" $DUMPFILE &&
|
if grep -q "\.text.*$SYM$" $DUMPFILE &&
|
||||||
! grep -q "\.text\.experimental.*$SYM$" $DUMPFILE
|
! grep -q "\.text\.experimental.*$SYM$" $DUMPFILE
|
||||||
|
Loading…
Reference in New Issue
Block a user