ust.git
14 years agorefactor/enhance libustcomm
Pierre-Marc Fournier [Wed, 10 Feb 2010 22:15:50 +0000 (17:15 -0500)] 
refactor/enhance libustcomm

- regroup sending and receiving code
- add \0 at end of messages
- add dynamic allocation of received message buffers
- remove message length limit

14 years agousterr.h: add DBG_raw() macro
Pierre-Marc Fournier [Wed, 10 Feb 2010 18:41:51 +0000 (13:41 -0500)] 
usterr.h: add DBG_raw() macro

14 years agofix bug in manual; argument order for ustctl in example
Pierre-Marc Fournier [Wed, 10 Feb 2010 18:41:00 +0000 (13:41 -0500)] 
fix bug in manual; argument order for ustctl in example

14 years agoport to trace format 2.5
Pierre-Marc Fournier [Mon, 8 Feb 2010 22:47:30 +0000 (17:47 -0500)] 
port to trace format 2.5

14 years agofix some errors and warnings in the porting
Pierre-Marc Fournier [Mon, 8 Feb 2010 21:50:41 +0000 (16:50 -0500)] 
fix some errors and warnings in the porting

14 years agoport to trace format 2.4
Pierre-Marc Fournier [Mon, 8 Feb 2010 20:54:14 +0000 (15:54 -0500)] 
port to trace format 2.4

14 years agoinitialize commit_seq
Pierre-Marc Fournier [Fri, 5 Feb 2010 20:26:59 +0000 (15:26 -0500)] 
initialize commit_seq

14 years agoPort changes from lttng-kt
Pierre-Marc Fournier [Fri, 5 Feb 2010 17:17:48 +0000 (12:17 -0500)] 
Port changes from lttng-kt

14 years agoquick and dirty fix for message maximum length bug
Pierre-Marc Fournier [Wed, 10 Feb 2010 20:11:24 +0000 (15:11 -0500)] 
quick and dirty fix for message maximum length bug

This happens when we do ustctl --list-markers.

A refactoring to fix this correctly is in progress.

14 years agoupdate TODO
Pierre-Marc Fournier [Tue, 9 Feb 2010 17:35:27 +0000 (12:35 -0500)] 
update TODO

14 years agoupdate TODO
Pierre-Marc Fournier [Fri, 5 Feb 2010 17:01:42 +0000 (12:01 -0500)] 
update TODO

14 years agoupdate todo
Pierre-Marc Fournier [Wed, 3 Feb 2010 19:43:27 +0000 (14:43 -0500)] 
update todo

14 years agoUpdate to liburcu 0.4.0 API
Pierre-Marc Fournier [Tue, 2 Feb 2010 21:40:46 +0000 (16:40 -0500)] 
Update to liburcu 0.4.0 API

14 years agobuffers.c: fix compilation issue
Pierre-Marc Fournier [Tue, 2 Feb 2010 19:42:38 +0000 (14:42 -0500)] 
buffers.c: fix compilation issue

14 years ago_SC_NPROCESSORS_ONLN -> _SC_NPROCESSORS_CONF
Pierre-Marc Fournier [Tue, 2 Feb 2010 02:43:03 +0000 (21:43 -0500)] 
_SC_NPROCESSORS_ONLN -> _SC_NPROCESSORS_CONF

14 years agoConvert buffering system to per-cpu
Pierre-Marc Fournier [Tue, 2 Feb 2010 02:12:40 +0000 (21:12 -0500)] 
Convert buffering system to per-cpu

The cpu count is fixed at trace allocation. If the current cpu
happens to be out of range, the event is put in the buffer of cpu0.

14 years agousterr.h: print function name
Pierre-Marc Fournier [Tue, 2 Feb 2010 01:25:43 +0000 (20:25 -0500)] 
usterr.h: print function name

14 years agoupdate TODO
Pierre-Marc Fournier [Tue, 2 Feb 2010 01:25:24 +0000 (20:25 -0500)] 
update TODO

