Re: Question about config UPROBES and UPROBE_EVENTS

2024-09-30 Thread Tiezhu Yang
On 9/30/24 23:43, Masami Hiramatsu (Google) wrote: On Mon, 30 Sep 2024 11:32:31 -0400 Steven Rostedt wrote: On Tue, 1 Oct 2024 00:28:13 +0900 Masami Hiramatsu (Google) wrote: On Mon, 30 Sep 2024 10:06:30 -0400 Steven Rostedt wrote: On Mon, 30 Sep 2024 09:33:42 +0800 Tiezhu Yang wrote:

Re: [PATCH] Documentation/tracing: Mention that RESET_ATTACK_MITIGATION can clear memory

2024-09-30 Thread Ard Biesheuvel
On Thu, 26 Sept 2024 at 19:02, Steven Rostedt wrote: > > From: Steven Rostedt > > At the 2024 Linux Plumbers Conference, I was talking with Hans de Goede > about the persistent buffer to display traces from previous boots. He > mentioned that UEFI can clear memory. In my own tests I have not seen

Re: [PATCH v14 03/19] function_graph: Pass ftrace_regs to entryfunc

2024-09-30 Thread Google
On Mon, 30 Sep 2024 14:46:59 -0400 Steven Rostedt wrote: > On Tue, 17 Sep 2024 09:26:25 +0100 > Will Deacon wrote: > > > On Sun, Sep 15, 2024 at 04:46:14AM -0400, Steven Rostedt wrote: > > > Can I get an Acked-by from the AARCH64 maintainers for this patch? > > > > Sorry, I wasn't CC'd on th

Re: [PATCH linux-next] tracing: use strscpy() to instead of strncpy()

2024-09-30 Thread Justin Stitt
Hi Steve, Can we revisit this patch? see below. On Tue, Jan 24, 2023 at 12:17:03PM GMT, Steven Rostedt wrote: > On Mon, 9 Jan 2023 19:39:21 +0800 (CST) > wrote: > > > From: Xu Panda > > > > The implementation of strscpy() is more robust and safer. > > That's now the recommended way to copy NU

[PATCH] tracing: replace multiple deprecated strncpy with strscpy

2024-09-30 Thread Justin Stitt
num_buf[len] = 0; + strscpy(num_buf, str + s, len); /* Make sure it is a value */ if (field->is_signed) --- base-commit: bc83b4d1f08695e85e85d36f7b803da58010161d change-id: 20240930-strncpy-kernel-trace-trace_events_filter-c-f44a3f848518 Best regards, -- Justin Stitt

Re: [PATCHv5 bpf-next 06/13] libbpf: Add support for uprobe multi session attach

2024-09-30 Thread Andrii Nakryiko
On Sun, Sep 29, 2024 at 1:58 PM Jiri Olsa wrote: > > Adding support to attach program in uprobe session mode > with bpf_program__attach_uprobe_multi function. > > Adding session bool to bpf_uprobe_multi_opts struct that allows > to load and attach the bpf program via uprobe session. > the attachme

Re: [PATCHv5 bpf-next 05/13] bpf: Allow return values 0 and 1 for uprobe/kprobe session

2024-09-30 Thread Andrii Nakryiko
On Sun, Sep 29, 2024 at 1:58 PM Jiri Olsa wrote: > > The uprobe and kprobe session program can return only 0 or 1, > instruct verifier to check for that. > > Signed-off-by: Jiri Olsa > --- > kernel/bpf/verifier.c | 10 ++ > 1 file changed, 10 insertions(+) > Do we need Fixes: tag? Acke

Re: [PATCHv5 bpf-next 03/13] bpf: Add support for uprobe multi session attach

2024-09-30 Thread Andrii Nakryiko
On Sun, Sep 29, 2024 at 1:58 PM Jiri Olsa wrote: > > Adding support to attach BPF program for entry and return probe > of the same function. This is common use case which at the moment > requires to create two uprobe multi links. > > Adding new BPF_TRACE_UPROBE_SESSION attach type that instructs >

Re: [PATCHv5 bpf-next 02/13] uprobe: Add support for session consumer

2024-09-30 Thread Andrii Nakryiko
On Sun, Sep 29, 2024 at 1:57 PM Jiri Olsa wrote: > > This change allows the uprobe consumer to behave as session which > means that 'handler' and 'ret_handler' callbacks are connected in > a way that allows to: > > - control execution of 'ret_handler' from 'handler' callback > - share data bet

