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

Attachment: pgp4dgjDjqEoy.pgp
Description: PGP signature

------------------------------------------------------------------------------
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
_______________________________________________
Strace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/strace-devel

Reply via email to