BPF List
 help / color / mirror / Atom feed
From: Yauheni Kaliuta <yauheni.kaliuta@redhat.com>
To: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
Cc: Andrii Nakryiko <andrii.nakryiko@gmail.com>,
	Justin Forbes <jmforbes@linuxtx.org>,
	Aurelien Jarno <aurelien@aurel32.net>, bpf <bpf@vger.kernel.org>,
	Alexei Starovoitov <ast@kernel.org>,
	Daniel Borkmann <daniel@iogearbox.net>,
	Andrii Nakryiko <andriin@fb.com>
Subject: Re: [PATCH 1/2] Revert "libbpf: Fix readelf output parsing on powerpc with recent binutils"
Date: Sat, 09 May 2020 09:17:39 +0300	[thread overview]
Message-ID: <xunyh7wphbss.fsf@redhat.com> (raw)
In-Reply-To: <20200508221833.GF24356@mussarela> (Thadeu Lima de Souza Cascardo's message of "Fri, 8 May 2020 19:18:35 -0300")

Hi, Thadeu!

>>>>> On Fri, 8 May 2020 19:18:35 -0300, Thadeu Lima de Souza Cascardo  wrote:

 > On Fri, May 08, 2020 at 02:46:56PM -0700, Andrii Nakryiko wrote:
 >> On Thu, May 7, 2020 at 7:57 AM Yauheni Kaliuta
 >> <yauheni.kaliuta@redhat.com> wrote:
 >> >
 >> > The patch makes it fail on the output when the comment is printed
 >> > after the symbol name (RHEL8 powerpc):
 >> >
 >> > 400: 000000000000c714 144 FUNC GLOBAL DEFAULT 1
 >> > bpf_object__open_file@LIBBPF_0.0.4 [<localentry>: 8]
 >> >
 >> > But after commit aa915931ac3e ("libbpf: Fix readelf output parsing
 >> > for Fedora") it is not needed anymore, the parsing should work in
 >> > both cases.
 >> >

 > If it's working either way after aa915931ac3e, is there any
 > specific reason for the revert?

 Well, not really, agree.

 > Cascardo.

 >> > This reverts commit 3464afdf11f9a1e031e7858a05351ceca1792fea.
 >> >
 >> > Signed-off-by: Yauheni Kaliuta <yauheni.kaliuta@redhat.com>
 >> > ---
 >> 
 >> Looks good, though would be nice to have people originally involved in
 >> those fixes you mentioned to confirm it works fine still. Added them
 >> to cc.
 >> 
 >> If no one shouts loudly in next few days:
 >> 
 >> Acked-by: Andrii Nakryiko <andriin@fb.com>
 >> 
 >> 
 >> >  tools/lib/bpf/Makefile | 4 ++--
 >> >  1 file changed, 2 insertions(+), 2 deletions(-)
 >> >
 >> > diff --git a/tools/lib/bpf/Makefile b/tools/lib/bpf/Makefile
 >> > index aee7f1a83c77..908dac9eb562 100644
 >> > --- a/tools/lib/bpf/Makefile
 >> > +++ b/tools/lib/bpf/Makefile
 >> > @@ -149,7 +149,7 @@ TAGS_PROG := $(if $(shell which etags 2>/dev/null),etags,ctags)
 >> >  GLOBAL_SYM_COUNT = $(shell readelf -s --wide $(BPF_IN_SHARED) | \
 >> >                            cut -d "@" -f1 | sed 's/_v[0-9]_[0-9]_[0-9].*//' | \
 >> >                            sed 's/\[.*\]//' | \
 >> > -                          awk '/GLOBAL/ && /DEFAULT/ && !/UND/ {print $$NF}' | \
 >> > +                          awk '/GLOBAL/ && /DEFAULT/ && !/UND/ {print $$8}' | \
 >> >                            sort -u | wc -l)
 >> >  VERSIONED_SYM_COUNT = $(shell readelf -s --wide $(OUTPUT)libbpf.so | \
 >> >                               grep -Eo '[^ ]+@LIBBPF_' | cut -d@ -f1 | sort -u | wc -l)
 >> > @@ -216,7 +216,7 @@ check_abi: $(OUTPUT)libbpf.so
 >> >                 readelf -s --wide $(BPF_IN_SHARED) |                     \
 >> >                     cut -d "@" -f1 | sed 's/_v[0-9]_[0-9]_[0-9].*//' |   \
 >> >                     sed 's/\[.*\]//' |                                   \
 >> > -                   awk '/GLOBAL/ && /DEFAULT/ && !/UND/ {print $$NF}'|  \
 >> > +                   awk '/GLOBAL/ && /DEFAULT/ && !/UND/ {print $$8}'|   \
 >> >                     sort -u > $(OUTPUT)libbpf_global_syms.tmp;           \
 >> >                 readelf -s --wide $(OUTPUT)libbpf.so |                   \
 >> >                     grep -Eo '[^ ]+@LIBBPF_' | cut -d@ -f1 |             \
 >> > --
 >> > 2.26.2
 >> >


-- 
WBR,
Yauheni Kaliuta


  reply	other threads:[~2020-05-09  6:18 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-07 14:56 [PATCH 0/2] libbpf: fix powerpc check_kabi rule Yauheni Kaliuta
2020-05-07 14:56 ` [PATCH 1/2] Revert "libbpf: Fix readelf output parsing on powerpc with recent binutils" Yauheni Kaliuta
2020-05-08 21:46   ` Andrii Nakryiko
2020-05-08 22:18     ` Thadeu Lima de Souza Cascardo
2020-05-09  6:17       ` Yauheni Kaliuta [this message]
2020-05-07 14:56 ` [PATCH 2/2] libbpf: use .so dynamic symbols for abi check Yauheni Kaliuta
2020-05-08 21:44   ` Andrii Nakryiko

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=xunyh7wphbss.fsf@redhat.com \
    --to=yauheni.kaliuta@redhat.com \
    --cc=andrii.nakryiko@gmail.com \
    --cc=andriin@fb.com \
    --cc=ast@kernel.org \
    --cc=aurelien@aurel32.net \
    --cc=bpf@vger.kernel.org \
    --cc=cascardo@canonical.com \
    --cc=daniel@iogearbox.net \
    --cc=jmforbes@linuxtx.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox