All of lore.kernel.org
 help / color / mirror / Atom feed
* (unknown), 
@ 2014-05-23  2:50 Wang, Yalin
  2014-05-23  2:51 ` how to creat watchpoint in kernel for data access debug Wang, Yalin
  0 siblings, 1 reply; 9+ messages in thread
From: Wang, Yalin @ 2014-05-23  2:50 UTC (permalink / raw)
  To: 'linux-mmc@vger.kernel.org',
	'linux-arch-owner@vger.kernel.org', 'Will Deacon'


Hi

I have a problems that I want create a watchpoint to monitor a data for
Debug in kernel , but I don't know how to do it ,
I try the kprobes , but seems it only support create .text section probe ,
Can't monitor data access ,  then  I try  perf_event_create to create a hardware 
Data watchpoint , it can work , but has a problem:
When the data access hit , I don't know how to bypass this time's watchpoint ,
This need simulate the data access  or step the break instructions in data abort 
Exception handler ,  seems kernel don't provide these for perf_event ..

I test this on ARM arch , 
My question is that how to create data watchpoint in kernel ?
It there some modules  have implemented this ?

Thanks


Sony Mobile Communications
Tel: My Number +18610323092
yalin.wang@sonymobile.com  (shall be a link, optional part)

sonymobile.com




^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2014-06-16 12:55 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-23  2:50 (unknown), Wang, Yalin
2014-05-23  2:51 ` how to creat watchpoint in kernel for data access debug Wang, Yalin
2014-05-23 13:45   ` Will Deacon
2014-05-24  3:48     ` Wang, Yalin
2014-06-03 16:45       ` Will Deacon
2014-06-04  3:05         ` Wang, Yalin
2014-06-04 18:01           ` Will Deacon
2014-06-05  3:40             ` Wang, Yalin
2014-06-16 12:55               ` Will Deacon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.