From 23489af038771da85d5443fd822dcae4699acf03 Mon Sep 17 00:00:00 2001 From: Jim Gauld Date: Wed, 4 Nov 2020 17:22:34 -0500 Subject: [PATCH] Increase field widths of PID for schedtop This increases field width of TID, PID, and PPID to 7 wide for schedtop engineering tool. Newer systems support larger PIDs. Change-Id: I706b60d83e8ce341a7d07c4c067a74e7049acdad Closes-Bug: 1902954 Signed-off-by: Jim Gauld --- monitor-tools/scripts/schedtop | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/monitor-tools/scripts/schedtop b/monitor-tools/scripts/schedtop index a170040..99776a7 100755 --- a/monitor-tools/scripts/schedtop +++ b/monitor-tools/scripts/schedtop @@ -361,7 +361,7 @@ REPEAT_LOOP: for (my $repeat=1; $repeat <= $::arg_repeat; $repeat++) { # Build up output line by specific area my $L = (); $L = ''; - $L .= sprintf "%6s %6s %6s ", "TID", "PID", "PPID"; + $L .= sprintf "%7s %7s %7s ", "TID", "PID", "PPID"; if ($::opt_P{$::P_ps} != $::P_none) { $L .= sprintf "%1s %2s %*s %2s %3s %4s ", "S", "P", $w_aff, "AFF", "PO", "NI", "PR"; @@ -406,7 +406,7 @@ REPEAT_LOOP: for (my $repeat=1; $repeat <= $::arg_repeat; $repeat++) { # Build up output line by specific area $L = ''; - $L .= sprintf "%6d %6d %6d ", + $L .= sprintf "%7d %7d %7d ", $tid, $::D_task{$tid}{'pid'}, $::D_task{$tid}{'ppid'}; if ($::opt_P{$::P_ps} != $::P_none) { $L .= sprintf "%1s %2d %*s %2s %3d %4d ",