diff options
author | Steven Rostedt <srostedt@redhat.com> | 2009-11-26 01:49:08 -0500 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2009-11-26 01:55:57 -0500 |
commit | 6b3810a9f25926d3186b3d533c44781af4bfcbc1 (patch) | |
tree | 0f89fbf31253fd9375de8ab53f8e4b4898872c55 /Makefile | |
parent | fb6da03ff6ed69c9d9a750212cf109f6d5325a72 (diff) |
Remove trace_read_data() and trace_peek_data()
The trace_read_data and trace_peek_data() required a global file
descriptor for reading. This was kept because the library libparsevent
had the function graph tracer implementation and required a callback
to read. This code has been moved out of parse_events.c and into a
special override function.
Now it still uses the global read, but since libtracecmd has a little more
scope than libparsevent, we added a thread variable
tracecmd_curr_thread_handle
This is unique per thread, and is set right after data is read.
Yes there are some races, but we can deal with it for now.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -17,6 +17,8 @@ LIB_FILE = libtracecmd.a | |||
17 | 17 | ||
18 | trace-read.o:: parse-events.h | 18 | trace-read.o:: parse-events.h |
19 | trace-cmd.o:: parse-events.h $(LIB_FILE) | 19 | trace-cmd.o:: parse-events.h $(LIB_FILE) |
20 | trace-util.o:: parse-events.h | ||
21 | trace-ftrace.o:: parse-events.h | ||
20 | 22 | ||
21 | trace-cmd:: trace-cmd.o trace-read.o | 23 | trace-cmd:: trace-cmd.o trace-read.o |
22 | $(CC) $^ $(LIBS) -rdynamic -o $@ | 24 | $(CC) $^ $(LIBS) -rdynamic -o $@ |