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

Attachment: signature.asc
Description: PGP signature

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Strace-devel mailing list
Strace-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/strace-devel

Reply via email to