Re: [PATCHv5 bpf-next 01/13] uprobe: Add data pointer to consumer handlers

2024-09-30 Thread Andrii Nakryiko
On Sun, Sep 29, 2024 at 1:57 PM Jiri Olsa wrote: > > Adding data pointer to both entry and exit consumer handlers and all > its users. The functionality itself is coming in following change. > > Signed-off-by: Jiri Olsa > --- > include/linux/uprobes.h | 4 ++-- > ke

Re: [PATCH v8 01/11] timekeeping: move multigrain timestamp floor handling into timekeeper

2024-09-30 Thread Thomas Gleixner
On Mon, Sep 30 2024 at 16:53, Jeff Layton wrote: > On Mon, 2024-09-30 at 22:19 +0200, Thomas Gleixner wrote: >> On Mon, Sep 30 2024 at 15:37, Jeff Layton wrote: >> > If however, two threads have racing syscalls that overlap in time, then >> > there >> > is no such guarantee,

[PATCH RESEND tip/perf/core] uprobes: switch to RCU Tasks Trace flavor for better performance

2024-09-30 Thread Andrii Nakryiko
This patch switches uprobes SRCU usage to RCU Tasks Trace flavor, which is optimized for more lightweight and quick readers (at the expense of slower writers, which for uprobes is a fine trade-off) and has better performance and scalability with number of CPUs. Similarly to baseline vs SRCU, we've

Re: [PATCH v2] uprobes: Improve the usage of xol slots for better scalability

2024-09-30 Thread Andrii Nakryiko
On Fri, Sep 27, 2024 at 2:56 AM Liao Chang wrote: > > The uprobe handler allocates xol slot from xol_area and quickly release > it in the single-step handler. The atomic operations on the xol bitmap > and slot_count lead to expensive cache line bouncing between multiple > CPUs. Given the xol slot

Re: [PATCH v8 01/11] timekeeping: move multigrain timestamp floor handling into timekeeper

2024-09-30 Thread Jeff Layton
On Mon, 2024-09-30 at 22:19 +0200, Thomas Gleixner wrote: > On Mon, Sep 30 2024 at 15:37, Jeff Layton wrote: > > On Mon, 2024-09-30 at 21:16 +0200, Thomas Gleixner wrote: > > I have the following section in the multigrain-ts.rst file that gets > > added in patch 7 of this series. I'll also plan to

[PATCH v2] tracing/probes: Fix MAX_TRACE_ARGS limit handling

2024-09-30 Thread Mikel Rychliski
When creating a trace_probe we would set nr_args prior to truncating the arguments to MAX_TRACE_ARGS. However, we would only initialize arguments up to the limit. This caused invalid memory access when attempting to set up probes with more than 128 fetchargs. BUG: kernel NULL pointer dereferenc

Re: [PATCH v8 01/11] timekeeping: move multigrain timestamp floor handling into timekeeper

2024-09-30 Thread Thomas Gleixner
On Mon, Sep 30 2024 at 15:37, Jeff Layton wrote: > On Mon, 2024-09-30 at 21:16 +0200, Thomas Gleixner wrote: > I have the following section in the multigrain-ts.rst file that gets > added in patch 7 of this series. I'll also plan to add some extra > wording about how backward realtime clock jumps c

Re: [PATCH v8 01/11] timekeeping: move multigrain timestamp floor handling into timekeeper

2024-09-30 Thread Thomas Gleixner
On Mon, Sep 30 2024 at 15:27, Jeff Layton wrote: > On Mon, 2024-09-30 at 21:13 +0200, Thomas Gleixner wrote: >> So if that's the intended behaviour then the changelog is misleading at >> best. > > That is the intended behavior and I'll plan to fix the changelog to > clarify this point: > > If someo

Re: [PATCH v8 01/11] timekeeping: move multigrain timestamp floor handling into timekeeper

2024-09-30 Thread Jeff Layton
On Mon, 2024-09-30 at 21:43 +0200, Thomas Gleixner wrote: > On Thu, Sep 19 2024 at 18:50, Jeff Layton wrote: > > The fix for this is to establish a floor value for the coarse-grained > > clock. When stamping a file with a fine-grained timestamp, we update > > the floor value with the current monoto

[PATCH resend 5/8] tracing: Allow system call tracepoints to handle page faults

