[PATCH] Optionally produce stats on syscall latency

2014-05-28 Thread Mark Hills
Time spent in system time is not useful where a syscall depends on some non-CPU resource, eg. typically open() or stat() to a network drive. This patch adds a new flag (-w) to produce a summary of the time difference between beginning and end of the system call (ie. latency) This functionality ha

[PATCH] Convert relative to absolute paths in printpathn

2014-05-28 Thread zubin . mithra
From: Zubin Mithra * util.c (print_abspath): New function that converts a relative to an absolute path. * util.c (get_tracee_cwd): New function that finds the current working directory of the tracee. * (printpathn): Use print_abspath to print out links if `-yy` flag is used. Signed-off-by:

Re: Pathnames followed by "..." when printed using printpathn

2014-05-28 Thread Zubin Mithra
Hey Dmitry, On Wed, May 28, 2014 at 10:01 PM, Dmitry V. Levin wrote: > On Wed, May 28, 2014 at 08:12:05PM +0530, Zubin Mithra wrote: >> Hello, >> >> >> (The current implementation is just a PoC and I haven't committed >> anything >> >> yet, I'll post a link to the commit as soon as I push it in.)

Re: Pathnames followed by "..." when printed using printpathn

2014-05-28 Thread Dmitry V. Levin
On Wed, May 28, 2014 at 05:53:16PM +0200, Philippe Ombredanne wrote: > On Wed, May 28, 2014 at 4:42 PM, Zubin Mithra wrote: > > I've added in the code for converting all paths that are printed via > > printpathn(hence, all paths via printpath too). Please find the code at [1]. > > The sample outpu

Re: Pathnames followed by "..." when printed using printpathn

2014-05-28 Thread Dmitry V. Levin
On Wed, May 28, 2014 at 08:12:05PM +0530, Zubin Mithra wrote: > Hello, > > >> (The current implementation is just a PoC and I haven't committed > anything > >> yet, I'll post a link to the commit as soon as I push it in.) > > > > This is your own repo, you can commit often! > > I've added in the

Re: Pathnames followed by "..." when printed using printpathn

2014-05-28 Thread Zubin Mithra
Hi, > printpathn is designed for printing paths, and paths cannot be longer than > MAXPATHLEN. Longer arguments would result to ENAMETOOLONG anyway, so > there is no need to print more than MAXPATHLEN. I did a few tests yesterday for fun and I got a surprising result for getcwd. I've written abo

Re: Pathnames followed by "..." when printed using printpathn

2014-05-28 Thread Dmitry V. Levin
On Tue, May 27, 2014 at 09:23:15AM +0530, Zubin Mithra wrote: > Hello everyone, > > Currently I'm working on a means by which I can convert relative paths to > absolute when displayed as system call arguments. Some sample output can be > seen here[1]. Please note that the arguments passed to "exec

Re: Pathnames followed by "..." when printed using printpathn

2014-05-28 Thread Philippe Ombredanne
On Wed, May 28, 2014 at 4:42 PM, Zubin Mithra wrote: > I've added in the code for converting all paths that are printed via > printpathn(hence, all paths via printpath too). Please find the code at [1]. > The sample output can be found here[2]. > [1] > https://github.com/eQu1NoX/strace/commit/b17a

[PATCH] Decode paths associated with file descriptors returned by syscalls

2014-05-28 Thread zubin . mithra
From: Zubin Mithra * Type of `show_fd_path` changed from `bool` to `unsigned int` to support the `-yy` flag. * util.c (returns_fd): New function that checks if the tcb refers to a function that returns a file descriptor. * (trace_syscall_exiting): Use returns_fd to determine whether tcp->u_

Re: [PATCH] Path decoding for system calls that return file descriptors implemented.

2014-05-28 Thread Zubin Mithra
Hi Dmitry, >> Yes, that is what I had in mind. "-y" would behave as it always had, >> while "-yy" would have decoding of return fds, path resolution of >> arguments etc. > > I understand your concerns, but the change just extends the number of > cases when file descriptors are decoded. I agree th

Re: [PATCH RFC] Summary of syscall latency

2014-05-28 Thread Dmitry V. Levin
On Tue, May 27, 2014 at 05:44:35PM +0100, Mark Hills wrote: > On Tue, 27 May 2014, Dmitry V. Levin wrote: > > > On Tue, May 20, 2014 at 10:26:11AM +0100, Mark Hills wrote: > > > Time spent in system time is not useful where a syscall depends on some > > > non-CPU resource, eg. typically open() or

Re: [PATCH] Path decoding for system calls that return file descriptors implemented.

2014-05-28 Thread Dmitry V. Levin
On Tue, May 27, 2014 at 06:32:29AM +0530, Zubin Mithra wrote: > On Tue, May 27, 2014 at 4:53 AM, Dmitry V. Levin wrote: > > On Mon, May 26, 2014 at 10:18:11PM +0530, [email protected] wrote: [...] > >> * Type of `show_fd_path` changed from `bool` to `unsigned int` to > >> support the `-yy`

Re: Pathnames followed by "..." when printed using printpathn

2014-05-28 Thread Zubin Mithra
Hello, >> (The current implementation is just a PoC and I haven't committed anything >> yet, I'll post a link to the commit as soon as I push it in.) > > This is your own repo, you can commit often! I've added in the code for converting all paths that are printed via printpathn(hence, all paths v

Surpreenda no Dia dos Namorados com muitas amostras e brindes.

2014-05-28 Thread ShopLuxo
Title: Dia dos Namorados - Shopluxo Respeitamos sua privacidade, caso não deseje mais receber nossas mensagens acesse este link