on small terminals, irqtop shows "(null)" at startup
Benno Schulenberg <[email protected]>
| Newsgroups | org.kernel.vger.util-linux |
|---|---|
| Message-ID | <[email protected]> |
To reproduce, run `xterm -geometry 80x12 &`, and in that xterm
run `irqtop`. See that the table of IRQs is empty at first,
apart from the string "(null)" -- like this:
IRQ TOTAL DELTA NAME
(null)
After three seconds a list of IRQs appears.
Now open the window's menu (probably with Alt+Space) and choose
Resize. Then press the right arrow key in a steady rhythm of
twice per second. See that "(null)" gets shown almost constantly
at the start of the table.
Then reverse direction: keep pressing <Left> twice per second.
The "(null)" does not appear any more. Then reverse direction
again: pressing <Right> twice per second. The "(null)" will be
shown again as soon as you've reached a width you hadn't reached
before.
I can reproduce this on three similar 64-bit machines, but not
on an old 32-bit machine.
When using -S or -t2222 (which reduce the number of shown IRQs),
then the table appears right away. Other options have no effect.
Commenting out the call of scols_table_enable_maxout(table, 1)
allowed the table to appear straightaway on my default terminal,
which made it seem that something is going wrong in libsmartcols.
So I did an `export LIBSMARTCOLS_DEBUG=all` in the shell, but
irqtop produced zero debugging output. Only after adding a call
to scols_init_debug(0) in the main{} of irqtop, did it start
producing debugging output. But it is verbose, and I don't know
what I'm looking for, so I've attached the result of:
./irqtop -c disable 2>TRAIL
on an `xterm -geometry 80x12`, where I've pressed q as soon as
the table did appear after three full seconds.
Benno
TRAIL.gz
(application/gzip, 6.2 KB) - not displayed
OpenPGP_signature.asc
(application/pgp-signature, 840 B)
-----BEGIN PGP SIGNATURE----- wsF5BAABCAAjFiEEFo5vQpe/16ea/USWUUu+Lrjhlh8FAmfb5p4FAwAAAAAACgkQUUu+Lrjhlh8q LhAAuDrgwOfiudzlsDXZTG4HoTa+4C30DcfH9BHFNYyNFG6C33Kd+ZYIPgNFyigXEeVcs3ZgLoW9 hhG/Ty1MMOf4j7C9Dz/urePaQZ8Nxp3Pd0Rz2rvLA5LO3aybfeKyPMhR/Z+eTeOCZN71HhBZMBb3 n0dTBLAdH+DVIqzx5Vc2cNiqmgJI+kFSOv+skeIIViYYZylzmyQu0r3sY4+kS68OYamPf9ypAWkE B71Mf5AiZaIUz1ct/z6g97SoZzJ3QkGRzGxD4fcK3HOuNTBwtzoqn1h9vi3BxeH0Dn9dzxt5Z6n+ 7l0xP56FrkogZ9ZZoEhkI7PN+8cNLMQSy1ImNLYYSeMvFQiTBwU1G7u+hnmRY+mI1YnPn4no0h8T K/l8bPhvxotBo3A6AkVtWP0G/EXJqoBftwRAbE6yyW6f/sNd4FWxotFm7Nn8a3O5w5yLHryyidnu 4R9ID2X2DzAOMU1fJIuwf1uQlywYKJvVCaas1zirDQBVzOdSDjwYuAomE8avbZLae1xltlz2xhlJ ZW/M5gVRHSQyYqp3/umYav2C4oKrJ/e11vlUIc3itK24LtE2sOfcxZYH9lrjgYLUEvs6fBlXDqsq 0RAeXaZ/LKsAA7v1FDl+9vRBHcfG+xAR81+iEeyMSM5vGSzcqqk1KWO//yHAW8QUpq57UI2c8+QM LoU= =Iq7a -----END PGP SIGNATURE-----