Feature Request: Process Lineage in Filenames.

Ralph Corderoy ralph at inputplus.co.uk
Fri Mar 3 23:54:31 UTC 2017


Hi,

Second request.  I had a bunch of filename.pid outputs from -ff the
other day and to better understand what occurred, I examined and renamed
them to show their ancestry.

    1000.man
    1008.man-preconv
    1009.man-tbl
    1010.man-nroff
    1011.man-col
    1013.man-nroff-locale
    1016.man-nroff-groff
    1018.man-nroff-groff-troff
    1019.man-nroff-groff-grotty

I was thinking something similar could happen automatically.  Not using
the name of the program execve()'d, because that comes later, but a list
of PIDs starting with the ancestor.  So

    strace -o foo -fff /usr/bin/foo

might produce

    foo.100

and as that forks

    foo.100-102

and forks again

    foo.100-102-103

foo.100-109 would be 102's sibling.

It would make it that bit easier when grep-ing through them all, etc.,
to interpret the results.

-- 
Cheers, Ralph.
https://plus.google.com/+RalphCorderoy




More information about the Strace-devel mailing list