ust.git
14 years agojava: fixes
Pierre-Marc Fournier [Tue, 27 Oct 2009 23:14:55 +0000 (19:14 -0400)] 
java: fixes

14 years agoMerge branch 'for-pierre-marc' of git://git.infradead.org/users/jblunck/ust
Pierre-Marc Fournier [Tue, 27 Oct 2009 22:58:15 +0000 (18:58 -0400)] 
Merge branch 'for-pierre-marc' of git://git.infradead.org/users/jblunck/ust

Fixed conflicts:
include/ust/marker.h

14 years agoalways initialize statically the .location field of struct marker to NULL
Pierre-Marc Fournier [Tue, 27 Oct 2009 22:33:15 +0000 (18:33 -0400)] 
always initialize statically the .location field of struct marker to NULL

Constructors later write the real location value.

14 years agorename registers.h -> processor.h
Pierre-Marc Fournier [Tue, 27 Oct 2009 22:32:52 +0000 (18:32 -0400)] 
rename registers.h -> processor.h

14 years agotrace_mark: pass register values to probe
Pierre-Marc Fournier [Tue, 27 Oct 2009 21:36:58 +0000 (17:36 -0400)] 
trace_mark: pass register values to probe

This should be more efficient, disableable or done inside the probe. For GDB static tracepoints.

14 years agomarkers: save marker location in struct marker
Pierre-Marc Fournier [Tue, 27 Oct 2009 21:33:04 +0000 (17:33 -0400)] 
markers: save marker location in struct marker

This is for gdb static tracepoints.

14 years agoregisters.h: update
Pierre-Marc Fournier [Tue, 27 Oct 2009 21:22:04 +0000 (17:22 -0400)] 
registers.h: update

14 years agoregisters.h: improve registers saving
Pierre-Marc Fournier [Mon, 26 Oct 2009 21:13:21 +0000 (17:13 -0400)] 
registers.h: improve registers saving

14 years agoadd registers.h
Pierre-Marc Fournier [Mon, 26 Oct 2009 20:58:56 +0000 (16:58 -0400)] 
add registers.h

14 years agousttrace: deal correctly with ustd creation and termination
Pierre-Marc Fournier [Mon, 26 Oct 2009 14:07:11 +0000 (10:07 -0400)] 
usttrace: deal correctly with ustd creation and termination

14 years agomarkers: add comment
Pierre-Marc Fournier [Mon, 26 Oct 2009 13:52:14 +0000 (09:52 -0400)] 
markers: add comment

14 years agoMove kernelcompat.h to include/ust/ and share.h, usterr.h to include/
Jan Blunck [Sun, 25 Oct 2009 13:57:47 +0000 (14:57 +0100)] 
Move kernelcompat.h to include/ust/ and share.h, usterr.h to include/

kernelcompat.h is included by marker.h and tracepoint.h therefore it should
be in include/ust/ as well. Move shared headers to include/ as well.

Signed-off-by: Jan Blunck <jblunck@suse.de>
14 years agoMove immediate.h, marker.h and tracepoint.h to include/ust/
Jan Blunck [Sun, 25 Oct 2009 12:57:45 +0000 (13:57 +0100)] 
Move immediate.h, marker.h and tracepoint.h to include/ust/

Move the primary header files to a common location and install them with
ust/ prefix in /usr/include.

Signed-off-by: Jan Blunck <jblunck@suse.de>
14 years agoRemove localerr.h
Jan Blunck [Fri, 23 Oct 2009 18:58:48 +0000 (20:58 +0200)] 
Remove localerr.h

localerr.h is only including usterr.h so remove it and replace it.

Signed-off-by: Jan Blunck <jblunck@suse.de>
14 years agoAdd some missing headers and files for make dist
Jan Blunck [Fri, 23 Oct 2009 18:35:36 +0000 (20:35 +0200)] 
Add some missing headers and files for make dist

This commit adds missing headers and other files to let make dist and install
work as necessry for packaging of ust.

Signed-off-by: Jan Blunck <jblunck@suse.de>
14 years agoTemporary remove Java support
Jan Blunck [Fri, 23 Oct 2009 16:17:03 +0000 (18:17 +0200)] 
Temporary remove Java support

SInce UST.c and UST.h are missing in the java/ directory remove the Java
support for the moment.

Signed-off-by: Jan Blunck <jblunck@suse.de>
14 years agoFix waiting for ustd on shutdown
Jan Blunck [Sun, 18 Oct 2009 20:39:24 +0000 (22:39 +0200)] 
Fix waiting for ustd on shutdown

When starting the daemon use a fifo instead of a pidfile. Otherwise the start
races against the reading of the pidfile. During shutdown we should wait for
all the existing background shells (there is only one) instead of waiting
for the pid of the daemon process.

Signed-off-by: Jan Blunck <jblunck@suse.de>
14 years agoREADME: update installation instructions
Pierre-Marc Fournier [Tue, 20 Oct 2009 18:06:21 +0000 (14:06 -0400)] 
README: update installation instructions

14 years agofix porting bug
Pierre-Marc Fournier [Thu, 15 Oct 2009 22:50:51 +0000 (18:50 -0400)] 
fix porting bug

14 years agousttrace: use ustd in daemon mode, sparing a sleep and removing a race
Pierre-Marc Fournier [Tue, 13 Oct 2009 23:16:33 +0000 (19:16 -0400)] 
usttrace: use ustd in daemon mode, sparing a sleep and removing a race

The race was that usttrace waited for 0.5s for the daemon (started in
background) to settle before starting the command to trace. If the
daemon needed more than 0.5s to settle, the connection would fail.

Now, it is guaranteed to succeed.

14 years agousttrace: enhance
Pierre-Marc Fournier [Tue, 13 Oct 2009 23:15:58 +0000 (19:15 -0400)] 
usttrace: enhance

14 years agotests/fork: updates
Pierre-Marc Fournier [Tue, 13 Oct 2009 23:12:45 +0000 (19:12 -0400)] 
tests/fork: updates

14 years agoustd: add support for --pidfile
Pierre-Marc Fournier [Tue, 13 Oct 2009 23:09:27 +0000 (19:09 -0400)] 
ustd: add support for --pidfile

14 years agoustd: add daemon mode
Pierre-Marc Fournier [Tue, 13 Oct 2009 21:55:01 +0000 (17:55 -0400)] 
ustd: add daemon mode

14 years agoimmediately create listener thread on process creation
Pierre-Marc Fournier [Tue, 13 Oct 2009 21:47:24 +0000 (17:47 -0400)] 
immediately create listener thread on process creation

It is complex to create a thread properly inside a signal handler.
Leave this aside for now. This optimization can always be added
later.

14 years agoimprove create_listener()
Pierre-Marc Fournier [Tue, 13 Oct 2009 21:20:07 +0000 (17:20 -0400)] 
improve create_listener()

14 years agotracectl.c: minor cleanup
Pierre-Marc Fournier [Tue, 13 Oct 2009 21:18:22 +0000 (17:18 -0400)] 
tracectl.c: minor cleanup

14 years agoremove unneeded noinline's
Pierre-Marc Fournier [Tue, 13 Oct 2009 21:17:01 +0000 (17:17 -0400)] 
remove unneeded noinline's

14 years agomodify the commit logic to indicate the reason for which an event was dropped
Pierre-Marc Fournier [Tue, 13 Oct 2009 21:15:06 +0000 (17:15 -0400)] 
modify the commit logic to indicate the reason for which an event was dropped

These changes were designed by Mathieu Desnoyers.

14 years agoset the reader side of the buffer-ready pipe non-blocking (experimental)
Pierre-Marc Fournier [Tue, 13 Oct 2009 21:13:49 +0000 (17:13 -0400)] 
set the reader side of the buffer-ready pipe non-blocking (experimental)

14 years agoustctl: update UST_COMPONENT
Pierre-Marc Fournier [Tue, 13 Oct 2009 21:10:10 +0000 (17:10 -0400)] 
ustctl: update UST_COMPONENT

This was forgotten when the tool was renamed.

14 years agoremove unneeded constructor priority
Pierre-Marc Fournier [Tue, 13 Oct 2009 21:01:07 +0000 (17:01 -0400)] 
remove unneeded constructor priority

14 years agoupdate build system to find automatically installed kcompat and urcu
Pierre-Marc Fournier [Fri, 9 Oct 2009 22:52:35 +0000 (18:52 -0400)] 
update build system to find automatically installed kcompat and urcu

14 years agoupdate README
Pierre-Marc Fournier [Tue, 6 Oct 2009 17:43:00 +0000 (13:43 -0400)] 
update README

14 years agousttrace: fix arg error handling
Pierre-Marc Fournier [Tue, 6 Oct 2009 00:15:18 +0000 (20:15 -0400)] 
usttrace: fix arg error handling

14 years agoREADME: add section on libinterfork
Pierre-Marc Fournier [Mon, 5 Oct 2009 20:16:12 +0000 (16:16 -0400)] 
README: add section on libinterfork

14 years agorename ust -> ustctl
Pierre-Marc Fournier [Mon, 5 Oct 2009 20:15:32 +0000 (16:15 -0400)] 
rename ust -> ustctl

14 years agousttrace: improve
Pierre-Marc Fournier [Mon, 5 Oct 2009 20:02:29 +0000 (16:02 -0400)] 
usttrace: improve

14 years agominor refactor of ustd to avoid deadlock
Pierre-Marc Fournier [Mon, 5 Oct 2009 19:55:19 +0000 (15:55 -0400)] 
minor refactor of ustd to avoid deadlock

Previously, we could have a deadlock between ustd and libust:

- libust connects to the ustd socket and waits for a reply
- while ustd is sending commands to the same libust to get
  information about a buffer

To fix this, info about a buffer to collect is retrieved from within
a different thread than the one that processes incoming commands.

14 years agoadd fork2
Pierre-Marc Fournier [Mon, 5 Oct 2009 19:54:07 +0000 (15:54 -0400)] 
add fork2

14 years agolibust: never inline functions that may be called from external components
Pierre-Marc Fournier [Mon, 5 Oct 2009 19:48:52 +0000 (15:48 -0400)] 
libust: never inline functions that may be called from external components

14 years agouse liburcu-bp
Pierre-Marc Fournier [Mon, 5 Oct 2009 19:40:54 +0000 (15:40 -0400)] 
use liburcu-bp

14 years agoustd: add fixme
Pierre-Marc Fournier [Thu, 1 Oct 2009 22:24:07 +0000 (18:24 -0400)] 
ustd: add fixme

14 years agoustd: fix warning
Pierre-Marc Fournier [Thu, 1 Oct 2009 22:23:54 +0000 (18:23 -0400)] 
ustd: fix warning

14 years agoustd: improve handling of remote app termination
Pierre-Marc Fournier [Tue, 29 Sep 2009 00:01:14 +0000 (20:01 -0400)] 
ustd: improve handling of remote app termination

14 years agoust.c: remove regex handling because it should be done in libust
Pierre-Marc Fournier [Mon, 28 Sep 2009 23:52:58 +0000 (19:52 -0400)] 
ust.c: remove regex handling because it should be done in libust

14 years agousterr: make error reporting functions signal safe
Pierre-Marc Fournier [Mon, 28 Sep 2009 23:49:53 +0000 (19:49 -0400)] 
usterr: make error reporting functions signal safe

Previously, they could cause corruption / lockings

14 years agomove patient_write to share.h because it now has multiple users
Pierre-Marc Fournier [Mon, 28 Sep 2009 23:55:27 +0000 (19:55 -0400)] 
move patient_write to share.h because it now has multiple users

14 years agoimprove fork handling
Pierre-Marc Fournier [Mon, 28 Sep 2009 23:49:02 +0000 (19:49 -0400)] 
improve fork handling

14 years agomake have_listener volatile because it is updated from signals
Pierre-Marc Fournier [Mon, 28 Sep 2009 23:46:08 +0000 (19:46 -0400)] 
make have_listener volatile because it is updated from signals

14 years agoimprove error handling
Pierre-Marc Fournier [Mon, 28 Sep 2009 23:45:47 +0000 (19:45 -0400)] 
improve error handling

14 years agoupdates for latest urcu
Pierre-Marc Fournier [Mon, 28 Sep 2009 23:42:34 +0000 (19:42 -0400)] 
updates for latest urcu

14 years agoupdate manual
Pierre-Marc Fournier [Mon, 28 Sep 2009 23:39:48 +0000 (19:39 -0400)] 
update manual

14 years agofix marker listing output
Pierre-Marc Fournier [Mon, 28 Sep 2009 20:08:34 +0000 (16:08 -0400)] 
fix marker listing output

14 years agoustd: stop collecting a process when it died will trying to put its subbuffer
Pierre-Marc Fournier [Fri, 25 Sep 2009 19:33:32 +0000 (15:33 -0400)] 
ustd: stop collecting a process when it died will trying to put its subbuffer

14 years agoustd: improve error and memory handling in get_subbuffer() and pub_subbuffer()
Pierre-Marc Fournier [Fri, 25 Sep 2009 19:28:53 +0000 (15:28 -0400)] 
ustd: improve error and memory handling in get_subbuffer() and pub_subbuffer()

14 years agolibust: cleanup usage of have_listener
Pierre-Marc Fournier [Fri, 25 Sep 2009 19:27:53 +0000 (15:27 -0400)] 
libust: cleanup usage of have_listener

