summaryrefslogtreecommitdiffstats
path: root/tools/lib/traceevent/plugin_sched_switch.c
diff options
context:
space:
mode:
authorTzvetomir Stoyanov (VMware) <tz.stoyanov@gmail.com>2018-08-08 14:02:47 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2018-08-13 15:21:13 -0300
commitcbc49b25b9cf26bf8c91169085be27382d945dd7 (patch)
tree9c3b781a91da01c04e3e196f4ea3e077005336bd /tools/lib/traceevent/plugin_sched_switch.c
parent096177a8b51937ba3004164f0366ef20656bb17a (diff)
downloadop-kernel-dev-cbc49b25b9cf26bf8c91169085be27382d945dd7.zip
op-kernel-dev-cbc49b25b9cf26bf8c91169085be27382d945dd7.tar.gz
tools lib traceevent, perf tools: Rename 'struct pevent_record' to 'struct tep_record'
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 'struct pevent_record' to 'struct tep_record'. 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/20180808180659.866021298@goodmis.org Signed-off-by: Steven Rostedt <rostedt@goodmis.org> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/lib/traceevent/plugin_sched_switch.c')
-rw-r--r--tools/lib/traceevent/plugin_sched_switch.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/lib/traceevent/plugin_sched_switch.c b/tools/lib/traceevent/plugin_sched_switch.c
index de90fb8..b72a52d 100644
--- a/tools/lib/traceevent/plugin_sched_switch.c
+++ b/tools/lib/traceevent/plugin_sched_switch.c
@@ -45,7 +45,7 @@ static void write_state(struct trace_seq *s, int val)
}
static void write_and_save_comm(struct format_field *field,
- struct pevent_record *record,
+ struct tep_record *record,
struct trace_seq *s, int pid)
{
const char *comm;
@@ -65,7 +65,7 @@ static void write_and_save_comm(struct format_field *field,
}
static int sched_wakeup_handler(struct trace_seq *s,
- struct pevent_record *record,
+ struct tep_record *record,
struct event_format *event, void *context)
{
struct format_field *field;
@@ -94,7 +94,7 @@ static int sched_wakeup_handler(struct trace_seq *s,
}
static int sched_switch_handler(struct trace_seq *s,
- struct pevent_record *record,
+ struct tep_record *record,
struct event_format *event, void *context)
{
struct format_field *field;
OpenPOWER on IntegriCloud