hc
2024-05-14 bedbef8ad3e75a304af6361af235302bcc61d06b
kernel/tools/perf/scripts/perl/rw-by-pid.pl
....@@ -1,6 +1,6 @@
11 #!/usr/bin/perl -w
2
+# SPDX-License-Identifier: GPL-2.0-only
23 # (c) 2009, Tom Zanussi <tzanussi@gmail.com>
3
-# Licensed under the terms of the GNU GPL License version 2
44
55 # Display r/w activity for all processes
66
....@@ -24,7 +24,7 @@
2424 sub syscalls::sys_exit_read
2525 {
2626 my ($event_name, $context, $common_cpu, $common_secs, $common_nsecs,
27
- $common_pid, $common_comm,
27
+ $common_pid, $common_comm, $common_callchain,
2828 $nr, $ret) = @_;
2929
3030 if ($ret > 0) {
....@@ -40,7 +40,7 @@
4040 sub syscalls::sys_enter_read
4141 {
4242 my ($event_name, $context, $common_cpu, $common_secs, $common_nsecs,
43
- $common_pid, $common_comm,
43
+ $common_pid, $common_comm, $common_callchain,
4444 $nr, $fd, $buf, $count) = @_;
4545
4646 $reads{$common_pid}{bytes_requested} += $count;
....@@ -51,7 +51,7 @@
5151 sub syscalls::sys_exit_write
5252 {
5353 my ($event_name, $context, $common_cpu, $common_secs, $common_nsecs,
54
- $common_pid, $common_comm,
54
+ $common_pid, $common_comm, $common_callchain,
5555 $nr, $ret) = @_;
5656
5757 if ($ret <= 0) {
....@@ -62,7 +62,7 @@
6262 sub syscalls::sys_enter_write
6363 {
6464 my ($event_name, $context, $common_cpu, $common_secs, $common_nsecs,
65
- $common_pid, $common_comm,
65
+ $common_pid, $common_comm, $common_callchain,
6666 $nr, $fd, $buf, $count) = @_;
6767
6868 $writes{$common_pid}{bytes_written} += $count;
....@@ -178,7 +178,7 @@
178178 sub trace_unhandled
179179 {
180180 my ($event_name, $context, $common_cpu, $common_secs, $common_nsecs,
181
- $common_pid, $common_comm) = @_;
181
+ $common_pid, $common_comm, $common_callchain) = @_;
182182
183183 $unhandled{$event_name}++;
184184 }