.. | .. |
---|
1 | 1 | #!/usr/bin/perl -w |
---|
| 2 | +# SPDX-License-Identifier: GPL-2.0-only |
---|
2 | 3 | # (c) 2009, Tom Zanussi <tzanussi@gmail.com> |
---|
3 | | -# Licensed under the terms of the GNU GPL License version 2 |
---|
4 | 4 | |
---|
5 | 5 | # Display r/w activity for files read/written to for a given program |
---|
6 | 6 | |
---|
.. | .. |
---|
28 | 28 | sub syscalls::sys_enter_read |
---|
29 | 29 | { |
---|
30 | 30 | my ($event_name, $context, $common_cpu, $common_secs, $common_nsecs, |
---|
31 | | - $common_pid, $common_comm, $nr, $fd, $buf, $count) = @_; |
---|
| 31 | + $common_pid, $common_comm, $common_callchain, $nr, $fd, $buf, $count) = @_; |
---|
32 | 32 | |
---|
33 | 33 | if ($common_comm eq $for_comm) { |
---|
34 | 34 | $reads{$fd}{bytes_requested} += $count; |
---|
.. | .. |
---|
39 | 39 | sub syscalls::sys_enter_write |
---|
40 | 40 | { |
---|
41 | 41 | my ($event_name, $context, $common_cpu, $common_secs, $common_nsecs, |
---|
42 | | - $common_pid, $common_comm, $nr, $fd, $buf, $count) = @_; |
---|
| 42 | + $common_pid, $common_comm, $common_callchain, $nr, $fd, $buf, $count) = @_; |
---|
43 | 43 | |
---|
44 | 44 | if ($common_comm eq $for_comm) { |
---|
45 | 45 | $writes{$fd}{bytes_written} += $count; |
---|
.. | .. |
---|
98 | 98 | sub trace_unhandled |
---|
99 | 99 | { |
---|
100 | 100 | my ($event_name, $context, $common_cpu, $common_secs, $common_nsecs, |
---|
101 | | - $common_pid, $common_comm) = @_; |
---|
| 101 | + $common_pid, $common_comm, $common_callchain) = @_; |
---|
102 | 102 | |
---|
103 | 103 | $unhandled{$event_name}++; |
---|
104 | 104 | } |
---|