Added helpful note about noinstrument to hello.c example.
authorJustin Seyster <jseyster@cs.sunysb.edu>
Thu, 28 Oct 2010 19:36:26 +0000 (15:36 -0400)
committerJustin Seyster <jseyster@cs.sunysb.edu>
Thu, 28 Oct 2010 19:36:26 +0000 (15:36 -0400)
workspace/hello.c

index bd765ee1e0f9edaf4735728bcc45aaa5c8377ef5..62f3dc4c785a81ada91e66b487450b4fbd9ff4df 100644 (file)
@@ -27,7 +27,9 @@ static void join_on_entry(struct aop_joinpoint *jp, void *data)
 
   name = aop_capture_function_name(jp);
 
-  /* Don't instrument the advice function itself! */
+  /* Don't instrument the advice function itself!  Instead of doing
+     this check here, you could make sure to mark your advice function
+     as __attribute__((noinstrument)).*/
   if (strcmp(name, ADVICE_NAME) == 0)
     return;