[PATCH 1/5] Duplicate get_scno into identical get_scno_on_sysenter, get_scno_on_sysexit

Dmitry V. Levin ldv at altlinux.org
Tue Aug 23 18:50:16 UTC 2011


On Mon, Aug 22, 2011 at 12:24:04PM +0200, Denys Vlasenko wrote:
> On Mon, 2011-08-22 at 12:21 +0200, Denys Vlasenko wrote:
> > 1. Duplicate get_scno into identical get_scno_on_sysenter,
> > get_scno_on_sysexit functions. Call them in syscall enter and syscall
> > exit, correspondingly.
> 
> diff -d -urpN strace.0/defs.h strace.1/defs.h
> --- strace.0/defs.h	2011-08-21 18:10:51.000000000 +0200
> +++ strace.1/defs.h	2011-08-22 03:18:10.723934620 +0200
> @@ -586,7 +586,7 @@ extern void droptcb(struct tcb *);
>  extern void set_sortby(const char *);
>  extern void set_overhead(int);
>  extern void qualify(const char *);
> -extern int get_scno(struct tcb *);
> +extern int get_scno_on_sysenter(struct tcb *);

Looks like this declaration could be wrapped with ifdef USE_PROCFS,
and the function itself could be defined static in !USE_PROCFS case.


-- 
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20110823/1be9bcdc/attachment.bin>


More information about the Strace-devel mailing list