lkml.org 
[lkml]   [2006]   [Aug]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    SubjectRe: [PATCH 2/3] Kprobes: Define retval helper
    From
    Date
    On Wed, 2006-08-09 at 15:49 +0530, Ananth N Mavinakayanahalli wrote:
    > Updated patch ...
    >
    > Add the "return_value" macro that just extracts the return value given
    > the pt_regs. Useful in situations such as while using function-return
    > probes.

    return_value definition for s390 see below.

    --
    blue skies,
    Martin.

    Martin Schwidefsky
    Linux for zSeries Development & Services
    IBM Deutschland Entwicklung GmbH

    "Reality continues to ruin my life." - Calvin.

    ---

    diff -urpN linux-2.6.18-rc3/include/asm-s390/ptrace.h linux-2.6.18-s390/include/asm-s390/ptrace.h
    --- linux-2.6.18-rc3/include/asm-s390/ptrace.h 2006-06-29 12:47:32.000000000 +0200
    +++ linux-2.6.18-s390/include/asm-s390/ptrace.h 2006-08-09 12:25:23.000000000 +0200
    @@ -472,6 +472,7 @@ struct user_regs_struct

    #define user_mode(regs) (((regs)->psw.mask & PSW_MASK_PSTATE) != 0)
    #define instruction_pointer(regs) ((regs)->psw.addr & PSW_ADDR_INSN)
    +#define return_value(regs)((regs)->gprs[2])
    #define profile_pc(regs) instruction_pointer(regs)
    extern void show_regs(struct pt_regs * regs);
    #endif

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2006-08-09 12:31    [W:0.022 / U:29.808 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site