return pc;
}
-void aop_filter_entry_by_name(struct aop_pointcut *pc_function_entry,
- const char *advice_function_entry)
+/**
+ * Filter a function entry pointcut so it will contain the current
+ * function's entry join point only if the current function's name
+ * matches the specified name. This filter is a convenient way to
+ * target the entry point of a specific function for instrumentation.
+ * \param pc The function entry pointcut to filter. Function entry
+ * pointcuts are created with aop_match_function_entry().
+ * \param name The name to filter by.
+ */
+void aop_filter_entry_by_name(struct aop_pointcut *pc, const char *name)
{
- pc_function_entry->pc_entry.function_name = advice_function_entry;
+ pc->pc_entry.function_name = name;
}
/* Close Doxygen defgroup block. */
extern struct aop_dynval *aop_capture_in_param (struct aop_joinpoint *jp,
int param_index);
-extern void aop_filter_entry_by_name(struct aop_pointcut *pc_function_entry,
- const char *advice_function_entry);
+extern void aop_filter_entry_by_name(struct aop_pointcut *pc, const char *name);
extern struct aop_pointcut *aop_match_function_exit ();
extern void aop_filter_exit_by_return_type (struct aop_pointcut *pc,