Page MenuHomeFreeBSD

Remove spurious ABI tags from kdump output.
ClosedPublic

Authored by jhb on Aug 6 2018, 4:58 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mar 7 2024, 7:59 PM
Unknown Object (File)
Dec 3 2023, 3:13 PM
Unknown Object (File)
Nov 22 2023, 11:31 AM
Unknown Object (File)
Oct 20 2023, 10:40 AM
Unknown Object (File)
Oct 19 2023, 6:21 PM
Unknown Object (File)
Oct 3 2023, 7:12 PM
Unknown Object (File)
Aug 29 2023, 3:33 AM
Unknown Object (File)
Aug 17 2023, 5:52 PM
Subscribers

Details

Summary

The abidump routine output an ABI tag when -A was specified for records
that were not displayed due to type or pid filtering. To fix, split
the code to lookup the ABI from the code to display the ABI, move the
code to display the ABI into dumpheader(), and move dumpheader() later
in the main loop as a simplification. Previously dumpheader() was
called under a condition that repeated conditions made later in the
main loop.

Test Plan
  • ktrace ls
  • kdump -A -t n ls

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kib added inline comments.
usr.bin/kdump/kdump.c
697 ↗(On Diff #46346)

if (abiflag != 0) {

713 ↗(On Diff #46346)

!= 0 as well.

718 ↗(On Diff #46346)

BTW, is this for alignment ? Would it better to print to spaces instead ?

This revision is now accepted and ready to land.Aug 6 2018, 9:52 PM
usr.bin/kdump/kdump.c
697 ↗(On Diff #46346)

The rest of this function uses the current style. I could make it a bool as a followup perhaps. For tests that are in fact booleans the != 0 seems overly verbose.

718 ↗(On Diff #46346)

Possibly, or '??'

This revision was automatically updated to reflect the committed changes.