From 832a771034bf62444796ab8868264c3ea9e50866 Mon Sep 17 00:00:00 2001 From: Christian Borntraeger Date: Mon, 1 Dec 2014 09:16:45 +0100 Subject: [PATCH] s390/debug: avoid function call for debug_sprintf_* debug_sprintf_event/exception are called even for debug events with a disabling debug level. All other functions already do the check in a wrapper function. Lets do the same here. Due to the var_args the compiler rejects to make this function inline. So let's wrap this via a macro. This patch saves around 80 ns on my z196 for a KVM round trip (we have two debug statements for entry and exit) when KVM is build as a module. The savings for built-in drivers is smaller as we then avoid the PLT overhead for a function call. Signed-off-by: Christian Borntraeger Reviewed-by: Michael Holzheu Reviewed-by: David Hildenbrand Signed-off-by: Martin Schwidefsky --- Reading git-format-patch failed