linux-trace-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Question about config UPROBES and UPROBE_EVENTS
@ 2024-09-11  6:40 Tiezhu Yang
  2024-09-11 13:43 ` Steven Rostedt
  2024-09-29 23:15 ` Masami Hiramatsu
  0 siblings, 2 replies; 12+ messages in thread
From: Tiezhu Yang @ 2024-09-11  6:40 UTC (permalink / raw)
  To: Masami Hiramatsu; +Cc: linux-trace-kernel, linux-kernel

Hi Masami,

I am a little confused about config UPROBES and UPROBE_EVENTS.
Uprobes is the user-space counterpart to kprobes, I want to do
some small changes:

(1) since config KPROBES can be selectable, just make config UPROBES
     selectable too.

(2) since config KPROBE_EVENTS depends on KPROBES rather than select
     KPROBES, just make config UPROBE_EVENTS depends on UPROBES rather
     than select UPROBES.

Could you please let me know are you OK with the following changes?
If yes, I will send formal patches later.

-- >8 --
diff --git a/arch/Kconfig b/arch/Kconfig
index 975dd22a2dbd..5de2187d3440 100644
--- a/arch/Kconfig
+++ b/arch/Kconfig
@@ -124,7 +124,8 @@ config KPROBES_ON_FTRACE
           optimize on top of function tracing.

  config UPROBES
-       def_bool n
+       bool "Uprobes"
+       default n
         depends on ARCH_SUPPORTS_UPROBES
         help
           Uprobes is the user-space counterpart to kprobes: they
diff --git a/kernel/trace/Kconfig b/kernel/trace/Kconfig
index 721c3b221048..7db0462a5d11 100644
--- a/kernel/trace/Kconfig
+++ b/kernel/trace/Kconfig
@@ -732,10 +732,9 @@ config KPROBE_EVENTS_ON_NOTRACE

  config UPROBE_EVENTS
         bool "Enable uprobes-based dynamic events"
-       depends on ARCH_SUPPORTS_UPROBES
+       depends on UPROBES
         depends on MMU
         depends on PERF_EVENTS
-       select UPROBES
         select PROBE_EVENTS
         select DYNAMIC_EVENTS
         select TRACING

Thanks,
Tiezhu


^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2024-10-01 12:32 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-11  6:40 Question about config UPROBES and UPROBE_EVENTS Tiezhu Yang
2024-09-11 13:43 ` Steven Rostedt
2024-09-29 23:15 ` Masami Hiramatsu
2024-09-30  1:33   ` Tiezhu Yang
2024-09-30 14:06     ` Steven Rostedt
2024-09-30 15:28       ` Masami Hiramatsu
2024-09-30 15:32         ` Steven Rostedt
2024-09-30 15:43           ` Masami Hiramatsu
2024-10-01  6:30             ` Tiezhu Yang
2024-10-01 12:30               ` Steven Rostedt
2024-10-01 12:33                 ` Steven Rostedt
2024-10-01 12:32           ` Steven Rostedt

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).