public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* multip register_uprobe
@ 2007-07-06  8:03 Wenji Huang
  2007-07-06 12:35 ` Srikar Dronamraju
  0 siblings, 1 reply; 5+ messages in thread
From: Wenji Huang @ 2007-07-06  8:03 UTC (permalink / raw)
  To: systemtap

Hi,

   I am creating some test scripts based on sarikar's framework.
  
   There is one problem about register multiple times.
       .................
        probes->vaddr = vaddr;
        probes->pid = pid;
        probes->handler = handler;
        for (i=0; i < 3; i++) {
             ret = register_uprobe(probes);
             if (ret!=0)  //of course, the first time should succeed and 
will failed in second time, ret = -16
               {
 I tried several possibilities:
                 * return ret; //RESULT: the module can't be removed, 
the probed process will hang, can't be killed/continued
                 * return 0; //RESULT: same as above
                 * unregister_uprobe(probes);kfree(probes);break; 
//RESULT: same as above
                 * kfree(probes);break; //RESULT: the module can be 
removed, the probed process will hang, can't be killed/continued
               }
         }
        return 0;
        .................

  But, no problem in "register once and unregister multiple times".  

  Environment:
    kernel: 2.6.21
    utrace: http://people.redhat.com/roland/utrace/2.6.21/
    uprobe: mail by Jim, on 2007/05/26
    All the tests in srikar's testsuite passed in the box.

    Any analysis? or need to update utrace/uprobe? Is there any website 
or cvs to get the resource?

Regards,  
-- 
 ***Wenji Huang
*   

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

end of thread, other threads:[~2007-07-09  8:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-06  8:03 multip register_uprobe Wenji Huang
2007-07-06 12:35 ` Srikar Dronamraju
2007-07-06 17:37   ` Jim Keniston
2007-07-06 18:50     ` Jim Keniston
2007-07-09  8:19       ` Wenji Huang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).