diff options
author | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2017-02-16 20:13:52 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2017-02-17 08:31:44 -0500 |
commit | 9c72fd0ff092526ea25c5a59d4a6ed94aeb4a66f (patch) | |
tree | e5d5d9f2e2cf0c606b1296c78de10db4902edd58 | |
parent | 4be92cf018c391c4ecc5fd091fae8c152de3692f (diff) |
tools lib traceevent: It's preempt not prempt
Fix the typo of the function name pevent_data_prempt_count()
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Fixes: c52d9e4e677b ("tools lib traceevent: Add retrieval of preempt count and latency flags")
Link: http://lkml.kernel.org/r/20170216201352.469c99de@grimm.local.home
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r-- | tools/lib/traceevent/event-parse.c | 4 | ||||
-rw-r--r-- | tools/lib/traceevent/event-parse.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tools/lib/traceevent/event-parse.c b/tools/lib/traceevent/event-parse.c index 14a4f623c1a5..32171310bf82 100644 --- a/tools/lib/traceevent/event-parse.c +++ b/tools/lib/traceevent/event-parse.c | |||
@@ -5204,13 +5204,13 @@ int pevent_data_pid(struct pevent *pevent, struct pevent_record *rec) | |||
5204 | } | 5204 | } |
5205 | 5205 | ||
5206 | /** | 5206 | /** |
5207 | * pevent_data_prempt_count - parse the preempt count from the record | 5207 | * pevent_data_preempt_count - parse the preempt count from the record |
5208 | * @pevent: a handle to the pevent | 5208 | * @pevent: a handle to the pevent |
5209 | * @rec: the record to parse | 5209 | * @rec: the record to parse |
5210 | * | 5210 | * |
5211 | * This returns the preempt count from a record. | 5211 | * This returns the preempt count from a record. |
5212 | */ | 5212 | */ |
5213 | int pevent_data_prempt_count(struct pevent *pevent, struct pevent_record *rec) | 5213 | int pevent_data_preempt_count(struct pevent *pevent, struct pevent_record *rec) |
5214 | { | 5214 | { |
5215 | return parse_common_pc(pevent, rec->data); | 5215 | return parse_common_pc(pevent, rec->data); |
5216 | } | 5216 | } |
diff --git a/tools/lib/traceevent/event-parse.h b/tools/lib/traceevent/event-parse.h index 7aae746ec2fe..67daa01260a9 100644 --- a/tools/lib/traceevent/event-parse.h +++ b/tools/lib/traceevent/event-parse.h | |||
@@ -709,7 +709,7 @@ void pevent_data_lat_fmt(struct pevent *pevent, | |||
709 | int pevent_data_type(struct pevent *pevent, struct pevent_record *rec); | 709 | int pevent_data_type(struct pevent *pevent, struct pevent_record *rec); |
710 | struct event_format *pevent_data_event_from_type(struct pevent *pevent, int type); | 710 | struct event_format *pevent_data_event_from_type(struct pevent *pevent, int type); |
711 | int pevent_data_pid(struct pevent *pevent, struct pevent_record *rec); | 711 | int pevent_data_pid(struct pevent *pevent, struct pevent_record *rec); |
712 | int pevent_data_prempt_count(struct pevent *pevent, struct pevent_record *rec); | 712 | int pevent_data_preempt_count(struct pevent *pevent, struct pevent_record *rec); |
713 | int pevent_data_flags(struct pevent *pevent, struct pevent_record *rec); | 713 | int pevent_data_flags(struct pevent *pevent, struct pevent_record *rec); |
714 | const char *pevent_data_comm_from_pid(struct pevent *pevent, int pid); | 714 | const char *pevent_data_comm_from_pid(struct pevent *pevent, int pid); |
715 | struct cmdline; | 715 | struct cmdline; |