diff options
author | Steven Rostedt <srostedt@redhat.com> | 2009-12-04 01:36:01 -0500 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2009-12-04 01:36:01 -0500 |
commit | dacd5dd2bfe3331e325c2f3a6fc044d3fa6fd03c (patch) | |
tree | a5f73eb6800aeedfa89fad2c1ce5c0ef6abf0d2f /trace-cmd.h | |
parent | cd001f7b40f9dd1e5dfbf0c436531a03064f9391 (diff) |
Rename tracecmd_handle to tracecmd_input
We will soon be adding write functionality to the tracecmd
library. This will require a new and separate handle than what
is used by the file reader.
"handle" is too generic. Rename it to "input" so we can make
the output handle called tracecmd_output.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'trace-cmd.h')
-rw-r--r-- | trace-cmd.h | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/trace-cmd.h b/trace-cmd.h index cdd31e1..afd7d6b 100644 --- a/trace-cmd.h +++ b/trace-cmd.h | |||
@@ -34,33 +34,33 @@ struct record { | |||
34 | void *data; | 34 | void *data; |
35 | }; | 35 | }; |
36 | 36 | ||
37 | struct tracecmd_handle; | 37 | struct tracecmd_input; |
38 | 38 | ||
39 | struct tracecmd_handle *tracecmd_open(int fd); | 39 | struct tracecmd_input *tracecmd_open(int fd); |
40 | int tracecmd_read_headers(struct tracecmd_handle *handle); | 40 | int tracecmd_read_headers(struct tracecmd_input *handle); |
41 | int tracecmd_long_size(struct tracecmd_handle *handle); | 41 | int tracecmd_long_size(struct tracecmd_input *handle); |
42 | int tracecmd_page_size(struct tracecmd_handle *handle); | 42 | int tracecmd_page_size(struct tracecmd_input *handle); |
43 | int tracecmd_cpus(struct tracecmd_handle *handle); | 43 | int tracecmd_cpus(struct tracecmd_input *handle); |
44 | 44 | ||
45 | int tracecmd_init_data(struct tracecmd_handle *handle); | 45 | int tracecmd_init_data(struct tracecmd_input *handle); |
46 | 46 | ||
47 | struct record * | 47 | struct record * |
48 | tracecmd_peek_data(struct tracecmd_handle *handle, int cpu); | 48 | tracecmd_peek_data(struct tracecmd_input *handle, int cpu); |
49 | 49 | ||
50 | struct record * | 50 | struct record * |
51 | tracecmd_read_data(struct tracecmd_handle *handle, int cpu); | 51 | tracecmd_read_data(struct tracecmd_input *handle, int cpu); |
52 | 52 | ||
53 | struct record * | 53 | struct record * |
54 | tracecmd_read_at(struct tracecmd_handle *handle, unsigned long long offset, | 54 | tracecmd_read_at(struct tracecmd_input *handle, unsigned long long offset, |
55 | int *cpu); | 55 | int *cpu); |
56 | struct record * | 56 | struct record * |
57 | tracecmd_translate_data(struct tracecmd_handle *handle, | 57 | tracecmd_translate_data(struct tracecmd_input *handle, |
58 | void *ptr, int size); | 58 | void *ptr, int size); |
59 | 59 | ||
60 | int tracecmd_ftrace_overrides(struct tracecmd_handle *handle); | 60 | int tracecmd_ftrace_overrides(struct tracecmd_input *handle); |
61 | struct pevent *tracecmd_get_pevent(struct tracecmd_handle *handle); | 61 | struct pevent *tracecmd_get_pevent(struct tracecmd_input *handle); |
62 | 62 | ||
63 | /* hack for function graph work around */ | 63 | /* hack for function graph work around */ |
64 | extern __thread struct tracecmd_handle *tracecmd_curr_thread_handle; | 64 | extern __thread struct tracecmd_input *tracecmd_curr_thread_handle; |
65 | 65 | ||
66 | #endif /* _TRACE_CMD_H */ | 66 | #endif /* _TRACE_CMD_H */ |