14 years agoustd: change perror()s with PERROR()s
Pierre-Marc Fournier [Fri, 25 Sep 2009 19:25:49 +0000 (15:25 -0400)] 
ustd: change perror()s with PERROR()s

14 years agousterr: improve error reporting primitives
Pierre-Marc Fournier [Fri, 25 Sep 2009 19:24:33 +0000 (15:24 -0400)] 
usterr: improve error reporting primitives

14 years agoustcomm: improve error handling, and don't panic for nothing
Pierre-Marc Fournier [Fri, 25 Sep 2009 19:23:22 +0000 (15:23 -0400)] 
ustcomm: improve error handling, and don't panic for nothing

14 years agocorrectly close bc fds on fork
Pierre-Marc Fournier [Fri, 25 Sep 2009 19:18:16 +0000 (15:18 -0400)] 
correctly close bc fds on fork

14 years agoadd ust_potential_exec, to prepare for execs
Pierre-Marc Fournier [Fri, 25 Sep 2009 19:15:18 +0000 (15:15 -0400)] 
add ust_potential_exec, to prepare for execs

14 years agoadd pidunique concept
Pierre-Marc Fournier [Fri, 25 Sep 2009 19:14:52 +0000 (15:14 -0400)] 
add pidunique concept

14 years agolibinterfork: disable signals while forking and running ust_fork()
Pierre-Marc Fournier [Fri, 25 Sep 2009 16:04:45 +0000 (12:04 -0400)] 
libinterfork: disable signals while forking and running ust_fork()

14 years agolibinterfork: add and execve override
Pierre-Marc Fournier [Fri, 25 Sep 2009 16:03:06 +0000 (12:03 -0400)] 
libinterfork: add and execve override

14 years agolibinterfork: add usterr support
Pierre-Marc Fournier [Fri, 25 Sep 2009 16:00:55 +0000 (12:00 -0400)] 
libinterfork: add usterr support

14 years agoAdd ust java bindings
Pierre-Marc Fournier [Fri, 25 Sep 2009 15:55:48 +0000 (11:55 -0400)] 
Add ust java bindings

This first version is less efficient than the native ust. Moreover, all
java events share the same native event name.

14 years agoremove stray debugging message
Pierre-Marc Fournier [Wed, 16 Sep 2009 15:14:04 +0000 (11:14 -0400)] 
remove stray debugging message

14 years agolibust: improve cleanup on application end
Pierre-Marc Fournier [Wed, 16 Sep 2009 04:54:49 +0000 (00:54 -0400)] 
libust: improve cleanup on application end

14 years agofix warning
Pierre-Marc Fournier [Wed, 16 Sep 2009 04:54:10 +0000 (00:54 -0400)] 
fix warning

14 years agoustcomm: move function to destroy app socket to ustcomm
Pierre-Marc Fournier [Wed, 16 Sep 2009 04:52:38 +0000 (00:52 -0400)] 
ustcomm: move function to destroy app socket to ustcomm

14 years agorestore gettimeofday()-based time source
Pierre-Marc Fournier [Wed, 16 Sep 2009 04:47:52 +0000 (00:47 -0400)] 
restore gettimeofday()-based time source

Because we don't have appropriate frequency and scale functions
for the tsc time source, it can break lttv by producing timestamps
whose seconds value is too high, to the point it breaks lttv. So
for now, use gettimeofday().

14 years agoimprove error handling macros
Pierre-Marc Fournier [Wed, 16 Sep 2009 04:46:56 +0000 (00:46 -0400)] 
improve error handling macros

14 years agolibinterfork: fix warnings
Pierre-Marc Fournier [Wed, 16 Sep 2009 04:44:31 +0000 (00:44 -0400)] 
libinterfork: fix warnings

14 years agoadd missing tests/basic and tests/fork
Pierre-Marc Fournier [Sun, 13 Sep 2009 15:38:19 +0000 (11:38 -0400)] 
add missing tests/basic and tests/fork

14 years agousttrace; add multiple command-line options
Pierre-Marc Fournier [Fri, 11 Sep 2009 19:36:04 +0000 (15:36 -0400)] 
usttrace; add multiple command-line options

14 years agomake forking while tracing work correctly
Pierre-Marc Fournier [Fri, 11 Sep 2009 19:35:21 +0000 (15:35 -0400)] 
make forking while tracing work correctly

14 years agofix bug when deleting trace
Pierre-Marc Fournier [Fri, 11 Sep 2009 19:33:29 +0000 (15:33 -0400)] 
fix bug when deleting trace

