about summary refs log tree commit homepage
path: root/script/mwrap-perl
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2023-01-11 01:12:48 +0000
committerEric Wong <mwrap-perl@80x24.org>2023-01-11 04:23:31 +0000
commit64a55ae0ba1d09ccda458eb895d849e7d38cab81 (patch)
tree10f5f5d99c49de5ba17277540a786a477f9e9c5c /script/mwrap-perl
parent86d350a3854af1a5a292972d4f70154e61ce5e80 (diff)
downloadmwrap-64a55ae0ba1d09ccda458eb895d849e7d38cab81.tar.gz
%p => PID expansion for dump_path + dump_csv
This makes it possible to dump per-PID files for processes which
fork.  `%p' matches what the Linux sys.kernel.core_pattern
sysctl understands.
Diffstat (limited to 'script/mwrap-perl')
-rw-r--r--script/mwrap-perl6
1 files changed, 6 insertions, 0 deletions
diff --git a/script/mwrap-perl b/script/mwrap-perl
index eb29176..371aee6 100644
--- a/script/mwrap-perl
+++ b/script/mwrap-perl
@@ -76,6 +76,10 @@ Dumps the output at exit to a given filename:
 
         total_bytes        call_count        location
 
+C<$FILENAME> may contain C<%p> where C<%p> is a placeholder for
+the PID being dumped.  No other use of C<%> is accepted, and
+multiple C<%> means all C<%> (including C<%p>) are handled as-is.
+
 =item dump_fd:$DESCRIPTOR
 
 As with dump_path, but dumps the output to a given file descriptor.
@@ -90,6 +94,8 @@ but is subject to change in future releases.
 C<dump_csv> without the C<:> may also be used in conjunction with
 C<dump_fd>, such as C<MWRAP=dump_fd:2,dump_csv>.
 
+Expands C<%p> to the PID in C<$FILENAME> as described for C<dump_path:>
+
 =back
 
 =head1 HTTP POST API