Re: [PATCH 2/2] Reduce performance cost of the trace if trace category is disabled

2017-11-19 Thread Gennady Kupava
Right, this trace is actually not used anywhere, so only check was compilation. Will fix that. On 19 November 2017 at 08:27, Johannes Sixt wrote: > Am 19.11.2017 um 01:42 schrieb gennady.kup...@gmail.com: >> >> +#define trace_printf_key(key, ...) >> \ >> + do { >> \ >> +

Re: [PATCH 2/2] Reduce performance cost of the trace if trace category is disabled

2017-11-19 Thread Johannes Sixt
Am 19.11.2017 um 01:42 schrieb gennady.kup...@gmail.com: +#define trace_printf_key(key, ...) \ + do {\ + if (trace_pass_fl(key)) \ +

[PATCH 2/2] Reduce performance cost of the trace if trace category is disabled

2017-11-18 Thread gennady . kupava
From: Gennady Kupava - Do the check if the trace key is enabled sooner in call chain. - Move just enough code from trace.c into trace.h header so all code necessary to determine that trace is disabled could be inlined to calling functions. Signed-off-by: Gennady