linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Namhyung Kim <namhyung@kernel.org>
To: Arnaldo Carvalho de Melo <acme@kernel.org>
Cc: Song Liu <songliubraving@fb.com>,
	Howard Chu <howardchu95@gmail.com>,
	Andrea Righi <andrea.righi@linux.dev>,
	peterz@infradead.org, mingo@redhat.com, mark.rutland@arm.com,
	alexander.shishkin@linux.intel.com, jolsa@kernel.org,
	irogers@google.com, adrian.hunter@intel.com,
	kan.liang@linux.intel.com, linux-perf-users@vger.kernel.org,
	linux-kernel@vger.kernel.org, james.clark@linaro.org,
	alan.maguire@oracle.com
Subject: Re: [PATCH v2 0/2] perf trace: Fix support for the new BPF feature in clang 12
Date: Wed, 23 Oct 2024 14:57:19 -0700	[thread overview]
Message-ID: <ZxlxP2otBeW3OYrc@google.com> (raw)
In-Reply-To: <ZxkKnIaz6QaIC4VN@x1>

On Wed, Oct 23, 2024 at 11:39:24AM -0300, Arnaldo Carvalho de Melo wrote:
> On Tue, Oct 22, 2024 at 04:52:16PM -0700, Namhyung Kim wrote:
> > On Tue, Oct 22, 2024 at 03:33:00PM -0300, Arnaldo Carvalho de Melo wrote:
> > > On Tue, Oct 22, 2024 at 10:04:52AM -0700, Namhyung Kim wrote:
> > > > On Wed, Oct 16, 2024 at 11:22:15AM -0300, Arnaldo Carvalho de Melo wrote:
> > > > > On Tue, Oct 15, 2024 at 07:06:35PM -0700, Namhyung Kim wrote:
> > > > > > On Tue, Oct 15, 2024 at 05:37:38PM -0300, Arnaldo Carvalho de Melo wrote:
> > > > > > > On Tue, Oct 15, 2024 at 04:58:56PM -0300, Arnaldo Carvalho de Melo wrote:
> > > > > > > Its all at:
> 
> > > > > > > https://git.kernel.org/pub/scm/linux/kernel/git/perf/perf-tools.git tmp.perf-tools
> 
> > > > > > > This is the current set of patches that when further tested will go to
> > > > > > > Linus for v6.12:
> 
> > > > > > > ⬢[acme@toolbox perf-tools]$ git log --oneline torvalds/master..
> > > > > > > ff14baa7a290bf42 (HEAD -> perf-tools, x1/perf-tools, perf-tools/tmp.perf-tools) perf trace augmented_raw_syscalls: Add more checks to pass the verifier
> > > > > > > 46180bec048aad85 perf trace augmented_raw_syscalls: Add extra array index bounds checking to satisfy some BPF verifiers
> > > > > > > 45d1aadac64869a2 perf build: Change the clang check back to 12.0.1
> 
> > > > > > Wouldn't it be better to have this change after fixing the verifier
> > > > > > issues in the later commits?
> 
> > > > > I'm still testing it, this is a one-liner, so I think that the order in
> > > > > which the patches are applied isn't important. Also Howard's patch (the
> > > > > simplified one) doesn't clash with it.
> 
> > > > I'm afraid if it'd break git bisect by allowing old clang versions
> > > > before the fix.
> 
> > > I can reorder the patches if you think it is interesting, but from the
> > > extended set of tests I'm performing on different kernel and clang
> > > version and in x86_64 and arm 64-bit, 32-bit and various distros, I'm
> > > not sure bisection is an option for BPF programs at this stage 8-)
> 
> > Maybe.  But at least we can try our best. :)
> 
> That rhel8 verifier case was with clang 17 even, but whatever, see below
> :-)
> 
> > > There, did it now it looks like this:
> > > 
> > > ⬢ [acme@toolbox perf-tools]$ git log --oneline torvalds/master..
> > > 5d3a1b9ca3b1a059 (HEAD -> perf-tools) perf trace arm32: Fix iteration of syscall ids in syscalltbl->entries
> > > 34d2358a24fb5963 perf trace augmented_raw_syscalls: Add more checks to pass the verifier
> > > cdb84c31bd2813de perf trace augmented_raw_syscalls: Add extra array index bounds checking to satisfy some BPF verifiers
> > > e5c1811c590c4312 perf build: Change the clang check back to 12.0.1
> > > 39c6a356201ebbd7 perf trace: The return from 'write' isn't a pid
> > > ab8aaab874c4aa37 tools headers UAPI: Sync linux/const.h with the kernel headers
> > > ⬢ [acme@toolbox perf-tools]$
> 
> > > Is that what you meant?
>  
> > Nope, I'd like to have e5c1811c590c4312 after the verifier fixes:
>  
> >  34d2358a24fb5963 perf trace augmented_raw_syscalls: Add more checks to pass the verifier
> >  cdb84c31bd2813de perf trace augmented_raw_syscalls: Add extra array index bounds checking to satisfy some BPF verifiers
> 
> Done:
> 
> ⬢ [acme@toolbox perf-tools]$ git log --oneline torvalds/master..
> d822ca29a4fc5278 (HEAD -> perf-tools) tools headers UAPI: Sync kvm headers with the kernel sources
> 5d35634ecc2d2c39 perf trace: Fix non-listed archs in the syscalltbl routines
> 7fbff3c0e085745b perf build: Change the clang check back to 12.0.1
> 395d38419f1853de perf trace augmented_raw_syscalls: Add more checks to pass the verifier
> ecabac70ff919580 perf trace augmented_raw_syscalls: Add extra array index bounds checking to satisfy some BPF verifiers
> 39c6a356201ebbd7 perf trace: The return from 'write' isn't a pid
> ab8aaab874c4aa37 tools headers UAPI: Sync linux/const.h with the kernel headers
> ⬢ [acme@toolbox perf-tools]$

