diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2013-02-22 13:23:38 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2013-02-22 13:23:38 +0100 |
commit | 40d63b9a92e049986fce1fb91cca10fdd3d3a64a (patch) | |
tree | f2c8c8e1ab20bd74078b965d4e64e7dd6add3261 /defs.h | |
parent | c1540fe19d0980be3f6a218c91a03983f8a86009 (diff) | |
download | strace-40d63b9a92e049986fce1fb91cca10fdd3d3a64a.tar.gz strace-40d63b9a92e049986fce1fb91cca10fdd3d3a64a.tar.bz2 strace-40d63b9a92e049986fce1fb91cca10fdd3d3a64a.tar.xz |
Use tcp->qual_flg instead of qual_flags[] in verbose() and abbrev()
We have hundreds of uses of these macros.
Result is more efficient and 1.1 kbyte shorter code:
text data bss dec hex filename
245579 700 12928 259207 3f487 strace.t5/strace
244471 700 12928 258099 3f033 strace.t6/strace
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'defs.h')
-rw-r--r-- | defs.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -476,8 +476,8 @@ typedef uint8_t qualbits_t; #define entering(tcp) (!((tcp)->flags & TCB_INSYSCALL)) #define exiting(tcp) ((tcp)->flags & TCB_INSYSCALL) #define syserror(tcp) ((tcp)->u_error != 0) -#define verbose(tcp) (qual_flags[(tcp)->scno] & QUAL_VERBOSE) -#define abbrev(tcp) (qual_flags[(tcp)->scno] & QUAL_ABBREV) +#define verbose(tcp) ((tcp)->qual_flg & QUAL_VERBOSE) +#define abbrev(tcp) ((tcp)->qual_flg & QUAL_ABBREV) #define filtered(tcp) ((tcp)->flags & TCB_FILTERED) struct xlat { |