The trace wasn't being deleted from the trace list.

14 years agoadd usttrace licence
Pierre-Marc Fournier [Thu, 10 Sep 2009 16:51:15 +0000 (12:51 -0400)] 
add usttrace licence

14 years agoupdate make system
Pierre-Marc Fournier [Thu, 10 Sep 2009 16:50:44 +0000 (12:50 -0400)] 
update make system

14 years agoadd usttrace script
Pierre-Marc Fournier [Wed, 9 Sep 2009 17:32:45 +0000 (13:32 -0400)] 
add usttrace script

14 years agoustd: add system to elegantly end daemon on SIGTERM, after waiting that all traces...
Pierre-Marc Fournier [Wed, 9 Sep 2009 16:15:42 +0000 (12:15 -0400)] 
ustd: add system to elegantly end daemon on SIGTERM, after waiting that all traces are complete

14 years agoustd: allow to choose the trace location and add command line option system
Pierre-Marc Fournier [Wed, 9 Sep 2009 16:12:18 +0000 (12:12 -0400)] 
ustd: allow to choose the trace location and add command line option system

14 years agoustd: specify ust component name for build
Pierre-Marc Fournier [Wed, 9 Sep 2009 15:53:31 +0000 (11:53 -0400)] 
ustd: specify ust component name for build

14 years agousterr: fix PERROR
Pierre-Marc Fournier [Wed, 9 Sep 2009 15:53:01 +0000 (11:53 -0400)] 
usterr: fix PERROR

14 years agoustd/ustcomm: allow to choose custom socket path
Pierre-Marc Fournier [Wed, 9 Sep 2009 15:51:42 +0000 (11:51 -0400)] 
ustd/ustcomm: allow to choose custom socket path

This is chosen with the -s option of ustd and, in the traced app,
with the UST_DAEMON_SOCKET environment variable.

14 years agofix keepalive system
Pierre-Marc Fournier [Tue, 8 Sep 2009 20:43:48 +0000 (16:43 -0400)] 
fix keepalive system

14 years agoadd a working keepalive system
Pierre-Marc Fournier [Tue, 8 Sep 2009 20:20:29 +0000 (16:20 -0400)] 
add a working keepalive system

This circumvents the problem of the program finishing before the daemon could connect to it.

14 years agocleanup
Pierre-Marc Fournier [Tue, 8 Sep 2009 18:21:54 +0000 (14:21 -0400)] 
cleanup

14 years agomake inform_consumer_daemon() generic
Pierre-Marc Fournier [Tue, 8 Sep 2009 18:10:58 +0000 (14:10 -0400)] 
make inform_consumer_daemon() generic

14 years agocleanups
Pierre-Marc Fournier [Tue, 8 Sep 2009 18:01:17 +0000 (14:01 -0400)] 
cleanups

14 years agoadd basic_long test program
Pierre-Marc Fournier [Tue, 8 Sep 2009 17:56:39 +0000 (13:56 -0400)] 
add basic_long test program

14 years agoupdate error system
Pierre-Marc Fournier [Tue, 8 Sep 2009 17:55:42 +0000 (13:55 -0400)] 
update error system

14 years agolibust: improve support for regex marker specification
Pierre-Marc Fournier [Thu, 3 Sep 2009 15:25:06 +0000 (11:25 -0400)] 
libust: improve support for regex marker specification

14 years agocode cleanups
Pierre-Marc Fournier [Wed, 2 Sep 2009 14:42:49 +0000 (10:42 -0400)] 
code cleanups

14 years agoadd regex support for marker names
Pierre-Marc Fournier [Wed, 2 Sep 2009 14:42:25 +0000 (10:42 -0400)] 
add regex support for marker names

by Philippe Proulx

14 years agoust rewritten for using libustcmd
Philippe Proulx [Mon, 20 Jul 2009 16:41:39 +0000 (12:41 -0400)] 
ust rewritten for using libustcmd

14 years agocleanup libustcmd patch
Pierre-Marc Fournier [Tue, 1 Sep 2009 17:39:49 +0000 (13:39 -0400)] 
cleanup libustcmd patch

14 years agoadd libustcmd
Philippe Proulx [Tue, 1 Sep 2009 17:21:07 +0000 (13:21 -0400)] 
add libustcmd

14 years agoustd: be more intelligent and verbose when opening traces for output
Pierre-Marc Fournier [Thu, 30 Jul 2009 19:34:41 +0000 (15:34 -0400)] 
ustd: be more intelligent and verbose when opening traces for output

- report errors
- create dirs if not present

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