aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2009-11-26 01:49:08 -0500
committerSteven Rostedt <rostedt@goodmis.org>2009-11-26 01:55:57 -0500
commit6b3810a9f25926d3186b3d533c44781af4bfcbc1 (patch)
tree0f89fbf31253fd9375de8ab53f8e4b4898872c55 /Makefile
parentfb6da03ff6ed69c9d9a750212cf109f6d5325a72 (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--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 1f9e2e5..de4fdc4 100644
--- a/Makefile
+++ b/Makefile
@@ -17,6 +17,8 @@ LIB_FILE = libtracecmd.a
17 17
18trace-read.o:: parse-events.h 18trace-read.o:: parse-events.h
19trace-cmd.o:: parse-events.h $(LIB_FILE) 19trace-cmd.o:: parse-events.h $(LIB_FILE)
20trace-util.o:: parse-events.h
21trace-ftrace.o:: parse-events.h
20 22
21trace-cmd:: trace-cmd.o trace-read.o 23trace-cmd:: trace-cmd.o trace-read.o
22 $(CC) $^ $(LIBS) -rdynamic -o $@ 24 $(CC) $^ $(LIBS) -rdynamic -o $@