mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
tools lib traceevent, perf tools: Rename pevent_register_* 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 APIs: pevent_register_comm, pevent_register_print_string Signed-off-by: Tzvetomir Stoyanov (VMware) <[email protected]> Cc: Andrew Morton <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Yordan Karadzhov (VMware) <[email protected]> Cc: [email protected] Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Steven Rostedt <[email protected]> Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
This commit is contained in:
parent
59c1baee25
commit
13a418904e
4 changed files with 11 additions and 11 deletions
|
|
@ -157,7 +157,7 @@ void parse_ftrace_printk(struct tep_handle *pevent,
|
|||
/* fmt still has a space, skip it */
|
||||
printk = strdup(fmt+1);
|
||||
line = strtok_r(NULL, "\n", &next);
|
||||
pevent_register_print_string(pevent, printk, addr);
|
||||
tep_register_print_string(pevent, printk, addr);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -172,7 +172,7 @@ void parse_saved_cmdline(struct tep_handle *pevent,
|
|||
line = strtok_r(file, "\n", &next);
|
||||
while (line) {
|
||||
sscanf(line, "%d %ms", &pid, &comm);
|
||||
pevent_register_comm(pevent, comm, pid);
|
||||
tep_register_comm(pevent, comm, pid);
|
||||
free(comm);
|
||||
line = strtok_r(NULL, "\n", &next);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue