diff options
author | Denys Vlasenko <dvlasenk@redhat.com> | 2013-07-16 12:18:59 +0200 |
---|---|---|
committer | Denys Vlasenko <dvlasenk@redhat.com> | 2013-07-16 12:18:59 +0200 |
commit | 76da831a4159a58cd321328498496e772e3b4afc (patch) | |
tree | a51312b2b87214d8b8fea182fbb8e6008ee0b6ae /defs.h | |
parent | b51f364c4241aa247a7a22f92c06f1f1a4ab99b4 (diff) | |
download | strace-76da831a4159a58cd321328498496e772e3b4afc.tar.gz strace-76da831a4159a58cd321328498496e772e3b4afc.tar.bz2 strace-76da831a4159a58cd321328498496e772e3b4afc.tar.xz |
Group USE_CUSTOM_PRINTF define with other tweakables
No code changes.
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'defs.h')
-rw-r--r-- | defs.h | 18 |
1 files changed, 10 insertions, 8 deletions
@@ -146,6 +146,15 @@ extern char *stpcpy(char *dst, const char *src); #define USE_SEIZE 1 /* To force NOMMU build, set to 1 */ #define NOMMU_SYSTEM 0 +/* + * Set to 1 to use speed-optimized vfprintf implementation. + * It results in strace using about 5% less CPU in user space + * (compared to glibc version). + * But strace spends a lot of time in kernel space, + * so overall it does not appear to be a significant win. + * Thus disabled by default. + */ +#define USE_CUSTOM_PRINTF 0 #if (defined(SPARC) || defined(SPARC64) \ || defined(I386) || defined(X32) || defined(X86_64) \ @@ -575,17 +584,10 @@ void error_msg_and_die(const char *fmt, ...) __attribute__ ((noreturn, format(pr void perror_msg_and_die(const char *fmt, ...) __attribute__ ((noreturn, format(printf, 1, 2))); void die_out_of_memory(void) __attribute__ ((noreturn)); -#ifdef USE_CUSTOM_PRINTF +#if USE_CUSTOM_PRINTF /* - * Speed-optimized vfprintf implementation. * See comment in vsprintf.c for allowed formats. * Short version: %h[h]u, %zu, %tu are not allowed, use %[l[l]]u. - * - * It results in strace using about 5% less CPU in user space - * (compared to glibc version). - * But strace spends a lot of time in kernel space, - * so overall it does not appear to be a significant win. - * Thus disabled by default. */ int strace_vfprintf(FILE *fp, const char *fmt, va_list args); #else |