Re: [Crash-utility] [PATCH] arm64: exclude mapping symbols in modules

2016-10-11 Thread AKASHI Takahiro
On Tue, Oct 11, 2016 at 10:57:37AM +0900, AKASHI Takahiro wrote: > Dave, > > On Fri, Oct 07, 2016 at 11:02:01AM -0400, Dave Anderson wrote: > > > > - Original Message - > > > Dave, > > > > > > > > > > > Now, this sample patch doesn't deal with branch instructions other than > > > >

Re: [Crash-utility] [PATCH] arm64: exclude mapping symbols in modules

2016-10-10 Thread AKASHI Takahiro
Dave, On Fri, Oct 07, 2016 at 11:02:01AM -0400, Dave Anderson wrote: > > - Original Message - > > Dave, > > > > > > > > Now, this sample patch doesn't deal with branch instructions other than > > > "bl", > > > so perhaps it could just check whether the last argument in the > > >

Re: [Crash-utility] [PATCH] arm64: exclude mapping symbols in modules

2016-10-07 Thread Dave Anderson
- Original Message - > Dave, > > > > > Now, this sample patch doesn't deal with branch instructions other than > > "bl", > > so perhaps it could just check whether the last argument in the instruction > > line is a translatable address. > > > > On the other hand, for the PLT veneer

Re: [Crash-utility] [PATCH] arm64: exclude mapping symbols in modules

2016-10-07 Thread AKASHI Takahiro
Dave, On Thu, Oct 06, 2016 at 04:35:42PM -0400, Dave Anderson wrote: > > Hi Akashi, > > I was playing around with this, and noted that if a module's debuginfo data > is not > loaded into a crash session with the "mod" command, branch instruction > targets > that are within the module space

Re: [Crash-utility] [PATCH] arm64: exclude mapping symbols in modules

2016-10-06 Thread Dave Anderson
Hi Akashi, I was playing around with this, and noted that if a module's debuginfo data is not loaded into a crash session with the "mod" command, branch instruction targets that are within the module space are not translated. For example, note the handful of "bl" instructions with module

Re: [Crash-utility] [PATCH] arm64: exclude mapping symbols in modules

2016-10-06 Thread Dave Anderson
- Original Message - > Dave, > > One question. > ... > > On arm64, when KASLR is enabled, a function call between a module and > the kernel will be done via a veneer (PLT) if the displacement is more > than +/-128MB. So disassembled code looks a bit useless: > > ===8<=== > crash> mod

Re: [Crash-utility] [PATCH] arm64: exclude mapping symbols in modules

2016-10-05 Thread AKASHI Takahiro
Dave, One question. On Tue, Oct 04, 2016 at 11:00:16AM -0400, Dave Anderson wrote: > > > - Original Message - > > If some module has been inserted, crash util complains about > > module symbols: > > ... > > please wait... (gathering module symbol data) > > crash:

Re: [Crash-utility] [PATCH] arm64: exclude mapping symbols in modules

2016-10-04 Thread Dave Anderson
- Original Message - > If some module has been inserted, crash util complains about > module symbols: > ... > please wait... (gathering module symbol data) > crash: store_module_symbols_v2: total: 15 mcnt: 16 > and end up with stopping. > > This patch excludes mapping