From: Justin Seyster Date: Thu, 28 Oct 2010 19:36:26 +0000 (-0400) Subject: Added helpful note about noinstrument to hello.c example. X-Git-Tag: release-v1.0~3 X-Git-Url: https://git.fsl.cs.stonybrook.edu/?a=commitdiff_plain;h=fe299f0ce156798e96e2d58b9826eccf2e3cf0dc;p=interaspect.git Added helpful note about noinstrument to hello.c example. --- diff --git a/workspace/hello.c b/workspace/hello.c index bd765ee..62f3dc4 100644 --- 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;