DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH] pmdinfogen: avoid empty string in ELFSymbol()
@ 2024-04-05 11:09 Sebastian Brzezinka
  2024-04-05 11:31 ` David Marchand
  0 siblings, 1 reply; 2+ messages in thread
From: Sebastian Brzezinka @ 2024-04-05 11:09 UTC (permalink / raw)
  To: dev; +Cc: Tomasz Zawadzki, Sebastian Brzezinka

From: Tomasz Zawadzki <tomasz.zawadzki@intel.com>

Starting with Clang 17 the list of pmds could
contain empty string. Please see:
https://bugs.dpdk.org/show_bug.cgi?id=1313

This is a fix proposed by alialnu@nvidia.com in the
issue above.

Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Signed-off-by: Sebastian Brzezinka <sebastian.brzezinka@intel.com>
---
 buildtools/pmdinfogen.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/buildtools/pmdinfogen.py b/buildtools/pmdinfogen.py
index 2a44f17bda..2b29872649 100755
--- a/buildtools/pmdinfogen.py
+++ b/buildtools/pmdinfogen.py
@@ -71,7 +71,9 @@ def find_by_prefix(self, prefix):
         for i in range(self._symtab.num_symbols()):
             symbol = self._symtab.get_symbol(i)
             if symbol.name.startswith(prefix):
-                yield ELFSymbol(self._image, symbol)
+                elf_symbol = ELFSymbol(self._image, symbol)
+                if elf_symbol.string_value:
+                    yield elf_symbol
 
 
 class COFFSymbol:
-- 
2.34.1

---------------------------------------------------------------------
Intel Technology Poland sp. z o.o.
ul. Slowackiego 173 | 80-298 Gdansk | Sad Rejonowy Gdansk Polnoc | VII Wydzial Gospodarczy Krajowego Rejestru Sadowego - KRS 101882 | NIP 957-07-52-316 | Kapital zakladowy 200.000 PLN.
Spolka oswiadcza, ze posiada status duzego przedsiebiorcy w rozumieniu ustawy z dnia 8 marca 2013 r. o przeciwdzialaniu nadmiernym opoznieniom w transakcjach handlowych.

Ta wiadomosc wraz z zalacznikami jest przeznaczona dla okreslonego adresata i moze zawierac informacje poufne. W razie przypadkowego otrzymania tej wiadomosci, prosimy o powiadomienie nadawcy oraz trwale jej usuniecie; jakiekolwiek przegladanie lub rozpowszechnianie jest zabronione.
This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). If you are not the intended recipient, please contact the sender and delete all copies; any review or distribution by others is strictly prohibited.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] pmdinfogen: avoid empty string in ELFSymbol()
  2024-04-05 11:09 [PATCH] pmdinfogen: avoid empty string in ELFSymbol() Sebastian Brzezinka
@ 2024-04-05 11:31 ` David Marchand
  0 siblings, 0 replies; 2+ messages in thread
From: David Marchand @ 2024-04-05 11:31 UTC (permalink / raw)
  To: Sebastian Brzezinka; +Cc: dev, Tomasz Zawadzki

On Fri, Apr 5, 2024 at 1:09 PM Sebastian Brzezinka
<sebastian.brzezinka@intel.com> wrote:
>
> From: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
>
> Starting with Clang 17 the list of pmds could
> contain empty string. Please see:
> https://bugs.dpdk.org/show_bug.cgi?id=1313
>
> This is a fix proposed by alialnu@nvidia.com in the
> issue above.
>
> Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
> Signed-off-by: Sebastian Brzezinka <sebastian.brzezinka@intel.com>

Duplicate of https://patchwork.dpdk.org/project/dpdk/patch/20240320155814.617220-1-alialnu@nvidia.com/


-- 
David Marchand


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-04-05 11:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-05 11:09 [PATCH] pmdinfogen: avoid empty string in ELFSymbol() Sebastian Brzezinka
2024-04-05 11:31 ` David Marchand

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).