I must made some mistakes, step a) is not required.

Tried clean build 3 times this morning, both PERF_EVENTS and HAVE_HW_BREAKPOINT
are enabled initially on Flame. But without step a), I couldn't get
HAVE_HW_BREAKPOINT enabled last week.

Ting

----- Original Message -----
> From: "Ting-Yu Chou" <[email protected]>
> To: "Kyle Huey" <[email protected]>
> Cc: "dev-b2g" <[email protected]>
> Sent: Saturday, July 12, 2014 2:08:48 PM
> Subject: Re: [b2g] [Flame] Can use hardware watchpoint now
> 
> It seems HAVE_HW_BREAKPOINT depends on PERF_EVENTS, I will double check this
> on Monday. If
> it is, would it be ok to have the overhead in default build?
> 
> Ting
> 
> ----- 原始郵件 -----
> > 寄件者: "Kyle Huey" <[email protected]>
> > 收件者: "Ting-Yu Chou" <[email protected]>
> > 副本: "dev-b2g" <[email protected]>
> > 寄件備份: 2014 7 月 12 星期六 上午 12:32:09
> > 主旨: Re: [b2g] [Flame] Can use hardware watchpoint now
> > 
> > This is awesome!  Can we change the flame's default KConfig to have this
> > patch?
> > 
> > Great work.
> > 
> > - Kyle
> > 
> > On Thu, Jul 10, 2014 at 8:48 PM, Ting-Yu Chou <[email protected]> wrote:
> > > As of bug 1035645 landing, gdb hardware watchpoint will be working on
> > > Flame
> > > with
> > > following steps:
> > >
> > >   a. Enable kernel HAVE_HW_BREAKPOINT
> > >      diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
> > >      index 9dd7949..04f3b99 100644
> > >      --- a/arch/arm/Kconfig
> > >      +++ b/arch/arm/Kconfig
> > >      @@ -29,7 +29,8 @@ config ARM
> > >              select HAVE_PERF_EVENTS
> > >              select PERF_USE_VMALLOC
> > >              select HAVE_REGS_AND_STACK_ACCESS_API
> > >      -       select HAVE_HW_BREAKPOINT if (PERF_EVENTS && (CPU_V6 ||
> > >      CPU_V6K || CPU_V7))
> > >      +#      select HAVE_HW_BREAKPOINT if (PERF_EVENTS && (CPU_V6 ||
> > >      CPU_V6K || CPU_V7))
> > >      +       select HAVE_HW_BREAKPOINT
> > >              select HAVE_C_RECORDMCOUNT
> > >              select HAVE_GENERIC_HARDIRQS
> > >              select HAVE_SPARSE_IRQ
> > >   b. Replace prebuilts/misc/android-arm/gdbserver/gdbserver by another
> > >   one
> > >   of at
> > >      least 7.4, for example, the one from linaro [1] or jimdb [2].
> > >   c. $ ./build.sh && ./flash.sh
> > >   d. $ export GDB=path/to/the/gdb/come/with/gdbserver; ./run-gdb.sh
> > >   e. (gdb) set can-use-hw-watchpoints 1
> > >
> > > I hope there's an easier way for a), but I haven't found it.
> > >
> > > [1]
> > > https://releases.linaro.org/13.10/components/toolchain/binaries/gcc-linaro-arm-linux-gnueabihf-4.8-2013.10_linux.tar.bz2
> > > [2] http://people.mozilla.org/~nchen/jimdb/jimdb-arm-linux_x64.tar.bz2
> > >
> > > Cheers,
> > > Ting
> > > _______________________________________________
> > > dev-b2g mailing list
> > > [email protected]
> > > https://lists.mozilla.org/listinfo/dev-b2g
> > 
> _______________________________________________
> dev-b2g mailing list
> [email protected]
> https://lists.mozilla.org/listinfo/dev-b2g
> 
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to