02/12/2019 16:20, David Marchand: > So far, we did not pay attention to direct access to variables but they > are part of the API/ABI too and should be clearly identified. > > Introduce a __rte_experimental_var tag and mark existing exported > variables. > > Fixes: a4bcd61de82d ("buildtools: add script to check experimental API > exports") > Cc: sta...@dpdk.org > > Signed-off-by: David Marchand <david.march...@redhat.com> > --- > + elif grep -qe "\(\.data\|\*COM\*\).*[[:space:]]$SYM$" $DUMPFILE && > + ! grep -q "\.data\.experimental.*[[:space:]]$SYM$" $DUMPFILE
I like such regex ;) I don't know COM section but I am not an ELF expert. Maybe you can just add a comment in the commit log about searching the symbol in .data and COM sections, even if we don't know exactly why. One more comment for the record, I would like we avoid having some variables in the ABI. Feel free to push this patch. Acked-by: Thomas Monjalon <tho...@monjalon.net>