[Crash-utility] [PATCH] Add eBPF program name to "bpf -p|-P" options output

2020-03-05 Thread 萩尾 一仁
"bpftool prog list" command displays eBPF program name if available. Also, the crash "bpf -m|-M" options display eBPF map name. But the "bpf -p|-P" options don't display its name. It would be useful in finding the program which we want to see. Signed-off-by: Kazuhito Hagio --- bpf.c | 12

Re: [Crash-utility] help debug number of CPU detect failure

2020-03-05 Thread Dave Anderson
> > I suspect that it's a problem with either the --kaslr offset and/or > > the phys_base value that you have used. > > Is there method to know or print kaslr & phy_base in a running Linux system? They are normally passed in the VMCOREINFO data that is contained in an ELF PT_NOTE in the

Re: [Crash-utility] help debug number of CPU detect failure

2020-03-05 Thread Santosh
On Wed, Mar 4, 2020 at 2:49 PM Dave Anderson wrote: > > > Hello List, > > > > I've a two ELF coredumps from two different HyperV VMs generated by this > > tool (https://github.com/Azure/azure-linux-utils/tree/master/vm2core). > > > > Crash works with one of these coredumps but do not work with

Re: [Crash-utility] help debug number of CPU detect failure

2020-03-05 Thread Santosh
On Thu, Mar 5, 2020 at 12:19 PM Santosh wrote: > > On Wed, Mar 4, 2020 at 2:49 PM Dave Anderson wrote: > > > > > Hello List, > > > > > > I've a two ELF coredumps from two different HyperV VMs generated by this > > > tool (https://github.com/Azure/azure-linux-utils/tree/master/vm2core). > > > > >

Re: [Crash-utility] help debug number of CPU detect failure

2020-03-05 Thread Dave Anderson
- Original Message - > > Is there method to know or print kaslr & phy_base in a running Linux > > system? > > Got it. > > crash> p vmcoreinfo_data+1600 > $12 = (unsigned char *) 0x90ff7cdc3640 >

Re: [Crash-utility] [PATCH] Add eBPF program name to "bpf -p|-P" options output

2020-03-05 Thread Dave Anderson
- Original Message - > "bpftool prog list" command displays eBPF program name if available. > Also, the crash "bpf -m|-M" options display eBPF map name. But the > "bpf -p|-P" options don't display its name. It would be useful in > finding the program which we want to see. Looks good

Re: [Crash-utility] help debug number of CPU detect failure

2020-03-05 Thread Santosh
On Thu, Mar 5, 2020 at 12:54 PM Dave Anderson wrote: > > > > I suspect that it's a problem with either the --kaslr offset and/or > > > the phys_base value that you have used. > > > > Is there method to know or print kaslr & phy_base in a running Linux system? > > They are normally passed in the

Re: [Crash-utility] help debug number of CPU detect failure

2020-03-05 Thread Santosh
On Thu, Mar 5, 2020 at 1:07 PM Santosh wrote: > > On Thu, Mar 5, 2020 at 12:54 PM Dave Anderson wrote: > > > > > > I suspect that it's a problem with either the --kaslr offset and/or > > > > the phys_base value that you have used. > > > > > > Is there method to know or print kaslr & phy_base in