[lkml]   [2006]   [Sep]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH] Linux Kernel Markers

    S. P. Prasanna wrote:
    > Some more coplicated method.
    > How about inserting a (instruction size) number of breakpoints and
    > wait untill all the threads gets scheduled atleast once (so that
    > threads would hit the breakpoint, if their IPs are in the middle of
    > instruction we want to replace with jump) and then replace with
    > jump instruction.

    I think there is no need to insert so many breakpoints.
    Instead of that, you merely wait that all the threads which are
    running on each processors at that time gets scheduled, if the kernel
    is *NOT* preemptive.

    If the kernel is preemptive, some threads might sleep on the target
    address. In this case, we can use freeze_processes() to ensure safety.
    This idea was proposed by Ingo.

    Masami HIRAMATSU
    2nd Research Dept.
    Hitachi, Ltd., Systems Development Laboratory

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2006-09-20 13:03    [W:0.024 / U:13.508 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site