2024-09-30 Thread Mathieu Desnoyers
Use Tasks Trace RCU to protect iteration of system call enter/exit tracepoint probes to allow those probes to handle page faults. In preparation for this change, all tracers registering to system call enter/exit tracepoints should expect those to be called with preemption enabled. This allows tra

[PATCH resend 4/8] tracing/bpf: guard syscall probe with preempt_notrace

2024-09-30 Thread Mathieu Desnoyers
In preparation for allowing system call enter/exit instrumentation to handle page faults, make sure that bpf can handle this change by explicitly disabling preemption within the bpf system call tracepoint probes to respect the current expectations within bpf tracing code. This change does not yet

[PATCH resend 1/8] tracing: Declare system call tracepoints with TRACE_EVENT_SYSCALL

2024-09-30 Thread Mathieu Desnoyers
In preparation for allowing system call tracepoints to handle page faults, introduce TRACE_EVENT_SYSCALL to declare the sys_enter/sys_exit tracepoints. Emit the static inlines register_trace_syscall_##name for events declared with TRACE_EVENT_SYSCALL, allowing source-level validation that only pro

Re: [PATCH v8 01/11] timekeeping: move multigrain timestamp floor handling into timekeeper

2024-09-30 Thread Thomas Gleixner
On Thu, Sep 19 2024 at 18:50, Jeff Layton wrote: > The fix for this is to establish a floor value for the coarse-grained > clock. When stamping a file with a fine-grained timestamp, we update > the floor value with the current monotonic time (using cmpxchg). Then > later, when a coarse-grained time

[PATCH resend 7/8] tracing/perf: Add might_fault check to syscall probes

2024-09-30 Thread Mathieu Desnoyers
Add a might_fault() check to validate that the perf sys_enter/sys_exit probe callbacks are indeed called from a context where page faults can be handled. Signed-off-by: Mathieu Desnoyers Cc: Michael Jeanson Cc: Steven Rostedt Cc: Masami Hiramatsu Cc: Peter Zijlstra Cc: Alexei Starovoitov Cc:

[PATCH resend 8/8] tracing/bpf: Add might_fault check to syscall probes

2024-09-30 Thread Mathieu Desnoyers
Add a might_fault() check to validate that the bpf sys_enter/sys_exit probe callbacks are indeed called from a context where page faults can be handled. Signed-off-by: Mathieu Desnoyers Acked-by: Andrii Nakryiko Tested-by: Andrii Nakryiko # BPF parts Cc: Michael Jeanson Cc: Steven Rostedt Cc:

[PATCH resend 2/8] tracing/ftrace: guard syscall probe with preempt_notrace

2024-09-30 Thread Mathieu Desnoyers
In preparation for allowing system call enter/exit instrumentation to handle page faults, make sure that ftrace can handle this change by explicitly disabling preemption within the ftrace system call tracepoint probes to respect the current expectations within ftrace ring buffer code. This change

Re: [PATCH v8 01/11] timekeeping: move multigrain timestamp floor handling into timekeeper

2024-09-30 Thread Jeff Layton
On Mon, 2024-09-30 at 21:16 +0200, Thomas Gleixner wrote: > On Mon, Sep 16 2024 at 06:57, Jeff Layton wrote: > > On Mon, 2024-09-16 at 12:32 +0200, Thomas Gleixner wrote: > > > > 'Something has changed' is a truly understandable technical > > > > explanation. > > > > > > old = mg_floor > > >

[PATCH resend 3/8] tracing/perf: guard syscall probe with preempt_notrace

2024-09-30 Thread Mathieu Desnoyers
In preparation for allowing system call enter/exit instrumentation to handle page faults, make sure that perf can handle this change by explicitly disabling preemption within the perf system call tracepoint probes to respect the current expectations within perf ring buffer code. This change does n

Re: [PATCH v8 01/11] timekeeping: move multigrain timestamp floor handling into timekeeper

2024-09-30 Thread Jeff Layton
On Mon, 2024-09-30 at 21:13 +0200, Thomas Gleixner wrote: > On Sat, Sep 14 2024 at 13:07, Jeff Layton wrote: > > > For multigrain timestamps, we must keep track of the latest timestamp > > that has ever been handed out, and never hand out a coarse time below > > that value. > > How is that correc

[PATCH resend 6/8] tracing/ftrace: Add might_fault check to syscall probes

