From: Thomas Gleixner <tglx@linutronix.de>
To: Khalid Ali <khaliidcaliy@gmail.com>,
peterz@infradead.org, luto@kernel.org
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] kernel/entry: Remove some redundancy checks on syscall works
Date: Sat, 14 Jun 2025 08:21:28 +0200 [thread overview]
Message-ID: <87frg2q1w7.ffs@tglx> (raw)
In-Reply-To: <20250613202937.679-1-khaliidcaliy@gmail.com>
Can you please reply to the mail you received, so that there are proper
In-Reply-To and References tags in the mail, which are required for mail
threading?
I almost missed your replies because they ended up as single mail
threads without reference somewhere in my endless mail pile.
On Fri, Jun 13 2025 at 20:28, Khalid Ali wrote:
> First if we are talking about performance then we may need likely() on
> SYSCALL_WORK_ENTER since the probability of condition evaluating as
> true is very high.
That depends on the system configuration scenario and the likely() has
been omitted on purpose.
> Second syscall_enter_audit() missing SYSCALL_WORK_SYSCALL_AUDIT
> evaluation, aren't we supposed to call it only if
> SYSCALL_WORK_SYSCALL_AUDIT is set?
That's redundant as syscall_enter_audit() checks for a valid audit
context already. Both are valid indicators and go in lockstep. So it
might be arguable that evaluating the work bit is cheaper than the
context check, but I doubt it's measurable.
Thanks,
tglx
next prev parent reply other threads:[~2025-06-14 6:21 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-13 20:28 [PATCH] kernel/entry: Remove some redundancy checks on syscall works Khalid Ali
2025-06-14 6:21 ` Thomas Gleixner [this message]
2025-06-14 12:04 ` [PATCH] include/linux: Fix outdated comment on entry-common.h Khalid Ali
2025-06-15 8:39 ` [PATCH] kernel/entry: Remove some redundancy checks on syscall Khalid Ali
-- strict thread matches above, loose matches on Subject: below --
2025-06-11 11:43 [PATCH] kernel/entry: Remove some redundancy checks on syscall works Khalid Ali
2025-06-13 16:09 ` Thomas Gleixner
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=87frg2q1w7.ffs@tglx \
--to=tglx@linutronix.de \
--cc=khaliidcaliy@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=luto@kernel.org \
--cc=peterz@infradead.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