All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Marchand <david.marchand@redhat.com>
To: Neil Horman <nhorman@tuxdriver.com>
Cc: "dev@dpdk.org" <dev@dpdk.org>,
	Olivier Matz <olivier.matz@6wind.com>,
	 Thomas Monjalon <thomas@monjalon.net>,
	Ferruh Yigit <ferruh.yigit@intel.com>,
	 Andrew Rybchenko <arybchenko@solarflare.com>,
	Raslan Darawsheh <rasland@mellanox.com>
Subject: Re: [dpdk-dev] Build with coverage fail on rte_flow_dynf_metadata_offs is not flagged as experimental
Date: Sun, 24 Nov 2019 21:18:14 +0100	[thread overview]
Message-ID: <CAJFAV8zTsz8GJQY+j_mnOa0HhFeMyWLEzqLfmarDknE8UH3V5w@mail.gmail.com> (raw)
In-Reply-To: <f58f7418-1050-e5be-53ef-992f105882e8@solarflare.com>

On Sat, Nov 23, 2019 at 11:24 AM Andrew Rybchenko
<arybchenko@solarflare.com> wrote:
>
> Hi,
>
> I've failed to quickly make a patch to fix it.
>
> make config T=x86_64-native-linux-gcc O=build_coverage
> make -j8 EXTRA_CFLAGS='-ggdb --coverage' EXTRA_LDFLAGS=-lgcov
>
> results in
>
> ...
>    CC ethdev_private.o
>    CC rte_ethdev.o
>    CC rte_class_eth.o
>    CC rte_flow.o
>    CC rte_tm.o
>    CC rte_mtr.o
>    CC ethdev_profile.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
> /home/arybchik/src/dpdk/mk/internal/rte.compile-pre.mk:114: recipe for
> target 'rte_flow.o' failed
> make[4]: *** [rte_flow.o] Error 1
>
> I've manually reproduced it using gcc (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0
> but seen it on many different distros.

Oh, good catch.

We have a problem in the check script and maybe in the experimental tag.

- This rte_flow_dynf_metadata_offs symbol is in .data but gets an
associated symbol (seen with rhel7 gcc):
$ objdump -t master/build/lib/librte_ethdev/rte_flow.o |grep
rte_flow_dynf_metadata_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

The script noticed the symbol in text and is complaining about not
seeing it in text.experimental.
But well, this is a bug as we did not protect for expansion in:
if grep -q "\.text.*$SYM$" $DUMPFILE &&
        ! grep -q "\.text\.experimental.*$SYM$" $DUMPFILE

I suppose this would do the trick:
if grep -q "\.text.*[[:space:]]$SYM$" $DUMPFILE &&
        ! grep -q "\.text\.experimental.*[[:space:]]$SYM$" $DUMPFILE


- I don't think variables were considered in the rte_experimental
framework: seeing the __rte_experimental macro, I doubt it would work
for variables to be put in .text.
Do we need a different marker for those? or did I miss something else?
Neil?


Think we will have to live with this in 19.11...


-- 
David Marchand


  reply	other threads:[~2019-11-24 20:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-23 10:23 [dpdk-dev] Build with coverage fail on rte_flow_dynf_metadata_offs is not flagged as experimental Andrew Rybchenko
2019-11-24 20:18 ` David Marchand [this message]
2019-11-25 16:19   ` David Marchand

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAJFAV8zTsz8GJQY+j_mnOa0HhFeMyWLEzqLfmarDknE8UH3V5w@mail.gmail.com \
    --to=david.marchand@redhat.com \
    --cc=arybchenko@solarflare.com \
    --cc=dev@dpdk.org \
    --cc=ferruh.yigit@intel.com \
    --cc=nhorman@tuxdriver.com \
    --cc=olivier.matz@6wind.com \
    --cc=rasland@mellanox.com \
    --cc=thomas@monjalon.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.