From fe299f0ce156798e96e2d58b9826eccf2e3cf0dc Mon Sep 17 00:00:00 2001 From: Justin Seyster Date: Thu, 28 Oct 2010 15:36:26 -0400 Subject: [PATCH] Added helpful note about noinstrument to hello.c example. --- workspace/hello.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- 2.34.1