Re: [PATCH] trace/simple: seperate hot paths of tracing fucntions

2025-06-02 Thread Stefan Hajnoczi
Applied to my tracing tree, thanks! https://gitlab.com/stefanha/qemu/-/commit/ffcfb0faaa95fc6ca007f7dd989e390dacf936ca Stefan

Re: [PATCH] trace/simple: seperate hot paths of tracing fucntions

2025-05-28 Thread Tanish Desai
I have shared v2 with updated commit msg to everyone in form of a new PATCH. Please check it and let me know if anything is still missing or confusing. On Wed, 28 May 2025 at 11:36 PM, Stefan Hajnoczi wrote: > On Mon, May 26, 2025 at 10:51 PM Tanish Desai > wrote: > > > > > Can you explain 3 m

[PATCH] trace/simple: seperate hot paths of tracing fucntions

2025-05-28 Thread Tanish Desai
This change improves performance by moving the hot path of the trace_vhost_commit()(or any other trace function) logic to the header file. Previously, even when the trace event was disabled, the function call chain:- trace_vhost_commit()(Or any other trace function) → _nocheck__trace_vho

Re: [PATCH] trace/simple: seperate hot paths of tracing fucntions

2025-05-28 Thread Stefan Hajnoczi
On Mon, May 26, 2025 at 10:51 PM Tanish Desai wrote: > > > Can you explain 3 more? > Pablo and I have looked into object files for one of default trace point > "trace_vhost_commit"(first tracepoint of hw/virtio) before and after making > this change and we found that by moves the hot-path check

Re: [PATCH] trace/simple: seperate hot paths of tracing fucntions

2025-05-26 Thread Tanish Desai
> Can you explain 3 more? Pablo and I have looked into object files for one of default trace point " trace_vhost_commit"(first tracepoint of hw/virtio) before and after making this change and we found that by moves the hot-path check for _simple_trace_vhost_commit into the caller (in the .h file) a

Re: [PATCH] trace/simple: seperate hot paths of tracing fucntions

2025-05-21 Thread Stefan Hajnoczi
On Tue, May 20, 2025 at 4:52 PM Paolo Bonzini wrote: > Il mar 20 mag 2025, 21:01 Stefan Hajnoczi ha scritto: >> >> On Mon, May 19, 2025 at 2:52 PM Tanish Desai wrote: >> > >> > Remove hot paths from .c file and added it in .h file to keep it inline. >> >> Please include performance results in th

Re: [PATCH] trace/simple: seperate hot paths of tracing fucntions

2025-05-20 Thread Paolo Bonzini
Il mar 20 mag 2025, 21:01 Stefan Hajnoczi ha scritto: > On Mon, May 19, 2025 at 2:52 PM Tanish Desai > wrote: > > > > Remove hot paths from .c file and added it in .h file to keep it inline. > > Please include performance results in the commit description so it's > clear what impact this change

Re: [PATCH] trace/simple: seperate hot paths of tracing fucntions

2025-05-20 Thread Stefan Hajnoczi
On Mon, May 19, 2025 at 2:52 PM Tanish Desai wrote: > > Remove hot paths from .c file and added it in .h file to keep it inline. Please include performance results in the commit description so it's clear what impact this change has. > > Signed-off-by: Tanish Desai > --- > scripts/tracetool/bac

[PATCH] trace/simple: seperate hot paths of tracing fucntions

2025-05-19 Thread Tanish Desai
Remove hot paths from .c file and added it in .h file to keep it inline. Signed-off-by: Tanish Desai --- scripts/tracetool/backend/simple.py | 23 ++- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/scripts/tracetool/backend/simple.py b/scripts/tracetool/back