From: Denys Vlasenko Date: Thu, 21 Feb 2013 15:17:08 +0000 (+0100) Subject: Remove unused QUAL_FAULT code (was used by non-Linux code only). X-Git-Tag: v4.8~129 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c1540fe19d0980be3f6a218c91a03983f8a86009;p=strace Remove unused QUAL_FAULT code (was used by non-Linux code only). Signed-off-by: Denys Vlasenko --- diff --git a/defs.h b/defs.h index 9b14a213..35620792 100644 --- a/defs.h +++ b/defs.h @@ -466,11 +466,10 @@ struct tcb { #define QUAL_VERBOSE 0x004 /* decode the structures of this syscall */ #define QUAL_RAW 0x008 /* print all args in hex for this syscall */ #define QUAL_SIGNAL 0x010 /* report events with this signal */ -#define QUAL_FAULT 0x020 /* report events with this fault */ -#define QUAL_READ 0x040 /* dump data read on this file descriptor */ -#define QUAL_WRITE 0x080 /* dump data written to this file descriptor */ -#define UNDEFINED_SCNO 0x100 /* Used only in tcp->qual_flg */ +#define QUAL_READ 0x020 /* dump data read on this file descriptor */ +#define QUAL_WRITE 0x040 /* dump data written to this file descriptor */ typedef uint8_t qualbits_t; +#define UNDEFINED_SCNO 0x100 /* Used only in tcp->qual_flg */ #define DEFAULT_QUAL_FLAGS (QUAL_TRACE | QUAL_ABBREV | QUAL_VERBOSE) diff --git a/syscall.c b/syscall.c index 452ac8ef..5fce9d8c 100644 --- a/syscall.c +++ b/syscall.c @@ -320,7 +320,7 @@ update_personality(struct tcb *tcp, int personality) } #endif -static int qual_syscall(), qual_signal(), qual_fault(), qual_desc(); +static int qual_syscall(), qual_signal(), qual_desc(); static const struct qual_options { int bitflag; @@ -339,9 +339,6 @@ static const struct qual_options { { QUAL_SIGNAL, "signal", qual_signal, "signal" }, { QUAL_SIGNAL, "signals", qual_signal, "signal" }, { QUAL_SIGNAL, "s", qual_signal, "signal" }, - { QUAL_FAULT, "fault", qual_fault, "fault" }, - { QUAL_FAULT, "faults", qual_fault, "fault" }, - { QUAL_FAULT, "m", qual_fault, "fault" }, { QUAL_READ, "read", qual_desc, "descriptor" }, { QUAL_READ, "reads", qual_desc, "descriptor" }, { QUAL_READ, "r", qual_desc, "descriptor" }, @@ -444,12 +441,6 @@ qual_signal(const char *s, int bitflag, int not) return -1; } -static int -qual_fault(const char *s, int bitflag, int not) -{ - return -1; -} - static int qual_desc(const char *s, int bitflag, int not) {