projects
/
interaspect.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ffaa514
)
Added helpful note about noinstrument to hello.c example.
author
Justin Seyster
<jseyster@cs.sunysb.edu>
Thu, 28 Oct 2010 19:36:26 +0000
(15:36 -0400)
committer
Justin Seyster
<jseyster@cs.sunysb.edu>
Thu, 28 Oct 2010 19:36:26 +0000
(15:36 -0400)
workspace/hello.c
patch
|
blob
|
history
diff --git
a/workspace/hello.c
b/workspace/hello.c
index bd765ee1e0f9edaf4735728bcc45aaa5c8377ef5..62f3dc4c785a81ada91e66b487450b4fbd9ff4df 100644
(file)
--- a/
workspace/hello.c
+++ b/
workspace/hello.c
@@
-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;