2024-09-30 Thread Mathieu Desnoyers
Add a might_fault() check to validate that the ftrace sys_enter/sys_exit probe callbacks are indeed called from a context where page faults can be handled. Signed-off-by: Mathieu Desnoyers Acked-by: Masami Hiramatsu (Google) Cc: Michael Jeanson Cc: Steven Rostedt Cc: Masami Hiramatsu Cc: Pete

[PATCH resend 0/8] tracing: Allow system call tracepoints to handle page faults

2024-09-30 Thread Mathieu Desnoyers
Wire up the system call tracepoints with Tasks Trace RCU to allow the ftrace, perf, and eBPF tracers to handle page faults. This series does the initial wire-up allowing tracers to handle page faults, but leaves out the actual handling of said page faults as future work. This series was compile a

Re: [PATCH v8 01/11] timekeeping: move multigrain timestamp floor handling into timekeeper

2024-09-30 Thread Thomas Gleixner
On Mon, Sep 16 2024 at 06:57, Jeff Layton wrote: > On Mon, 2024-09-16 at 12:32 +0200, Thomas Gleixner wrote: >> > 'Something has changed' is a truly understandable technical >> > explanation. >> >> old = mg_floor >> mono = T1; >>

Re: [PATCH v8 01/11] timekeeping: move multigrain timestamp floor handling into timekeeper

2024-09-30 Thread Thomas Gleixner
On Sat, Sep 14 2024 at 13:07, Jeff Layton wrote: > For multigrain timestamps, we must keep track of the latest timestamp > that has ever been handed out, and never hand out a coarse time below > that value. How is that correct when the clock is off by an hour and then set back to the correct valu

Re: [PATCH v14 05/19] function_graph: Pass ftrace_regs to retfunc

2024-09-30 Thread Steven Rostedt
On Tue, 17 Sep 2024 11:08:48 +0100 Will Deacon wrote: > > > @@ -787,6 +789,9 @@ __ftrace_return_to_handler(struct ftrace_regs *fregs, > > > unsigned long frame_pointe > > > } > > > > > > trace.rettime = trace_clock_local(); > > > + if (fregs) > > > + ftrace_regs_set_instruction_poi

Re: [PATCH v14 04/19] function_graph: Replace fgraph_ret_regs with ftrace_regs

2024-09-30 Thread Steven Rostedt
On Tue, 17 Sep 2024 10:55:39 +0100 Will Deacon wrote: > The arm64 part looks good to me, although passing a partially-populated > struct out of asm feels like it's going to cause us hard-to-debug > problems down the line if any of those extra fields get used. How hard > would it be to poison the

Re: [PATCH v14 03/19] function_graph: Pass ftrace_regs to entryfunc

2024-09-30 Thread Steven Rostedt
On Tue, 17 Sep 2024 09:26:25 +0100 Will Deacon wrote: > On Sun, Sep 15, 2024 at 04:46:14AM -0400, Steven Rostedt wrote: > > Can I get an Acked-by from the AARCH64 maintainers for this patch? > > Sorry, I wasn't CC'd on the thread, so I missed this. Here's the lore link that starts it all:

Re: [PATCH] Documentation/tracing: Mention that RESET_ATTACK_MITIGATION can clear memory

2024-09-30 Thread Steven Rostedt
On Mon, 30 Sep 2024 11:20:48 -0600 Jonathan Corbet wrote: > > And I forgot to send this to the Documentation maintainers :-p > > > > Jon, could you take this? Do you need me to resend, or can you just pull it > > from lore? > > I'll grab it in a bit. No rush. Thanks! -- Steve

Re: [PATCH] Documentation/tracing: Mention that RESET_ATTACK_MITIGATION can clear memory

2024-09-30 Thread Jonathan Corbet
Steven Rostedt writes: > On Thu, 26 Sep 2024 19:54:48 +0200 > Hans de Goede wrote: > >> Hi, >> >> On 26-Sep-24 7:01 PM, Steven Rostedt wrote: >> > From: Steven Rostedt >> > >> > At the 2024 Linux Plumbers Conference, I was talking with Hans de Goede >> > about the persistent buffer to display

Re: [PATCH] Documentation/tracing: Mention that RESET_ATTACK_MITIGATION can clear memory

2024-09-30 Thread Steven Rostedt
On Thu, 26 Sep 2024 19:54:48 +0200 Hans de Goede wrote: > Hi, > > On 26-Sep-24 7:01 PM, Steven Rostedt wrote: > > From: Steven Rostedt > > > > At the 2024 Linux Plumbers Conference, I was talking with Hans de Goede > > about the persistent buffer to display traces from previous boots. He > > m