14 years agochange DEBUG macro to UST_DEBUG, now it must be -D's at ./configure to activate it
Pierre-Marc Fournier [Mon, 1 Feb 2010 20:40:18 +0000 (15:40 -0500)] 
change DEBUG macro to UST_DEBUG, now it must be -D's at ./configure to activate it

14 years agoLarge cleanup, mostly removal of all printk's and printfs in libust
Pierre-Marc Fournier [Mon, 1 Feb 2010 20:20:51 +0000 (15:20 -0500)] 
Large cleanup, mostly removal of all printk's and printfs in libust

Also removal of old unused commented code.

14 years agolibustcomm: change char * to const char * where relevant
Pierre-Marc Fournier [Fri, 29 Jan 2010 04:44:19 +0000 (23:44 -0500)] 
libustcomm: change char * to const char * where relevant

14 years agoupdate TODO
Pierre-Marc Fournier [Fri, 29 Jan 2010 00:00:59 +0000 (19:00 -0500)] 
update TODO

14 years agolibustcomm: create default socket directory if it does not exist
Pierre-Marc Fournier [Thu, 28 Jan 2010 17:28:13 +0000 (12:28 -0500)] 
libustcomm: create default socket directory if it does not exist

Applies to socket and trace app.

14 years agousttrace: change ustd socket name to ustd-sock-PID
Pierre-Marc Fournier [Thu, 28 Jan 2010 17:27:07 +0000 (12:27 -0500)] 
usttrace: change ustd socket name to ustd-sock-PID

Also change internal variable name for that file name.

This is to make things clearer since traced apps also have
sockets.

14 years agochange app socket directory name for something more descriptive
Pierre-Marc Fournier [Thu, 28 Jan 2010 16:53:52 +0000 (11:53 -0500)] 
change app socket directory name for something more descriptive

14 years agoRefactor libinterfork and add support for clone() interception
Pierre-Marc Fournier [Wed, 20 Jan 2010 06:03:57 +0000 (01:03 -0500)] 
Refactor libinterfork and add support for clone() interception

14 years agosave_registers: add comments and make safer
Pierre-Marc Fournier [Tue, 19 Jan 2010 20:23:04 +0000 (15:23 -0500)] 
save_registers: add comments and make safer

Carefully save all registers that could be changed by the
function calls.

14 years agoRemove unused comment
Pierre-Marc Fournier [Tue, 19 Jan 2010 20:21:58 +0000 (15:21 -0500)] 
Remove unused comment

14 years agoadd precisions for license
Pierre-Marc Fournier [Tue, 19 Jan 2010 20:19:51 +0000 (15:19 -0500)] 
add precisions for license

14 years agoust.h: remove duplicate include
Pierre-Marc Fournier [Mon, 18 Jan 2010 22:46:49 +0000 (17:46 -0500)] 
ust.h: remove duplicate include

14 years agoUpdate manual with license info
Pierre-Marc Fournier [Mon, 18 Jan 2010 22:36:21 +0000 (17:36 -0500)] 
Update manual with license info

14 years agoFinal changes for release 0.1 v0.1
Pierre-Marc Fournier [Mon, 18 Jan 2010 07:34:48 +0000 (02:34 -0500)] 
Final changes for release 0.1

14 years agoDon't display debugging messages by default
Pierre-Marc Fournier [Mon, 18 Jan 2010 07:28:02 +0000 (02:28 -0500)] 
Don't display debugging messages by default

14 years agoDocumentation fixes
Pierre-Marc Fournier [Mon, 18 Jan 2010 07:22:55 +0000 (02:22 -0500)] 
Documentation fixes

14 years agoconfigure.ac: remove version from AM_INIT_AUTOMAKE
Pierre-Marc Fournier [Mon, 18 Jan 2010 07:06:54 +0000 (02:06 -0500)] 
configure.ac: remove version from AM_INIT_AUTOMAKE

14 years agoChange manual to texinfo format and enhance it
Pierre-Marc Fournier [Mon, 18 Jan 2010 06:59:53 +0000 (01:59 -0500)] 
Change manual to texinfo format and enhance it

14 years agoupdate gitignore
Pierre-Marc Fournier [Mon, 18 Jan 2010 06:48:06 +0000 (01:48 -0500)] 
update gitignore

