Bug 29083 - The caller-callee view from the "gprofng display text" tool changes alignment
Summary: The caller-callee view from the "gprofng display text" tool changes alignment
Status: ASSIGNED
Alias: None
Product: binutils
Classification: Unclassified
Component: gprofng (show other bugs)
Version: 2.39
: P3 minor
Target Milestone: ---
Assignee: Vladimir Mezentsev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-04-22 04:11 UTC by Ruud van der Pas
Modified: 2022-07-22 13:53 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments
The attachment contains a directory that shows the problem (5.30 MB, application/x-gzip)
2022-04-22 04:11 UTC, Ruud van der Pas
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ruud van der Pas 2022-04-22 04:11:04 UTC
Created attachment 14077 [details]
The attachment contains a directory that shows the problem

The caller-callee view from "gprofng display text" changes the alignment for the last two columns half way the output and shifts the numbers to the right by one position.

I attach two experiment directories and a run.sh script that shows the problem. Sample output is also included in file run.res.

Both experiment directories are needed to reproduce the problem.

In file run.res, you can see the change. In the fragment below, I show the output for 4 functions. Note the change under "Attr. IPC" for the 3-rd function drand48. As the 4-th block shows, this shift persists from there on.

Name               Attr.     Attr. CPU  Attr.         Attr.         Attr.  Attr.
                   Total     Cycles     Instructions  Last-Level    IPC    CPI
                   CPU sec.   sec.      Executed      Cache Misses
 drand48           0.090     0.042        448140353          0      4.667  0.214
*erand48_r         0.060     0.042        416130352          0      4.333  0.231
 __drand48_iterate 0.030     0.            32010001          0      0.     0.

Name               Attr.     Attr. CPU  Attr.         Attr.         Attr.  Attr.
                   Total     Cycles     Instructions  Last-Level    IPC    CPI
                   CPU sec.   sec.      Executed      Cache Misses
 erand48_r         0.030     0.            32010001          0      0.     0.
*__drand48_iterate 0.030     0.            32010001          0      0.     0.

Name               Attr.     Attr. CPU  Attr.         Attr.         Attr.   Attr.
                   Total     Cycles     Instructions  Last-Level    IPC     CPI
                   CPU sec.   sec.      Executed      Cache Misses
 init_data         0.110     0.056        832260686          0       6.500  0.154
*drand48           0.020     0.014        384120333          0      12.000  0.083
 erand48_r         0.090     0.042        448140353          0       4.667  0.214

Name               Attr.     Attr. CPU  Attr.         Attr.         Attr.   Attr.
                   Total     Cycles     Instructions  Last-Level    IPC     CPI
                   CPU sec.   sec.      Executed      Cache Misses
 <Total>           0.180     0.140        896280720     200211       2.800  0.357
*__libc_start_main 0.        0.                   0          0       0.     0.
 main              0.180     0.140        896280720     200211       2.800  0.357