mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Peter Zijlstra <peterz@infradead.org>
To: "Thomas Weißschuh" <thomas.weissschuh@linutronix.de>
Cc: tglx@linutronix.de, mathieu.desnoyers@efficios.com,
	linux-kernel@vger.kernel.org, paulmck@kernel.org,
	boqun.feng@gmail.com, corbet@lwn.net,
	prakash.sangappa@oracle.com, vineethr@linux.ibm.com,
	kprateek.nayak@amd.com, rostedt@goodmis.org,
	bigeasy@linutronix.de, arnd@arndb.de, rdunlap@infradead.org,
	rongevarg@gmail.com, longman@redhat.com
Subject: Re: [PATCH 2/5] rseq: Move slice_ext_nsec to debugfs
Date: Wed, 21 Jan 2026 15:56:16 +0100	[thread overview]
Message-ID: <20260121145616.GD166857@noisy.programming.kicks-ass.net> (raw)
In-Reply-To: <20260121154225-d38a4029-6ad9-4a83-926e-c83b6af49ac6@linutronix.de>

On Wed, Jan 21, 2026 at 03:50:55PM +0100, Thomas Weißschuh wrote:
> On Wed, Jan 21, 2026 at 03:24:59PM +0100, Peter Zijlstra wrote:
> > Move changing the slice ext duration to debugfs, a sliglty less permanent
> > interface.
> > 
> > Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
> > ---
> 
> (...)
> 
> > --- a/kernel/rseq.c
> > +++ b/kernel/rseq.c
> > @@ -222,12 +222,16 @@ static const struct file_operations debu
> >  	.release	= single_release,
> >  };
> >  
> > +extern void rseq_slice_ext_init(struct dentry *root_dir);
> 
> This is actually a static function.

Yes, but it is not always defined.

> > +
> >  static int __init rseq_debugfs_init(void)
> >  {
> >  	struct dentry *root_dir = debugfs_create_dir("rseq", NULL);
> >  
> >  	debugfs_create_file("debug", 0644, root_dir, NULL, &debug_ops);
> >  	rseq_stats_init(root_dir);
> > +	if (IS_ENABLED(CONFIG_RSEQ_SLICE_EXTENSIO))
> 
> Missing 'N' at the end.

Argh. Some day my editor will tell me this :/

> > +		rseq_slice_ext_init(root_dir);
> >  	return 0;
> >  }
> >  __initcall(rseq_debugfs_init);
> > @@ -515,7 +519,9 @@ struct slice_timer {
> >  	void		*cookie;
> >  };
> 
> (...)
> 
> > +#ifdef CONFIG_DEBUG_FS
> 
> (...)
> 
> > +#else
> > +static void rseq_slice_ext_init(struct dentry *root_dir) { }
> > +#endif
> 
> It might be possible to just remove the CONFIG_DEBUG_FS ifdeffery and let the
> compiler optimize away all of the debugfs-related code automatically.

I'll check.

  reply	other threads:[~2026-01-21 14:56 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-21 14:24 [PATCH 0/5] rseq: Various slice-ext changes Peter Zijlstra
2026-01-21 14:24 ` [PATCH 1/5] rseq: Allow registering RSEQ with slice extension Peter Zijlstra
2026-01-22 10:15   ` [tip: sched/core] " tip-bot2 for Peter Zijlstra
2026-01-21 14:24 ` [PATCH 2/5] rseq: Move slice_ext_nsec to debugfs Peter Zijlstra
2026-01-21 14:50   ` Thomas Weißschuh
2026-01-21 14:56     ` Peter Zijlstra [this message]
2026-01-21 15:15     ` Peter Zijlstra
2026-01-22 10:15   ` [tip: sched/core] " tip-bot2 for Peter Zijlstra
2026-01-21 14:25 ` [PATCH 3/5] rseq: Lower default slice extension Peter Zijlstra
2026-01-22 10:15   ` [tip: sched/core] " tip-bot2 for Peter Zijlstra
2026-01-21 14:25 ` [PATCH 4/5] hrtimer: Fix trace oddity Peter Zijlstra
2026-01-22 10:15   ` [tip: sched/core] " tip-bot2 for Thomas Gleixner
2026-01-21 14:25 ` [PATCH 5/5] selftests/rseq: Add rseq slice histogram script Peter Zijlstra
2026-01-22 10:15   ` [tip: sched/core] " tip-bot2 for Peter Zijlstra

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=20260121145616.GD166857@noisy.programming.kicks-ass.net \
    --to=peterz@infradead.org \
    --cc=arnd@arndb.de \
    --cc=bigeasy@linutronix.de \
    --cc=boqun.feng@gmail.com \
    --cc=corbet@lwn.net \
    --cc=kprateek.nayak@amd.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=longman@redhat.com \
    --cc=mathieu.desnoyers@efficios.com \
    --cc=paulmck@kernel.org \
    --cc=prakash.sangappa@oracle.com \
    --cc=rdunlap@infradead.org \
    --cc=rongevarg@gmail.com \
    --cc=rostedt@goodmis.org \
    --cc=tglx@linutronix.de \
    --cc=thomas.weissschuh@linutronix.de \
    --cc=vineethr@linux.ibm.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

all inboxes | Powered by JetHome®