aboutsummaryrefslogtreecommitdiffstats
path: root/trace-cmd.h
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2009-12-04 01:36:01 -0500
committerSteven Rostedt <rostedt@goodmis.org>2009-12-04 01:36:01 -0500
commitdacd5dd2bfe3331e325c2f3a6fc044d3fa6fd03c (patch)
treea5f73eb6800aeedfa89fad2c1ce5c0ef6abf0d2f /trace-cmd.h
parentcd001f7b40f9dd1e5dfbf0c436531a03064f9391 (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.h28
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
37struct tracecmd_handle; 37struct tracecmd_input;
38 38
39struct tracecmd_handle *tracecmd_open(int fd); 39struct tracecmd_input *tracecmd_open(int fd);
40int tracecmd_read_headers(struct tracecmd_handle *handle); 40int tracecmd_read_headers(struct tracecmd_input *handle);
41int tracecmd_long_size(struct tracecmd_handle *handle); 41int tracecmd_long_size(struct tracecmd_input *handle);
42int tracecmd_page_size(struct tracecmd_handle *handle); 42int tracecmd_page_size(struct tracecmd_input *handle);
43int tracecmd_cpus(struct tracecmd_handle *handle); 43int tracecmd_cpus(struct tracecmd_input *handle);
44 44
45int tracecmd_init_data(struct tracecmd_handle *handle); 45int tracecmd_init_data(struct tracecmd_input *handle);
46 46
47struct record * 47struct record *
48tracecmd_peek_data(struct tracecmd_handle *handle, int cpu); 48tracecmd_peek_data(struct tracecmd_input *handle, int cpu);
49 49
50struct record * 50struct record *
51tracecmd_read_data(struct tracecmd_handle *handle, int cpu); 51tracecmd_read_data(struct tracecmd_input *handle, int cpu);
52 52
53struct record * 53struct record *
54tracecmd_read_at(struct tracecmd_handle *handle, unsigned long long offset, 54tracecmd_read_at(struct tracecmd_input *handle, unsigned long long offset,
55 int *cpu); 55 int *cpu);
56struct record * 56struct record *
57tracecmd_translate_data(struct tracecmd_handle *handle, 57tracecmd_translate_data(struct tracecmd_input *handle,
58 void *ptr, int size); 58 void *ptr, int size);
59 59
60int tracecmd_ftrace_overrides(struct tracecmd_handle *handle); 60int tracecmd_ftrace_overrides(struct tracecmd_input *handle);
61struct pevent *tracecmd_get_pevent(struct tracecmd_handle *handle); 61struct pevent *tracecmd_get_pevent(struct tracecmd_input *handle);
62 62
63/* hack for function graph work around */ 63/* hack for function graph work around */
64extern __thread struct tracecmd_handle *tracecmd_curr_thread_handle; 64extern __thread struct tracecmd_input *tracecmd_curr_thread_handle;
65 65
66#endif /* _TRACE_CMD_H */ 66#endif /* _TRACE_CMD_H */