diff options
author | Tzvetomir Stoyanov <tstoyanov@vmware.com> | 2018-11-30 10:44:10 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2018-12-17 12:56:10 -0500 |
commit | 6cd99d21741dbffb40e28ab7d955b27d09c3352f (patch) | |
tree | 7359bc5e63fce546ad023da30cc81d1977e6477e /tools/lib/traceevent/event-parse-api.c | |
parent | f0bba09ce3f88ddeef7a3e45f612d26b1e951d5b (diff) |
tools lib traceevent: traceevent API cleanup
In order to make libtraceevent into a proper library, its API should be
straightforward. This patch hides few API functions, intended for
internal usage only:
tep_free_event(), tep_free_format_field(), __tep_data2host2(),
__tep_data2host4() and __tep_data2host8().
The patch also alignes the libtraceevent summary man page with
these API changes.
Signed-off-by: Tzvetomir Stoyanov <tstoyanov@vmware.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: http://lkml.kernel.org/r/20181130154647.891651290@goodmis.org
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/lib/traceevent/event-parse-api.c')
-rw-r--r-- | tools/lib/traceevent/event-parse-api.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/lib/traceevent/event-parse-api.c b/tools/lib/traceevent/event-parse-api.c index 0dc011154ee9..8b31c0e00ba3 100644 --- a/tools/lib/traceevent/event-parse-api.c +++ b/tools/lib/traceevent/event-parse-api.c | |||
@@ -51,7 +51,7 @@ void tep_set_flag(struct tep_handle *tep, int flag) | |||
51 | tep->flags |= flag; | 51 | tep->flags |= flag; |
52 | } | 52 | } |
53 | 53 | ||
54 | unsigned short __tep_data2host2(struct tep_handle *pevent, unsigned short data) | 54 | unsigned short tep_data2host2(struct tep_handle *pevent, unsigned short data) |
55 | { | 55 | { |
56 | unsigned short swap; | 56 | unsigned short swap; |
57 | 57 | ||
@@ -64,7 +64,7 @@ unsigned short __tep_data2host2(struct tep_handle *pevent, unsigned short data) | |||
64 | return swap; | 64 | return swap; |
65 | } | 65 | } |
66 | 66 | ||
67 | unsigned int __tep_data2host4(struct tep_handle *pevent, unsigned int data) | 67 | unsigned int tep_data2host4(struct tep_handle *pevent, unsigned int data) |
68 | { | 68 | { |
69 | unsigned int swap; | 69 | unsigned int swap; |
70 | 70 | ||
@@ -80,7 +80,7 @@ unsigned int __tep_data2host4(struct tep_handle *pevent, unsigned int data) | |||
80 | } | 80 | } |
81 | 81 | ||
82 | unsigned long long | 82 | unsigned long long |
83 | __tep_data2host8(struct tep_handle *pevent, unsigned long long data) | 83 | tep_data2host8(struct tep_handle *pevent, unsigned long long data) |
84 | { | 84 | { |
85 | unsigned long long swap; | 85 | unsigned long long swap; |
86 | 86 | ||