14 years agoAdd comment on manual registration of "ust" channel
Pierre-Marc Fournier [Fri, 15 Jan 2010 23:04:25 +0000 (18:04 -0500)] 
Add comment on manual registration of "ust" channel

14 years agoAdd --create-trace option to ustctl
Pierre-Marc Fournier [Fri, 15 Jan 2010 22:56:52 +0000 (17:56 -0500)] 
Add --create-trace option to ustctl

14 years agoChange header file's #define name
Pierre-Marc Fournier [Fri, 15 Jan 2010 22:53:55 +0000 (17:53 -0500)] 
Change header file's #define name

14 years agoupdate README
Pierre-Marc Fournier [Thu, 14 Jan 2010 05:22:59 +0000 (00:22 -0500)] 
update README

14 years agoAdd some sanity to save_registers on x86-32
Pierre-Marc Fournier [Thu, 14 Jan 2010 05:13:10 +0000 (00:13 -0500)] 
Add some sanity to save_registers on x86-32

Fixes a crash

14 years agoconfigure.ac: improve error message
Pierre-Marc Fournier [Wed, 13 Jan 2010 20:49:40 +0000 (15:49 -0500)] 
configure.ac: improve error message

14 years agoupdate README
Pierre-Marc Fournier [Wed, 13 Jan 2010 20:35:22 +0000 (15:35 -0500)] 
update README

14 years agoDo not use __SIZEOF_POINTER__, as it is not compatible with older gcc's
Pierre-Marc Fournier [Wed, 13 Jan 2010 19:50:44 +0000 (14:50 -0500)] 
Do not use __SIZEOF_POINTER__, as it is not compatible with older gcc's

14 years agoReplace __COUNTER__ with the more portable __LINE__
Pierre-Marc Fournier [Wed, 13 Jan 2010 19:33:20 +0000 (14:33 -0500)] 
Replace __COUNTER__ with the more portable __LINE__

Also, change visibility of marker structs so they are visible
only to the current compilation unit. This allows to have the same
marker on the same line in two different files. It however does not
allow to have two identical (channel and name) markers on the same line
of the same file.

14 years agoremove save_ip stub
Pierre-Marc Fournier [Mon, 11 Jan 2010 22:21:02 +0000 (17:21 -0500)] 
remove save_ip stub

14 years agofix saving of marker format
Pierre-Marc Fournier [Mon, 11 Jan 2010 20:03:50 +0000 (15:03 -0500)] 
fix saving of marker format

14 years agomake initialization of marker struct completely static
Pierre-Marc Fournier [Thu, 7 Jan 2010 19:29:49 +0000 (14:29 -0500)] 
make initialization of marker struct completely static

14 years agofix macro indentation
Pierre-Marc Fournier [Thu, 7 Jan 2010 19:25:57 +0000 (14:25 -0500)] 
fix macro indentation

14 years agocomplete ip saving code
Pierre-Marc Fournier [Thu, 7 Jan 2010 17:00:41 +0000 (12:00 -0500)] 
complete ip saving code

14 years agoremove usage of the marker_addr section
Pierre-Marc Fournier [Thu, 7 Jan 2010 17:00:19 +0000 (12:00 -0500)] 
remove usage of the marker_addr section

14 years agofix comment
Pierre-Marc Fournier [Thu, 7 Jan 2010 04:05:56 +0000 (23:05 -0500)] 
fix comment

14 years agofirst take on the save ip on x86-32
Pierre-Marc Fournier [Thu, 10 Dec 2009 20:37:07 +0000 (15:37 -0500)] 
first take on the save ip on x86-32

14 years agoMake 64 bit compilation on 32 bit compiler possible
Pedro Alves [Thu, 7 Jan 2010 03:33:32 +0000 (22:33 -0500)] 
Make 64 bit compilation on 32 bit compiler possible

