lkml.org 
[lkml]   [2015]   [May]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 07/10] uprobes/x86: Introduce arch_uretprobe_is_alive()
    Hi Oleg,

    On Monday 04 May 2015 06:19 PM, Oleg Nesterov wrote:
    > +bool __weak arch_uretprobe_is_alive(struct arch_uretprobe *auret, struct pt_regs *regs)
    > +{
    > + return true;
    > +}

    IIUC, then this function should return false when both auret and regs
    are corresponding to same retprobe, else we need to return true, right?

    If that is the case, then should n't following work for all the cases:

    return sp != auret->sp;

    ~Pratyush



    \
     
     \ /
      Last update: 2015-05-18 14:41    [W:2.357 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site