Thanks!
Namhyung


      reply	other threads:[~2024-10-23 21:57 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-11  2:14 [PATCH v2 0/2] perf trace: Fix support for the new BPF feature in clang 12 Howard Chu
2024-10-11  2:14 ` [PATCH v2 1/2] perf build: Change the clang check back to 12.0.1 Howard Chu
2024-10-11  2:14 ` [PATCH v2 2/2] perf trace: Rewrite BPF code to pass the verifier Howard Chu
2024-10-11  8:18 ` [PATCH v2 0/2] perf trace: Fix support for the new BPF feature in clang 12 James Clark
2024-10-15 18:32 ` Namhyung Kim
2024-10-15 19:35   ` Arnaldo Carvalho de Melo
2024-10-15 19:58     ` Arnaldo Carvalho de Melo
2024-10-15 20:37       ` Arnaldo Carvalho de Melo
2024-10-15 21:37         ` Song Liu
     [not found]           ` <CA+JHD905Xtbb2OYqm3mGbh3C1dKOd-avnC=01=uJfTVEnmA1zQ@mail.gmail.com>
2024-10-15 23:20             ` Song Liu
2024-10-16  2:06         ` Namhyung Kim
2024-10-16 14:22           ` Arnaldo Carvalho de Melo
2024-10-22 17:04             ` Namhyung Kim
2024-10-22 18:33               ` Arnaldo Carvalho de Melo
2024-10-22 23:52                 ` Namhyung Kim
2024-10-23 14:39                   ` Arnaldo Carvalho de Melo
2024-10-23 21:57                     ` Namhyung Kim [this message]

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=ZxlxP2otBeW3OYrc@google.com \
    --to=namhyung@kernel.org \
    --cc=acme@kernel.org \
    --cc=adrian.hunter@intel.com \
    --cc=alan.maguire@oracle.com \
    --cc=alexander.shishkin@linux.intel.com \
    --cc=andrea.righi@linux.dev \
    --cc=howardchu95@gmail.com \
    --cc=irogers@google.com \
    --cc=james.clark@linaro.org \
    --cc=jolsa@kernel.org \
    --cc=kan.liang@linux.intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-perf-users@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=mingo@redhat.com \
    --cc=peterz@infradead.org \
    --cc=songliubraving@fb.com \
    /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;
as well as URLs for NNTP newsgroup(s).