misc fixes
* only link against ttcn3-dynamic when you build with ENABLE_TITAN * obey CFLAGS * fix typos
This commit is contained in:
parent
a9b94bd8b9
commit
5e82cb7d63
5
Makefile
5
Makefile
|
@ -3,12 +3,13 @@ LIB_OBJS = $(LIB_SRCS:.c=.o)
|
||||||
|
|
||||||
EXTRA_LIBS =
|
EXTRA_LIBS =
|
||||||
|
|
||||||
CFLAGS = -Wall
|
CFLAGS += -Wall
|
||||||
LDFLAGS=-L/usr/lib/titan -fPIC -lttcn3-dynamic
|
LDFLAGS= -fPIC
|
||||||
|
|
||||||
ifdef ENABLE_TITAN
|
ifdef ENABLE_TITAN
|
||||||
EXTRA_LIBS += titan/titan.a
|
EXTRA_LIBS += titan/titan.a
|
||||||
CFLAGS += -DENABLE_TITAN
|
CFLAGS += -DENABLE_TITAN
|
||||||
|
LDFLAGS += -L/usr/lib/titan -lttcn3-dynamic
|
||||||
endif
|
endif
|
||||||
|
|
||||||
default: libudtrace.so
|
default: libudtrace.so
|
||||||
|
|
|
@ -19,7 +19,7 @@ Usage
|
||||||
Simply build **libudtrace.so** using the **make** command, and then
|
Simply build **libudtrace.so** using the **make** command, and then
|
||||||
start your to-be-traced program with
|
start your to-be-traced program with
|
||||||
|
|
||||||
LD_PRELOAD=libudtrace.os
|
LD_PRELOAD=libudtrace.so
|
||||||
|
|
||||||
e.g.
|
e.g.
|
||||||
|
|
||||||
|
@ -62,7 +62,7 @@ When data is written to the socket:
|
||||||
9 write W 00040000050000004403000008000000680000001c0300002c03000000000000
|
9 write W 00040000050000004403000008000000680000001c0300002c03000000000000
|
||||||
|
|
||||||
Where
|
Where
|
||||||
* *9* is the file dsecriptor on which the event happened
|
* *9* is the file descriptor on which the event happened
|
||||||
* *read/write* is the name of the syscall, could e.g. also be sendmsg / readv / etc.
|
* *read/write* is the name of the syscall, could e.g. also be sendmsg / readv / etc.
|
||||||
* *R|W* is Read / Write (from the process point of view)
|
* *R|W* is Read / Write (from the process point of view)
|
||||||
* followed by a hex-dump of the raw data. Only data successfully
|
* followed by a hex-dump of the raw data. Only data successfully
|
||||||
|
|
Loading…
Reference in New Issue