From 6b3810a9f25926d3186b3d533c44781af4bfcbc1 Mon Sep 17 00:00:00 2001 From: Steven Rostedt Date: Thu, 26 Nov 2009 01:49:08 -0500 Subject: 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 --- Makefile | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 1f9e2e5..de4fdc4 100644 --- a/Makefile +++ b/Makefile @@ -17,6 +17,8 @@ LIB_FILE = libtracecmd.a trace-read.o:: parse-events.h trace-cmd.o:: parse-events.h $(LIB_FILE) +trace-util.o:: parse-events.h +trace-ftrace.o:: parse-events.h trace-cmd:: trace-cmd.o trace-read.o $(CC) $^ $(LIBS) -rdynamic -o $@ -- cgit v1.2.2