Re: [PATCH 1/3] trace/syslog: seperate cold paths of tracing functions

2025-06-04 Thread Tanish Desai
Yes, you're right—there was a mistake in the original commit description. In this change, we're moving cold paths out of the header (.h) files and into corresponding source (.c) files. The primary motivation is to avoid replicating the cold path logic across every translation unit that includes tra

Re: [PATCH 1/3] trace/syslog: seperate cold paths of tracing functions

2025-06-02 Thread Stefan Hajnoczi
On Sun, Jun 01, 2025 at 06:12:29PM +, Tanish Desai wrote: > inline: move hot paths from .c to .h for better performance > Moved frequently used hot paths from the .c file to the .h file to enable > inlining > and improve performance. This approach is inspired by past QEMU optimizations, > wher

[PATCH 1/3] trace/syslog: seperate cold paths of tracing functions

2025-06-01 Thread Tanish Desai
inline: move hot paths from .c to .h for better performance Moved frequently used hot paths from the .c file to the .h file to enable inlining and improve performance. This approach is inspired by past QEMU optimizations, where performance-critical code was inlined based on profiling results. Sig