[PATCH v9 02/15] Add macros for checking QUAL_* flags

Dmitry V. Levin ldv at altlinux.org
Thu Aug 24 19:27:22 UTC 2017


On Thu, Aug 24, 2017 at 06:19:40PM +0700, Nikolay Marchuk wrote:
> * defs.h (QUAL_READ, QUAL_WRITE): Change description.
> (traced, raw, inject, dump_read, dump_write): Add macros for checking
> QUAL_TRACE, QUAL_RAW, QUAL_INJECT, QUAL_READ, QUAL_WRITE.
> * syscall.c (syscall_entering_trace, syscall_exiting_trace): Use new macros.
> ---
>  defs.h    |  9 +++++++--
>  syscall.c | 13 +++++--------
>  2 files changed, 12 insertions(+), 10 deletions(-)
> 
> diff --git a/defs.h b/defs.h
> index 92cde26e..87f831f1 100644
> --- a/defs.h
> +++ b/defs.h
> @@ -254,16 +254,21 @@ struct tcb {
>  #define QUAL_RAW	0x008	/* print all args in hex for this syscall */
>  #define QUAL_INJECT	0x010	/* tamper with this system call on purpose */
>  #define QUAL_SIGNAL	0x100	/* report events with this signal */
> -#define QUAL_READ	0x200	/* dump data read from this file descriptor */
> -#define QUAL_WRITE	0x400	/* dump data written to this file descriptor */
> +#define QUAL_READ	0x200	/* dump data read in this syscall */
> +#define QUAL_WRITE	0x400	/* dump data written in this syscall */

QUAL_SIGNAL, QUAL_READ, and QUAL_WRITE are unused since commit v4.15~26.
I'm going to remove them first, feel free to re-introduce them later with
a different meaning.


-- 
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20170824/710e68e5/attachment.bin>


More information about the Strace-devel mailing list