Commit Graph

13 Commits

Author SHA1 Message Date
Eugene Syromyatnikov
d86b6bc773 Unify capitalisation of (c) in copyright notices 2017-05-26 19:43:11 +00:00
Damien Profeta
49f099f9c0 strace-graph: handle pid looping
* strace-graph: On long running process or heavily forking one (like
compilation), it can happen that a parent get 2 different children with
the same pid.  By tracking the currently runnig pid and adding the start
timestamp to the pid, the graph can now handle that case.

Closes: https://github.com/strace/strace/pull/7
2017-03-16 14:45:18 +00:00
Keith Owens
320fb41682 strace-graph: print the pid in the graph
* strace-graph: Prefix each command with its pid.
2016-02-05 00:41:23 +00:00
Keith Owens
7e0ba4bdcc strace-graph: cope with clone immediately followed by exit
* strace-graph: A clone() followed by exit() with no intervening fork
or execve resulted in the new pid having no seq key.  That breaks when
trying to use seq as an array reference.  Ensure that clone populates
the new pid with an empty seq entry.
2016-02-05 00:41:23 +00:00
Keith Owens
ef445b5daf strace-graph: handle recent strace output
* strace-graph: Fix regex for --SIG.  Ignore '+++ exited with <n> +++'
lines.  Handle exit_group syscall as well as _exit.
2016-02-05 00:41:23 +00:00
Keith Owens
dbc1ffb2a4 strace-graph: handle strace -T
* strace-graph: Ignore extra ' <time.spent>' field added by strace -T.
2016-02-05 00:41:23 +00:00
Keith Owens
a0bc25f085 strace-graph: use "strict" and "warnings" pragmas
* strace-graph: Set "use strict" and "use warnings" options.  Fix errors
detected by strict/warnings.  $result is really a string, it can be "-1"
followed by an error text.
2016-02-05 00:41:23 +00:00
Denys Vlasenko
a6d91ded3f Tidy up includes and copyright notices, fix indentation
The files not mentioned in changelog below had only
copyright notices fixes and indentation fixes.

* defs.h: Include <stdint.h> and <inttypes.h>.
* file.c: Do not include <inttypes.h>.
Move struct kernel_dirent declaration below top include block.
* block.c: Do not include <stdint.h> and <inttypes.h>.
* quota.c: Likewise.
* desc.c: Likewise.
* signal.c: Likewise.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2012-03-16 12:02:22 +01:00
414fe7d4d2 Cleanup trailing whitespaces and indentation that uses spaces before tabs
Correct spacing to fix warnings reported by
git diff --check 4b825dc642 HEAD

Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
2009-07-08 14:57:27 +00:00
Denys Vlasenko
402eeb6d1f trailing whitespace removal, no code changes 2009-01-02 13:03:44 +00:00
Roland McGrath
ec407e3b56 2005-11-02 Michal Marek <mmarek@suse.cz>
* strace-graph (handle_trace): follow clone() and vfork() calls.
2005-12-02 04:27:26 +00:00
Wichert Akkerman
7b27ba0673 Update strace-graph copyright to BSD 1999-08-30 23:26:53 +00:00
Wichert Akkerman
9ce1a63eb2 Catching up on my mail-backlog, see ChangeLog for details 1999-08-29 23:15:07 +00:00