mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Arnaldo Melo <arnaldo.melo@gmail.com>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [GIT PULL] perf tools fixes for v7.0: 2nd batch
Date: Tue, 24 Mar 2026 13:25:39 -0300	[thread overview]
Message-ID: <E1AA8FE5-E0B1-4B64-9274-643C89F00B64@gmail.com> (raw)
In-Reply-To: <1DCCF693-8FF4-4567-B0BB-41F00B0B4606@gmail.com>



On March 24, 2026 1:17:18 PM GMT-03:00, Arnaldo Melo <arnaldo.melo@gmail.com> wrote:
>
>
>On March 24, 2026 1:12:08 PM GMT-03:00, Linus Torvalds <torvalds@linux-foundation.org> wrote:
>>On Mon, 23 Mar 2026 at 03:57, Arnaldo Carvalho de Melo <acme@kernel.org> wrote:
>>>
>>>       tools arch x86: Sync the msr-index.h copy with the kernel sources
>>>       tools headers UAPI: Sync linux/kvm.h with the kernel sources
>>>       tools headers UAPI: Sync x86's asm/kvm.h with the kernel sources
>>>       tools headers: Synchronize linux/build_bug.h with the kernel sources
>>
>>So I think we need to come up with some solution to *not* do this all,
>>because honestly, it's getting hugely annoying.
>>
>>And it's not annoying due to the unnecessary diffs per se, but because
>>this tool header sync then causes 'objtool' - which also uses some of
>>those headers - to be rebuilt, and then that causes *everything* to be
>>rebuilt.
>>
>>Just because the perf tree decided it needed to sync headers for
>>unexplained reasons.
>>
>>The docs say "this works surprisingly well". That *used* to be the
>>case. But with objtool also being affected, it really does *not* work
>>well at all.
>>
>>And no, the tools cannot use the kernel headers directly. That
>>*really* didn't work well, and required synchronizing kernel changes
>>with tooling changes, and was just a pain.
>>
>>So the "header copies" solved a real problem, but we need to figure
>>out something better.
>>
>>And honestly, the "something better" may be to just remove the
>>mindless check for "headers aren't 100% sync".
>>
>>Because 99% of the time nobody cares. This time, for example, the
>>header changes in question were comments and stuff that was inside a
>>__KERNEL__ guard.
>>
>>So how about just at least as a first step trying to remove the
>>warning that is actively detrimental, and only do header syncs when
>>there is a *real* reason for them?
>
>Yeah, I agree, annoying, I'll work on making this opt-in, i.e. no warnings by default, a new target to check if drift happened. 

Also maybe this is something for Sashiko or some other AI agent, to automate/suggest/do the sync when it makes sense and not just out of making it is in sync no matter what.

- Arnaldo

Sry, the previous reply didn't make it to lkml :-/

  parent reply	other threads:[~2026-03-24 16:25 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-23 10:57 Arnaldo Carvalho de Melo
2026-03-24 16:12 ` Linus Torvalds
     [not found]   ` <1DCCF693-8FF4-4567-B0BB-41F00B0B4606@gmail.com>
2026-03-24 16:25     ` Arnaldo Melo [this message]
2026-03-24 18:00       ` Ian Rogers
2026-03-26 23:05         ` Namhyung Kim
2026-03-24 16:18 ` pr-tracker-bot

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=E1AA8FE5-E0B1-4B64-9274-643C89F00B64@gmail.com \
    --to=arnaldo.melo@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@linux-foundation.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

all inboxes | Powered by JetHome®