crash-utility / crash

Linux kernel crash utility
https://crash-utility.github.io
837 stars 275 forks source link

how to show text symbols of command output #112

Open yangxingwu opened 2 years ago

yangxingwu commented 2 years ago

It will be helpful if crash could show the corresponding symbols of command output

for example

crash> list packet_offload.list  -H offload_base -s packet_offload
ffffffff81b41bc0
struct packet_offload {
  type = 8,
  priority = 0,
  callbacks = {
    gso_segment = 0xffffffff816155b0 <inet_gso_segment>,
    gro_receive = 0xffffffff816159a0 <inet_gro_receive>,
    gro_complete = 0xffffffff816148c0 <inet_gro_complete>
  },
  list = {
    next = 0xffffffff81b43b40 <ipv6_packet_offload+32>,
    prev = 0xffffffff81b3f0e0 <offload_base>
  }
}

But I can NOT get the symbols when running the same CLI on my own server:

crash> list packet_offload.list  -H offload_base -s packet_offload
ffffffff81b41bc0
struct packet_offload {
  type = 8,
  priority = 0,
  callbacks = {
    gso_segment = 0xffffffff816155b0,
    gro_receive = 0xffffffff816159a0,
    gro_complete = 0xffffffff816148c0
  },
  list = {
    next = 0xffffffff81b43b40,
    prev = 0xffffffff81b3f0e0
  }
}
k-hagio commented 2 years ago

Not reproducible at my end. What is the crash version, kernel version, architecture and distribution?

crash> list packet_offload.list -H offload_base -s packet_offload
ffffffffae02a8e0
struct packet_offload {
  type = 8,
  priority = 0,
  callbacks = {
    gso_segment = 0xffffffffad06ca80 <inet_gso_segment>,
    gro_receive = 0xffffffffad06b360 <inet_gro_receive>,
    gro_complete = 0xffffffffad06b6e0 <inet_gro_complete>
  },
  list = {
    next = 0xffffffffae02c100 <ipv6_packet_offload+32>,
    prev = 0xffffffffae028300 <offload_base>
  }
}
...