Re: Question about config UPROBES and UPROBE_EVENTS

2024-09-30 Thread Google
On Mon, 30 Sep 2024 11:32:31 -0400 Steven Rostedt wrote: > On Tue, 1 Oct 2024 00:28:13 +0900 > Masami Hiramatsu (Google) wrote: > > > On Mon, 30 Sep 2024 10:06:30 -0400 > > Steven Rostedt wrote: > > > > > On Mon, 30 Sep 2024 09:33:42 +0800 > > > Tiezhu Yang wrote: > > > > > > > > the CONF

Re: [PATCH] tracing/probes: Fix MAX_TRACE_ARGS limit handling

2024-09-30 Thread Google
On Sun, 29 Sep 2024 23:17:14 -0400 Mikel Rychliski wrote: > On Sunday, September 29, 2024 7:40:18 P.M. EDT Masami Hiramatsu wrote: > > Good catch! But this silently drop the arguments after MAX_TRACE_ARGS. > > I rather like to reject such input with an error (-E2BIG) as below. > > (Hmm, and I als

Re: Question about config UPROBES and UPROBE_EVENTS

2024-09-30 Thread Steven Rostedt
On Tue, 1 Oct 2024 00:28:13 +0900 Masami Hiramatsu (Google) wrote: > On Mon, 30 Sep 2024 10:06:30 -0400 > Steven Rostedt wrote: > > > On Mon, 30 Sep 2024 09:33:42 +0800 > > Tiezhu Yang wrote: > > > > > > the CONFIG_UPROBES is disabled by default and make CONFIG_UPROBE_EVENTS > > > > dependi

Re: Question about config UPROBES and UPROBE_EVENTS

2024-09-30 Thread Google
On Mon, 30 Sep 2024 10:06:30 -0400 Steven Rostedt wrote: > On Mon, 30 Sep 2024 09:33:42 +0800 > Tiezhu Yang wrote: > > > > the CONFIG_UPROBES is disabled by default and make CONFIG_UPROBE_EVENTS > > > depending on it, the uprobe_events menu is hidden. I don't like this. > > > > This is someh

Re: ftrace not tracing pciehp probe

2024-09-30 Thread Steven Rostedt
On Mon, 30 Sep 2024 18:16:01 +0530 Maverickk 78 wrote: > Hello, > > I enabled ftrace and set a filter on the command line as *pcie*, I > dont see some of the pciehp(eg: pciehp_probe from pciehp_core.c) > module function calls in ftrace, It does trace pciehp_isr but nothing > else. > > My comman

Re: [PATCH 21/35] ring-buffer: Reorganize kerneldoc parameter names

2024-09-30 Thread Steven Rostedt
On Mon, 30 Sep 2024 13:21:07 +0200 Julia Lawall wrote: > Reorganize kerneldoc parameter names to match the parameter > order in the function header. > > Problems identified using Coccinelle. > > Signed-off-by: Julia Lawall Acked-by: Steven Rostedt (Google) -- Steve > > --- > kernel/trace

Re: [PATCH v2] function_graph: Improve fgraph LRU data initialization

2024-09-30 Thread Steven Rostedt
On Mon, 30 Sep 2024 07:10:31 + Liao Chang wrote: > This patch uses [first ... last] = value to initialize fgraph_array[]. > And use fgraph_lru_next and fgraph_lru_last as the indicator of > initialization. The only thing this patch does is to allow the use of [first...last] annotation for in

Re: [PATCH] tools/timerlat: Enhance Error Handling and Readability for timerlat_load.py

2024-09-30 Thread Steven Rostedt
On Sun, 29 Sep 2024 23:21:05 + furkanonder wrote: > I’m sorry; I included the patch as an attachment in the email without > noticing. Yes, but still, you need to have the patch with the change log and the signed-off-by. Not as a separate email. Try using "git send-email", that can probably

Re: Question about config UPROBES and UPROBE_EVENTS

2024-09-30 Thread Steven Rostedt
On Mon, 30 Sep 2024 09:33:42 +0800 Tiezhu Yang wrote: > > the CONFIG_UPROBES is disabled by default and make CONFIG_UPROBE_EVENTS > > depending on it, the uprobe_events menu is hidden. I don't like this. > > This is somehow like the current status of CONFIG_KPROBES and > CONFIG_KPROBE_EVENTS.

Re: [PATCH v5 17/17] powerpc64/bpf: Add support for bpf trampolines

2024-09-30 Thread Alexei Starovoitov
On Sun, Sep 29, 2024 at 10:33 PM Hari Bathini wrote: > > > > On 17/09/24 1:20 pm, Alexei Starovoitov wrote: > > On Sun, Sep 15, 2024 at 10:58 PM Hari Bathini > > wrote: > >> > >> + > >> + /* > >> +* Generated stack layout: > >> +* > >> +* func prev back chain

ftrace not tracing pciehp probe

2024-09-30 Thread Maverickk 78
Hello, I enabled ftrace and set a filter on the command line as *pcie*, I dont see some of the pciehp(eg: pciehp_probe from pciehp_core.c) module function calls in ftrace, It does trace pciehp_isr but nothing else. My command line is "ftrace=function_graph ftrace_graph_filter=*pcie* ", is there a

Re: [PATCHv5 bpf-next 02/13] uprobe: Add support for session consumer

2024-09-30 Thread Jiri Olsa
On Mon, Sep 30, 2024 at 11:40:15AM +0200, Oleg Nesterov wrote: > Jiri, > > LGTM. But I'm afraid you need to send v6, sorry ;) > > This change has some (trivial) conflicts in prepare_uretprobe() with the > cleanups I sent yesterday, and Peter is going to queue them. sure, np.. will wait for any r

[PATCH 21/35] ring-buffer: Reorganize kerneldoc parameter names

2024-09-30 Thread Julia Lawall
Reorganize kerneldoc parameter names to match the parameter order in the function header. Problems identified using Coccinelle. Signed-off-by: Julia Lawall --- kernel/trace/ring_buffer.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/trace/ring_buffer.c b/kernel/

[PATCH 00/35] Reorganize kerneldoc parameter names

2024-09-30 Thread Julia Lawall
Reorganize kerneldoc parameter names to match the parameter order in the function header. The misordered cases were identified using the following Coccinelle semantic patch: // @initialize:ocaml@ @@ let parse_doc l = let pieces = List.map String.trim (String.split_on_char '*' l) in let l =

Re: [PATCHv5 bpf-next 02/13] uprobe: Add support for session consumer

2024-09-30 Thread Oleg Nesterov
Jiri, LGTM. But I'm afraid you need to send v6, sorry ;) This change has some (trivial) conflicts in prepare_uretprobe() with the cleanups I sent yesterday, and Peter is going to queue them. See https://lore.kernel.org/all/20240929144201.ga9...@redhat.com/ Oleg. On 09/29, Jiri Olsa wrote: > >

Re: [PATCHv5 bpf-next 01/13] uprobe: Add data pointer to consumer handlers

2024-09-30 Thread Oleg Nesterov
On 09/29, Jiri Olsa wrote: > > Adding data pointer to both entry and exit consumer handlers and all > its users. The functionality itself is coming in following change. > > Signed-off-by: Jiri Olsa Acked-by: Oleg Nesterov

Re: [PATCH 0/7] uprobes: deuglify xol_get_insn_slot/xol_free_insn_slot paths

2024-09-30 Thread Peter Zijlstra
On Sun, Sep 29, 2024 at 04:42:01PM +0200, Oleg Nesterov wrote: > Hello, > > No functional changes, please review. > > I'd like to push these cleanups first, then I'll send some optimizations > on top of this series. They look okay to me, I'll queue them up. Thanks!

[PATCH v2] function_graph: Improve fgraph LRU data initialization

2024-09-30 Thread Liao Chang
This patch uses [first ... last] = value to initialize fgraph_array[]. And use fgraph_lru_next and fgraph_lru_last as the indicator of initialization. v2->v1: Fixup the build error reported by kernel test robot . Since some architectures use ftrace_graph_entry_stub() for the static ftrace scenario

Re: [PATCH] function_graph: Simplify the initialization of fgraph LRU data

2024-09-30 Thread Liao, Chang
在 2024/9/28 8:17, Steven Rostedt 写道: > On Thu, 12 Sep 2024 11:15:50 + > Liao Chang wrote: > >> This patch uses [first ... last] = value to initialize fgraph_array[]. >> And it declares all the callbacks in fgraph_stub as static, as they are >> not called from external code. > > This patch