tools lib traceevent, perf tools: Rename pevent plugin related APIs
In order to make libtraceevent into a proper library, variables, data structures and functions require a unique prefix to prevent name space conflicts. That prefix will be "tep_" and not "pevent_". This changes the pevent plugin related API. Signed-off-by: Tzvetomir Stoyanov (VMware) <tz.stoyanov@gmail.com> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Yordan Karadzhov (VMware) <y.karadz@gmail.com> Cc: linux-trace-devel@vger.kernel.org Link: http://lkml.kernel.org/r/20180808180700.005287044@goodmis.org Signed-off-by: Steven Rostedt <rostedt@goodmis.org> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
committed by
Arnaldo Carvalho de Melo
parent
cbc49b25b9
commit
c32d52b464
@@ -88,7 +88,7 @@ struct event_handler {
|
||||
int id;
|
||||
const char *sys_name;
|
||||
const char *event_name;
|
||||
pevent_event_handler_func func;
|
||||
tep_event_handler_func func;
|
||||
void *context;
|
||||
};
|
||||
|
||||
@@ -6633,7 +6633,7 @@ static struct event_format *pevent_search_event(struct tep_handle *pevent, int i
|
||||
*/
|
||||
int pevent_register_event_handler(struct tep_handle *pevent, int id,
|
||||
const char *sys_name, const char *event_name,
|
||||
pevent_event_handler_func func, void *context)
|
||||
tep_event_handler_func func, void *context)
|
||||
{
|
||||
struct event_format *event;
|
||||
struct event_handler *handle;
|
||||
@@ -6682,7 +6682,7 @@ int pevent_register_event_handler(struct tep_handle *pevent, int id,
|
||||
|
||||
static int handle_matches(struct event_handler *handler, int id,
|
||||
const char *sys_name, const char *event_name,
|
||||
pevent_event_handler_func func, void *context)
|
||||
tep_event_handler_func func, void *context)
|
||||
{
|
||||
if (id >= 0 && id != handler->id)
|
||||
return 0;
|
||||
@@ -6717,7 +6717,7 @@ static int handle_matches(struct event_handler *handler, int id,
|
||||
*/
|
||||
int pevent_unregister_event_handler(struct tep_handle *pevent, int id,
|
||||
const char *sys_name, const char *event_name,
|
||||
pevent_event_handler_func func, void *context)
|
||||
tep_event_handler_func func, void *context)
|
||||
{
|
||||
struct event_format *event;
|
||||
struct event_handler *handle;
|
||||
|
||||
Reference in New Issue
Block a user