This patch is to be able to build ust with `i686-unknown-pc-gnu-gcc -m64', that
is, 32-bit compiler, 64-bit multilib.

14 years agoRemove absolute path from libust.so
Pedro Alves [Thu, 7 Jan 2010 03:28:21 +0000 (22:28 -0500)] 
Remove absolute path from libust.so

I noticed that the libust.so ld script is installed to the same directory as
libust.so.0 and libust-initializer.o, so removing the absolute paths from them
allows linking with a libust.so that isn't in the sysroot or installed under
/usr/, like e.g., in a DESTDIR directory.  This was useful for testing a
release with everything extracted some randome prefix, e.g., libust.so in
$RANDOM_UNPACK_DIR/usr/lib, and pointing LD_LIBRARY_PATH to
$RANDOM_UNPACK_DIR/usr/lib.

14 years agoupdate README
Pierre-Marc Fournier [Wed, 6 Jan 2010 21:29:49 +0000 (16:29 -0500)] 
update README

14 years agochange inline to __inline__ for better compatibility
Pierre-Marc Fournier [Fri, 18 Dec 2009 20:28:37 +0000 (15:28 -0500)] 
change inline to __inline__ for better compatibility

14 years agoadd is_marker_enabled function from lttng kt
Pierre-Marc Fournier [Fri, 18 Dec 2009 20:05:23 +0000 (15:05 -0500)] 
add is_marker_enabled function from lttng kt

14 years agoport fix from lttng kernel tracer 0.92
Pierre-Marc Fournier [Fri, 18 Dec 2009 19:23:55 +0000 (14:23 -0500)] 
port fix from lttng kernel tracer 0.92

14 years agoadd asm to save regs on x86-32, for gdb
Pierre-Marc Fournier [Mon, 14 Dec 2009 07:15:27 +0000 (02:15 -0500)] 
add asm to save regs on x86-32, for gdb

14 years agoAdd test for compilation of libust against a shared library
Pierre-Marc Fournier [Mon, 14 Dec 2009 07:17:34 +0000 (02:17 -0500)] 
Add test for compilation of libust against a shared library

14 years agoAdd dummy marker and tracepoint to libust-initializer
Pierre-Marc Fournier [Mon, 14 Dec 2009 07:10:01 +0000 (02:10 -0500)] 
Add dummy marker and tracepoint to libust-initializer

Without these, the __start... and __stop... symbols are
not defined, and compilation fails with an obscure relocation
message. A more elegant solution should be found.

14 years agoForce -fPIC build of libust-initializer.o
Pierre-Marc Fournier [Mon, 14 Dec 2009 07:08:45 +0000 (02:08 -0500)] 
Force -fPIC build of libust-initializer.o

This is needed for linking it to shared libraries.

14 years agoFix compilation of libust-initializer.o
Pierre-Marc Fournier [Mon, 14 Dec 2009 07:06:18 +0000 (02:06 -0500)] 
Fix compilation of libust-initializer.o

The explicit rule in /Makefile.am to build libust-initializer.o was
not being considered. This is because programs that depend on it
were being built before it, triggering the use of an implicit rule
to build it.

Changing SUBDIRS in /Makefile.am to include "." insures
libust-initializer.o is built first with the right rule.

14 years agomore fixes of conditional compilation of gdb support
Pierre-Marc Fournier [Wed, 9 Dec 2009 19:10:05 +0000 (14:10 -0500)] 
more fixes of conditional compilation of gdb support

14 years agofix conditional compilation of gdb support
Pierre-Marc Fournier [Wed, 9 Dec 2009 18:55:03 +0000 (13:55 -0500)] 
fix conditional compilation of gdb support

14 years agoprobe.h: fix warning
Pierre-Marc Fournier [Tue, 8 Dec 2009 20:01:32 +0000 (15:01 -0500)] 
probe.h: fix warning

14 years agosimple_include: fix warning
Pierre-Marc Fournier [Tue, 8 Dec 2009 20:01:20 +0000 (15:01 -0500)] 
simple_include: fix warning

14 years agomove probe stuff to probe.h, to have it available in system wide headers
Pierre-Marc Fournier [Tue, 8 Dec 2009 19:51:55 +0000 (14:51 -0500)] 
move probe stuff to probe.h, to have it available in system wide headers

14 years agotracepoint.h: fix header macro name
Pierre-Marc Fournier [Tue, 8 Dec 2009 19:34:47 +0000 (14:34 -0500)] 
tracepoint.h: fix header macro name

14 years agofix gdb integration bug
Pierre-Marc Fournier [Tue, 8 Dec 2009 18:03:55 +0000 (13:03 -0500)] 
fix gdb integration bug

14 years agofix warning
Pierre-Marc Fournier [Mon, 7 Dec 2009 20:57:24 +0000 (15:57 -0500)] 
fix warning

14 years agofix 32 bit support by conditionally compiling gdb support
Pierre-Marc Fournier [Mon, 7 Dec 2009 20:54:40 +0000 (15:54 -0500)] 
fix 32 bit support by conditionally compiling gdb support

must define CONFIG_UST_GDB_INTEGRATION for gdb support to be enabled

14 years agomarker.h: change header #define macro name
Pierre-Marc Fournier [Mon, 7 Dec 2009 20:52:16 +0000 (15:52 -0500)] 
marker.h: change header #define macro name

14 years agofix save_last_tsc() and last_tsc_overflow() args
Pierre-Marc Fournier [Mon, 7 Dec 2009 19:23:22 +0000 (14:23 -0500)] 
fix save_last_tsc() and last_tsc_overflow() args

15 years agoRewrite last GPL bits in relay.c and relay.h
Pierre-Marc Fournier [Tue, 20 Oct 2009 18:08:52 +0000 (14:08 -0400)] 
Rewrite last GPL bits in relay.c and relay.h

Also update other files accordingly.

15 years agomark 32 bit support as broken
Pierre-Marc Fournier [Thu, 12 Nov 2009 21:23:24 +0000 (16:23 -0500)] 
mark 32 bit support as broken

15 years agoadd very simple compilation test
Pierre-Marc Fournier [Wed, 11 Nov 2009 22:03:08 +0000 (17:03 -0500)] 
add very simple compilation test

15 years agoconfigure.ac: use $host_cpu, not $target_cpu
Pierre-Marc Fournier [Wed, 11 Nov 2009 21:29:13 +0000 (16:29 -0500)] 
configure.ac: use $host_cpu, not $target_cpu

15 years agofix static initialization so out of tree make distcheck works
Pierre-Marc Fournier [Wed, 11 Nov 2009 20:55:34 +0000 (15:55 -0500)] 
fix static initialization so out of tree make distcheck works

15 years agostatic initializer: make cross-compilable
Pierre-Marc Fournier [Wed, 11 Nov 2009 20:45:00 +0000 (15:45 -0500)] 
static initializer: make cross-compilable

15 years agoFix libust-initializer.o build
Jan Blunck [Thu, 5 Nov 2009 15:41:24 +0000 (16:41 +0100)] 
Fix libust-initializer.o build

For the include path the $top_builddir variable was used which should be the
$top_srcdir instead.

Signed-off-by: Jan Blunck <jblunck@suse.de>
15 years agoLink tests against libust-initializer.o as well
Jan Blunck [Thu, 5 Nov 2009 15:24:09 +0000 (16:24 +0100)] 
Link tests against libust-initializer.o as well

I don't find a proper way to let the libtool Automake magic automatically
link against the initializer object as well. Therefore I need to add it
manually to each testcase.

Signed-off-by: Jan Blunck <jblunck@suse.de>
15 years agoMake references to __{start,stop}___{markers,tracepoints} weak
Jan Blunck [Tue, 27 Oct 2009 10:07:39 +0000 (11:07 +0100)] 
Make references to __{start,stop}___{markers,tracepoints} weak

When using the linker script approach for initialization of the libust
library we unconditionally call __markers_init()/__tracepoints_init().
If one is using only tracepoints or only markers the init call fails
because of undefined references to the linker generated symbols for the
__markers or __tracepoints section (__start___markers, ...). Since we use
the symbols just for the size and the start of the section it is safe to
use weak symbols in this case: if the size if zero nothing get read anyway.

Signed-off-by: Jan Blunck <jblunck@suse.de>
15 years agoFix include path when compiling libust-initializer.c
Jan Blunck [Mon, 26 Oct 2009 13:59:35 +0000 (14:59 +0100)] 
Fix include path when compiling libust-initializer.c

Otherwise it does not find the headers if they are not installed already.

Signed-off-by: Jan Blunck <jblunck@suse.de>
15 years agoAdd linker script and libust initializer object
Jan Blunck [Thu, 5 Nov 2009 17:13:18 +0000 (18:13 +0100)] 
Add linker script and libust initializer object

This adds a libust initializer object which gets linked automagically if
you link against libust.so, which is a linker skript from now on. The
object file just ensures that the libust is initialized properly without
forcing the user of the library to care about calling MARKER_LIB and
TRACEPOINT_LIB explicitly.

Signed-off-by: Jan Blunck <jblunck@suse.de>
15 years agorevert installation of tracer.h, but keep ust.h
Pierre-Marc Fournier [Wed, 11 Nov 2009 21:47:06 +0000 (16:47 -0500)] 
revert installation of tracer.h, but keep ust.h

15 years agosave registers: fix small problems
Pierre-Marc Fournier [Wed, 4 Nov 2009 04:26:18 +0000 (23:26 -0500)] 
save registers: fix small problems

- Don't put C code at the beginning of save save_registers macro, as
  it will change the registers in unpredictable ways. Therefore, test
  whether ust_reg_stack_ptr has been initialized in assembly code.
- Save rflags at the begginning of the stub because using the test
  instruction may change its content.

15 years agoupdate .gitignore
Pierre-Marc Fournier [Wed, 4 Nov 2009 03:02:25 +0000 (22:02 -0500)] 
update .gitignore

15 years agoinstall tracer.h, add new ust/ust.h
Pierre-Marc Fournier [Wed, 4 Nov 2009 03:01:33 +0000 (22:01 -0500)] 
install tracer.h, add new ust/ust.h

15 years agosave registers: update
Pierre-Marc Fournier [Tue, 3 Nov 2009 23:46:43 +0000 (18:46 -0500)] 
save registers: update

15 years agoprocessor.h: save rflags
Pierre-Marc Fournier [Mon, 2 Nov 2009 21:16:53 +0000 (16:16 -0500)] 
processor.h: save rflags

15 years agoadd serialize_to_text() function
Pierre-Marc Fournier [Thu, 29 Oct 2009 04:59:55 +0000 (00:59 -0400)] 
add serialize_to_text() function

For gdb static tracepoints.

15 years agousttrace: add comments to describe start sequence of ustd
Pierre-Marc Fournier [Wed, 28 Oct 2009 04:19:38 +0000 (00:19 -0400)] 
usttrace: add comments to describe start sequence of ustd

15 years agousttrace: reorganise error messages for ustd not found
Pierre-Marc Fournier [Wed, 28 Oct 2009 04:17:56 +0000 (00:17 -0400)] 
usttrace: reorganise error messages for ustd not found

15 years agoustd: fix opening mode of pidfile to support writing to fifos
Pierre-Marc Fournier [Wed, 28 Oct 2009 04:12:09 +0000 (00:12 -0400)] 
ustd: fix opening mode of pidfile to support writing to fifos

The fifo is opened in write-only in order to block until someone
opens it.

15 years agousttrace: oops: $(USTDPID) -> $USTDPID
Pierre-Marc Fournier [Wed, 28 Oct 2009 03:31:53 +0000 (23:31 -0400)] 
usttrace: oops: $(USTDPID) -> $USTDPID

15 years agoMake usttrace work when it isn't installed
Jan Blunck [Tue, 27 Oct 2009 12:25:17 +0000 (13:25 +0100)] 
Make usttrace work when it isn't installed

usttrace needs to detect when to use the installed libraries and when it
is invoked in the repository itself. Otherwise usttrace does not work
when it is installed in /usr/bin.

Signed-off-by: Jan Blunck <jblunck@suse.de>
15 years agofix build and out of tree build
Pierre-Marc Fournier [Tue, 27 Oct 2009 23:52:50 +0000 (19:52 -0400)] 
fix build and out of tree build

This page took 0.037595 seconds and 4 git commands to generate.