lkml.org 
[lkml]   [2012]   [Mar]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] kdb: Add message about CONFIG_DEBUG_RODATA on failure to install breakpoint

On 03/20/2012 04:55 PM, Jason Wessel wrote:
>

> Obviously we are not going to go down the horrible hack route, so I
> thought I might look at how the kprobe implementation works, because
> they do deal with read-only pages. They created a function called
> text_poke() that is called from arch_arm_probe().
>
> It might be possible to take a short cut and use the
> arch_arm_probe() directly. Ultimately I would like to consider just
> using kprobes instead for things like single stepping etc..., but it
> still has a few problems with atomic reservations. This work had
> been shelved in back 2010, in favor of merging kdb. I am not sure
> if anyone wants to take a look at it, but I do think it might
> warrant some experimentation.


To follow up on this and move to closure, I did some investigation and
concluded it is possible to use the kprobes API to make use of the
text_poke() function.

I sent a patch series out for review with the implementation.

https://lkml.org/lkml/2012/3/21/375

Cheers,
Jason.



\
 
 \ /
  Last update: 2012-03-21 19:05    [W:0.037 / U:1.032 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site