Re: [RFC PATCH] riscv: Implement HAVE_DYNAMIC_FTRACE_WITH_CALL_OPS

2024-03-21 Thread Andy Chiu
On Thu, Mar 21, 2024 at 4:48 PM Björn Töpel wrote: > > Andy, > > Pulling out the A option: > > >> > A) Use auipc/jalr, only patch jalr to take us to a common > >> >dispatcher/trampoline > >> > > >> > | # probably on a data cache-line != func > >> > .text to avoid ping-pong > >> > | ... >

Re: [RFC PATCH] riscv: Implement HAVE_DYNAMIC_FTRACE_WITH_CALL_OPS

2024-03-20 Thread Andy Chiu
Hi Björn, On Fri, Mar 15, 2024 at 4:50 AM Björn Töpel wrote: > > Björn Töpel writes: > > > Puranjay Mohan writes: > > > >> Björn Töpel writes: > >> > >>> > >>> Hmm, depending on RISC-V's CMODX path, the pro/cons CALL_OPS vs dynamic > >>> trampolines changes quite a bit. > >>> > >>> The more I

Re: [RFC PATCH] riscv: Implement HAVE_DYNAMIC_FTRACE_WITH_CALL_OPS

2024-03-08 Thread Andy Chiu
Hi Puranjay, On Fri, Mar 8, 2024 at 3:53 AM Puranjay Mohan wrote: > > Hi Björn, > > On Thu, Mar 7, 2024 at 8:27 PM Björn Töpel wrote: > > > > Puranjay! > > > > Puranjay Mohan writes: > > > > > This patch enables support for DYNAMIC_FTRACE_WITH_CALL_OPS on RISC-V. > > > This allows each ftrace

Re: [RFC PATCH] riscv: Implement HAVE_DYNAMIC_FTRACE_WITH_CALL_OPS

2024-03-08 Thread Andy Chiu
On Thu, Mar 7, 2024 at 8:19 AM Puranjay Mohan wrote: > > Hi Alex, > > On Wed, Mar 6, 2024 at 9:35 PM Alexandre Ghiti wrote: > > > > Hi Puranjay, > > > > On 06/03/2024 17:59, Puranjay Mohan wrote: > > > This patch enables support for DYNAMIC_FTRACE_WITH_CALL_OPS on RISC-V. > > > This allows each

[v1] trace/hwlat: stop worker if !is_percpu_thread due to hotplug event

2024-01-31 Thread Andy Chiu
If the task happens to run after cpu hot-plug offline, then it would not be running in a percpu_thread. Instead, it would be re-queued into a UNBOUND workqueue. This would trigger a warning if we enable kernel preemption. Signed-off-by: Andy Chiu --- kernel/trace/trace_hwlat.c | 11

[v1] trace/osnoise: prevent osnoise hotplog worker running in UNBOUND workqueue

2024-01-31 Thread Andy Chiu
wq. Signed-off-by: Andy Chiu --- kernel/trace/trace_osnoise.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/kernel/trace/trace_osnoise.c b/kernel/trace/trace_osnoise.c index bd0d01d00fb9..cf7f716d3f35 100644 --- a/kernel/trace/trace_osnoise.c +++ b/kernel/trace