Crash has some support for per-cpu variables, but it really only works for static variables. My idea is that you should be able to take a per-cpu pointer and see the formatted data. The syntax should allow to specify a CPU or do it for all:

crash> percpu $CPU <type_name> <address>
crash> percpu -a <type_name> <address>

It should also be usable with static variables:

crash> percpu -a <variable_name>

Looking for mad skills in:

crash coredump

This project is part of:

Hack Week 10

Activity

  • about 6 years ago: ptesarik added keyword "coredump" to crash utility: add "percpu" command
  • about 6 years ago: ptesarik added keyword "crash" to crash utility: add "percpu" command
  • about 6 years ago: ptesarik started crash utility: add "percpu" command
  • about 6 years ago: ptesarik originated crash utility: add "percpu" command
  • Show History

    Comments

    • ptesarik
      about 6 years ago by ptesarik | Reply

      This is finished. Upstream doesn't like adding new commands, so it may be re-implemented as options to existing commands instead.

    • ptesarik
      about 2 years ago by ptesarik | Reply

      Accepted as address syntax enhancement (denoted with a ':').

    Similar Projects

    Kernel live dump by mkoutny

    There is possibility to run crash on live syste...