ust.git
14 years agoFix DBG to ERR for data format mismatch
David Goulet [Thu, 9 Sep 2010 16:55:45 +0000 (18:55 +0200)] 
Fix DBG to ERR for data format mismatch

Signed-off-by: David Goulet <david.goulet@polymtl.ca>
Acked-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
14 years agoFix return value handling for libustcmd
David Goulet [Tue, 7 Sep 2010 20:26:12 +0000 (22:26 +0200)] 
Fix return value handling for libustcmd

Return value was not checked correctly so this was
triggering a free() on an invalid pointer causing
ustctl to fail badly.

Signed-off-by: David Goulet <david.goulet@polymtl.ca>
14 years agoChange malloc to zmalloc for libust
David Goulet [Tue, 7 Sep 2010 13:03:41 +0000 (15:03 +0200)] 
Change malloc to zmalloc for libust

Signed-off-by: David Goulet <david.goulet@polymtl.ca>
14 years agoFix missing data pointer for trace_mark_tp v2
David Goulet [Fri, 3 Sep 2010 19:15:28 +0000 (21:15 +0200)] 
Fix missing data pointer for trace_mark_tp v2

Signed-off-by: David Goulet <david.goulet@polymtl.ca>
14 years agoFix retval value assignment on error
David Goulet [Fri, 3 Sep 2010 16:37:51 +0000 (18:37 +0200)] 
Fix retval value assignment on error

Signed-off-by: David Goulet <david.goulet@polymtl.ca>
14 years agoFix asprintf and scanf ignoring return value
David Goulet [Fri, 3 Sep 2010 21:09:25 +0000 (23:09 +0200)] 
Fix asprintf and scanf ignoring return value

Signed-off-by: David Goulet <david.goulet@polymtl.ca>
14 years agoFix a broken test makefile
Nils Carlson [Wed, 1 Sep 2010 13:54:08 +0000 (15:54 +0200)] 
Fix a broken test makefile

The makefile was missing the header file in the sources list and
so was failing make distcheck.

14 years agoUpdate test-case for tracepoints and add a new test-case
Nils Carlson [Tue, 31 Aug 2010 13:45:08 +0000 (15:45 +0200)] 
Update test-case for tracepoints and add a new test-case

Update the test-case for probes to handle a new data pointer
in the probe function. Also add a new test-case that stress-tests
probe registration and unregistration.

14 years agoAdd a data pointer to all tracepoint probe callbacks
Nils Carlson [Tue, 31 Aug 2010 13:10:59 +0000 (15:10 +0200)] 
Add a data pointer to all tracepoint probe callbacks

RCU now dereferences an array of probe structs containing data pointers and
function pointers, and passes the data pointer as the first argument to the
probe.

Due to this change void prototypes are no longer allowed, which has incurred
changes to libust-initializer.c .

This patch also fixes a problem where non-existent tracepoints are present
in the __tracepoints section and with a name pointer pointing at NULL.

14 years agoAdd a simple test case for TRACE_EVENT v2
Nils Carlson [Mon, 30 Aug 2010 08:23:04 +0000 (10:23 +0200)] 
Add a simple test case for TRACE_EVENT v2

The test case is useful for verifying compilation of the simplest
possible TRACE_EVENT.

Changes since version 1:
Added copyright notices
updated run with UST_AUTOCOLLECT per Davids comment.

14 years agoImport TRACE_EVENT macro from the kernel v3
Nils Carlson [Mon, 30 Aug 2010 08:22:53 +0000 (10:22 +0200)] 
Import TRACE_EVENT macro from the kernel v3

This is a slightly modified version of the TRACE_EVENT
macro from the kernel, TP_printf has replaced TP_printk.

The TRACE_EVENT macro expansion is currently a dummy which
only expands to a printf probe, connected in a constructor.

Changes since version 2:
Added re-licensing information
Macro naming is more consisten (always contains trace)

Changes since version 1:
Added new headers to include/Makefile.am
Added major copyright holders and license information to headers.

14 years agoAdd LGPLv2.1 license text
Nils Carlson [Mon, 30 Aug 2010 08:22:40 +0000 (10:22 +0200)] 
Add LGPLv2.1 license text

14 years agoupdate ustctl man page
Pierre-Marc Fournier [Tue, 24 Aug 2010 03:42:45 +0000 (23:42 -0400)] 
update ustctl man page

14 years agoFinal updates for release 0.7 v0.7
Pierre-Marc Fournier [Fri, 20 Aug 2010 04:42:41 +0000 (00:42 -0400)] 
Final updates for release 0.7

14 years agoChanges malloc to zmalloc
David Goulet [Wed, 18 Aug 2010 17:10:32 +0000 (13:10 -0400)] 
Changes malloc to zmalloc

For libustcomm, libustd, ustctl and ustd.

Signed-off-by: David Goulet <david.goulet@polymtl.ca>
14 years agoRemoves useless ___cacheline_aligned
David Goulet [Wed, 18 Aug 2010 21:25:15 +0000 (17:25 -0400)] 
Removes useless ___cacheline_aligned

Signed-off-by: David Goulet <david.goulet@polymtl.ca>
14 years agoUpdates Changelog for UST version 0.6
David Goulet [Tue, 17 Aug 2010 18:47:00 +0000 (14:47 -0400)] 
Updates Changelog for UST version 0.6

Signed-off-by: David Goulet <david.goulet@polymtl.ca>
14 years agoUST strncpy assert fix
Mathieu Desnoyers [Tue, 17 Aug 2010 22:23:21 +0000 (18:23 -0400)] 
UST strncpy assert fix

fix off by one in strncpy and write asserts(). Shows only when the event
reserved fits the exact end of buffer.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
14 years agoproperly install libustd and libustcmd
Alexis Hallé [Wed, 18 Aug 2010 15:54:26 +0000 (11:54 -0400)] 
properly install libustd and libustcmd

14 years agodon't install libustcomm and libustsnprintf
Alexis Hallé [Wed, 4 Aug 2010 15:18:17 +0000 (11:18 -0400)] 
don't install libustcomm and libustsnprintf

These internal libraries should not be exposed to users and were
only installed by mistake.

14 years agoremove dependency on ustcomm.h where possible
Alexis Hallé [Wed, 4 Aug 2010 15:18:16 +0000 (11:18 -0400)] 
remove dependency on ustcomm.h where possible

ustcomm structures are replaced with pointers so the compiler doesn't
have to know the contents of the structures. This is done so ustcmd.h
and libustd.h can be installed on a system without needing to install
ustcomm.h.

14 years agoremove unused variables
Alexis Hallé [Wed, 4 Aug 2010 15:18:15 +0000 (11:18 -0400)] 
remove unused variables

14 years agoFinal updates for release 0.6 v0.6
Pierre-Marc Fournier [Mon, 16 Aug 2010 04:49:20 +0000 (00:49 -0400)] 
Final updates for release 0.6

14 years agoserialize string input robustness
Mathieu Desnoyers [Sun, 15 Aug 2010 23:11:37 +0000 (19:11 -0400)] 
serialize string input robustness

Make sure we handle concurrently modified input strings gracefully.

Adds ust_buffers_strncpy interface. It fixes up the string if it does not fills
exactly the space allocated. Ensures the string ends with \0.

Removes unused "_ust_buffers_write" at the same time.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
14 years agoUST synchronization fix
Mathieu Desnoyers [Wed, 11 Aug 2010 14:13:42 +0000 (10:13 -0400)] 
UST synchronization fix

Missing smp_wmb() at subbuffer switch.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
14 years agofix invalid array access
Pierre-Marc Fournier [Tue, 3 Aug 2010 03:13:32 +0000 (23:13 -0400)] 
fix invalid array access

reported by Damien Cottier

14 years agoustctl manpage: document force-switch
Alexis Hallé [Wed, 14 Jul 2010 18:52:01 +0000 (14:52 -0400)] 
ustctl manpage: document force-switch

14 years agoadd a command to force subbuffer switch
Alexis Hallé [Wed, 14 Jul 2010 18:52:00 +0000 (14:52 -0400)] 
add a command to force subbuffer switch

14 years agoremove ltt_relay_buffer_flush function
Alexis Hallé [Wed, 14 Jul 2010 18:51:59 +0000 (14:51 -0400)] 
remove ltt_relay_buffer_flush function

All it did was call ltt_force_switch and wake up consumers, when
ltt_force_switch already wakes up the consumers.

14 years agoustctl manpage: document get/set-sock-path
Alexis Hallé [Wed, 14 Jul 2010 18:51:58 +0000 (14:51 -0400)] 
ustctl manpage: document get/set-sock-path

14 years agoadd get/set commands for daemon socket path
Alexis Hallé [Wed, 14 Jul 2010 18:51:57 +0000 (14:51 -0400)] 
add get/set commands for daemon socket path

14 years agocreate libustd from ustd
Alexis Hallé [Wed, 14 Jul 2010 18:51:56 +0000 (14:51 -0400)] 
create libustd from ustd

This makes libustd a library containing the core functionality of
the daemon, and ustd a simple client application using this library,
interacting with it via a set of callbacks supplied to it.

14 years agoadd paranoid check before listener thread destruction
Pierre-Marc Fournier [Thu, 15 Jul 2010 01:05:16 +0000 (21:05 -0400)] 
add paranoid check before listener thread destruction

In case a pthread error prevented its creation.

14 years agodefine ____cacheline_aligned
Pierre-Marc Fournier [Tue, 6 Jul 2010 00:04:06 +0000 (20:04 -0400)] 
define ____cacheline_aligned

14 years agoFix directory creation mode. Unless umask is set to 0 the default umask of the system...
David Goulet [Thu, 24 Jun 2010 16:32:29 +0000 (12:32 -0400)] 
Fix directory creation mode. Unless umask is set to 0 the default umask of the system, commonly 022, will be used and thus it becomes impossible to get the 777 mode.

14 years agoUST marker.h
David Goulet [Wed, 23 Jun 2010 21:17:39 +0000 (17:17 -0400)] 
UST marker.h

Modification nécessaire pour faire des custom probes avec trace_mark_tp.
Sous la recommandation de Michel et Mathieu, il était mieux d'utiliser
cela pour les tests de profilage que des trace_mark ou des tracepoints.

Ceci étant dit, les résultats avec un test de profilage que j'ai monté,
contenant 3 tracepoints, le average perevent était de ~65ns.

Maintenant, résultats préliminaires avec les custom probes sur le même
test suite que les trace_mark et tracepoints :

Average time per event                  : 0.0000000159 (sec), 0.00002
(msec), 0.01587 (usec), 15.86718 (nsec)

Best time [RUN 5]                       : 0.0000000154 (sec), 0.00002
(msec), 0.01536 (usec), 15.35519 (nsec)
Worst time [RUN 6]                      : 0.0000000166 (sec), 0.00002
(msec), 0.01659 (usec), 16.59236 (nsec)
Standard Deviation                      : 0.0000000004 (sec), 0.00000
(msec), 0.00038 (usec), 0.38116 (nsec)

Quand même! ;)

Bref, je continue mais si tu veux commenter ou proposer des tests, fait
moi signe.

A plus
David

From e1fc903e0cedfc21895b2ad952bb6127d0b3b853 Mon Sep 17 00:00:00 2001
From: David Goulet <david.goulet@polymtl.ca>
Date: Wed, 23 Jun 2010 17:04:45 -0400
Subject: [PATCH] Fixed __trace_mark_tp_counter with the usage of
 DEFINE_MARKER_TP macro. Down to 5 arguments instead of 7
 and added registers struct missing. Now, custom probes
 can be used within UST with trace_mark_tp function

14 years agoRemoving NO_IPI ifdef for memory barrier. The smp_wmb should be used all the time...
David Goulet [Wed, 30 Jun 2010 13:04:41 +0000 (09:04 -0400)] 
Removing NO_IPI ifdef for memory barrier. The smp_wmb should be used all the time here.

Signed-off-by: David Goulet <david.goulet@polymtl.ca>
14 years agoFinal updates for release 0.5 v0.5
Pierre-Marc Fournier [Thu, 1 Jul 2010 04:31:10 +0000 (00:31 -0400)] 
Final updates for release 0.5

14 years agoupdate doc for next release
Pierre-Marc Fournier [Thu, 1 Jul 2010 04:07:37 +0000 (00:07 -0400)] 
update doc for next release

14 years agofix regression of GDB support
Pierre-Marc Fournier [Thu, 1 Jul 2010 02:27:01 +0000 (22:27 -0400)] 
fix regression of GDB support

Address of marker was not reported correctly. Fix by Pedro Alves.

14 years agotracectl.c: add description comment
Pierre-Marc Fournier [Thu, 1 Jul 2010 02:26:32 +0000 (22:26 -0400)] 
tracectl.c: add description comment

14 years agoupdate READMEs
Pierre-Marc Fournier [Thu, 1 Jul 2010 02:25:25 +0000 (22:25 -0400)] 
update READMEs

14 years agoadd info about what dirs/files are doing
Pierre-Marc Fournier [Wed, 2 Jun 2010 15:47:24 +0000 (11:47 -0400)] 
add info about what dirs/files are doing

14 years agoadd environment variables to set subbuffer options
Alexis Hallé [Fri, 28 May 2010 17:10:37 +0000 (13:10 -0400)] 
add environment variables to set subbuffer options

UST_SUBBUF_SIZE and UST_SUBBUF_NUM control respectively the size and
number of subbuffers. Options -S and -N in the usttrace script also
control these parameters.

14 years agoupdate README
Pierre-Marc Fournier [Mon, 31 May 2010 16:10:35 +0000 (12:10 -0400)] 
update README

14 years agomake RUNLTTV configurable in trace_matches
Alexis Hallé [Wed, 26 May 2010 16:24:18 +0000 (12:24 -0400)] 
make RUNLTTV configurable in trace_matches

14 years agoupdate -W help in the usttrace man page
Pierre-Marc Fournier [Fri, 28 May 2010 16:06:40 +0000 (12:06 -0400)] 
update -W help in the usttrace man page

14 years agoChanges testcases in runtests to use TAP
Nils Carlson [Fri, 28 May 2010 08:21:47 +0000 (10:21 +0200)] 
Changes testcases in runtests to use TAP

TAP - Test Anything Protocol is an easy to parse test protocol.

14 years agoupdate manual
Pierre-Marc Fournier [Thu, 27 May 2010 20:10:13 +0000 (16:10 -0400)] 
update manual

14 years agoupdate README
Pierre-Marc Fournier [Thu, 27 May 2010 20:03:31 +0000 (16:03 -0400)] 
update README

14 years agoupdate manual
Pierre-Marc Fournier [Thu, 27 May 2010 19:58:36 +0000 (15:58 -0400)] 
update manual

14 years agoblock all signals in listener thread
Pierre-Marc Fournier [Thu, 27 May 2010 16:01:12 +0000 (12:01 -0400)] 
block all signals in listener thread

Not doing this can result in a situation where all the other application
threads have a signal blocked, and the listener thread, not having it blocked,
lets the signal handler execute. Therefore, in order to be as transparent as
possible to the application, we have to block signals.

14 years agodocumentation update
Pierre-Marc Fournier [Wed, 26 May 2010 22:32:59 +0000 (18:32 -0400)] 
documentation update

14 years agoReplace gettimeofday() with clock_gettime(CLOCK_MONOTONIC,...)
Pierre-Marc Fournier [Wed, 26 May 2010 16:32:36 +0000 (12:32 -0400)] 
Replace gettimeofday() with clock_gettime(CLOCK_MONOTONIC,...)

Contributed by Nils Carlson.

14 years agoremove mutex_lock, mutex_unlock macros
Pierre-Marc Fournier [Mon, 24 May 2010 03:55:13 +0000 (23:55 -0400)] 
remove mutex_lock, mutex_unlock macros

14 years agotest for two markers on the same line
Oussama El Mfadli [Wed, 12 May 2010 20:12:42 +0000 (16:12 -0400)] 
test for two markers on the same line

14 years agousttrace man page update
Alexis Hallé [Thu, 13 May 2010 17:29:21 +0000 (13:29 -0400)] 
usttrace man page update

14 years agoTest for a dynamically linked library
Oussama El Mfadli [Fri, 14 May 2010 20:56:55 +0000 (16:56 -0400)] 
Test for a dynamically linked library

Correction of dynamic library marked test

14 years agoruntests: remove unimplemented test
Pierre-Marc Fournier [Fri, 21 May 2010 19:09:44 +0000 (15:09 -0400)] 
runtests: remove unimplemented test

14 years agoadd average script
Pierre-Marc Fournier [Thu, 20 May 2010 17:10:07 +0000 (13:10 -0400)] 
add average script

14 years agoadd missing ptime for benchmark
Pierre-Marc Fournier [Mon, 17 May 2010 16:53:19 +0000 (12:53 -0400)] 
add missing ptime for benchmark

14 years agoupdate tracepoints example with api updates
Pierre-Marc Fournier [Thu, 13 May 2010 21:08:39 +0000 (17:08 -0400)] 
update tracepoints example with api updates

14 years agoUpdate benchmark
Pierre-Marc Fournier [Tue, 11 May 2010 21:01:07 +0000 (17:01 -0400)] 
Update benchmark

14 years agofix power of two computation
Pierre-Marc Fournier [Tue, 27 Apr 2010 20:08:09 +0000 (16:08 -0400)] 
fix power of two computation

14 years agofix warning
Pierre-Marc Fournier [Tue, 27 Apr 2010 19:11:57 +0000 (15:11 -0400)] 
fix warning

14 years agofix bootstrapping
Pierre-Marc Fournier [Tue, 27 Apr 2010 18:50:30 +0000 (14:50 -0400)] 
fix bootstrapping

14 years agochange to silent compilation
Pierre-Marc Fournier [Tue, 27 Apr 2010 18:40:48 +0000 (14:40 -0400)] 
change to silent compilation

14 years agoAdd support for ppc hw tb clock, remove kernelcompat.h
Pierre-Marc Fournier [Fri, 23 Apr 2010 15:31:52 +0000 (11:31 -0400)] 
Add support for ppc hw tb clock, remove kernelcompat.h

14 years agoadd a .gitignore for java
Pierre-Marc Fournier [Fri, 16 Apr 2010 14:28:18 +0000 (10:28 -0400)] 
add a .gitignore for java

14 years agoadd custom probes support and update tracepoints
Pierre-Marc Fournier [Fri, 16 Apr 2010 14:27:47 +0000 (10:27 -0400)] 
add custom probes support and update tracepoints

14 years agoremove some unused code
Pierre-Marc Fournier [Fri, 16 Apr 2010 14:17:35 +0000 (10:17 -0400)] 
remove some unused code

14 years agoPort to PowerPC 32
Pierre-Marc Fournier [Mon, 19 Apr 2010 22:35:44 +0000 (18:35 -0400)] 
Port to PowerPC 32

14 years agojhash: add cast
Pierre-Marc Fournier [Tue, 13 Apr 2010 17:58:31 +0000 (13:58 -0400)] 
jhash: add cast

14 years agocompile with -fno-strict-aliasing
Pierre-Marc Fournier [Tue, 13 Apr 2010 17:45:30 +0000 (13:45 -0400)] 
compile with -fno-strict-aliasing

14 years agoadd support for channel overwrite and non-collection
Pierre-Marc Fournier [Wed, 7 Apr 2010 18:36:42 +0000 (14:36 -0400)] 
add support for channel overwrite and non-collection

14 years agoupdate TODO
Pierre-Marc Fournier [Wed, 7 Apr 2010 18:33:38 +0000 (14:33 -0400)] 
update TODO

14 years agoAdd manpages for ustd, ustctl, and usttrace
Jon Bernard [Thu, 25 Mar 2010 19:20:57 +0000 (15:20 -0400)] 
Add manpages for ustd, ustctl, and usttrace

14 years agotestsuite: update for libmallocwrap rename to libustinstr-malloc
Pierre-Marc Fournier [Thu, 25 Mar 2010 15:59:09 +0000 (11:59 -0400)] 
testsuite: update for libmallocwrap rename to libustinstr-malloc

14 years agobenchmark: fix various problems
Pierre-Marc Fournier [Thu, 25 Mar 2010 15:31:00 +0000 (11:31 -0400)] 
benchmark: fix various problems

14 years agobenchmark: fix makefile
Pierre-Marc Fournier [Thu, 25 Mar 2010 15:29:45 +0000 (11:29 -0400)] 
benchmark: fix makefile

14 years agobenchmark tool
Douglas Santos [Thu, 18 Mar 2010 21:45:50 +0000 (17:45 -0400)] 
benchmark tool

14 years agoremove unused consumer_stack
Pierre-Marc Fournier [Tue, 23 Mar 2010 05:25:19 +0000 (01:25 -0400)] 
remove unused consumer_stack

14 years agofix pthread error handling
Pierre-Marc Fournier [Tue, 23 Mar 2010 05:25:02 +0000 (01:25 -0400)] 
fix pthread error handling

14 years agomarkers/tracepoints: implement library unregistration
Pierre-Marc Fournier [Tue, 23 Mar 2010 04:16:10 +0000 (00:16 -0400)] 
markers/tracepoints: implement library unregistration

14 years agoreplace hardcoded value with define
Pierre-Marc Fournier [Tue, 23 Mar 2010 04:15:08 +0000 (00:15 -0400)] 
replace hardcoded value with define

14 years agoupdate ChangeLog
Pierre-Marc Fournier [Wed, 17 Mar 2010 18:25:38 +0000 (14:25 -0400)] 
update ChangeLog

14 years agoFinal updates for release 0.4 v0.4
Pierre-Marc Fournier [Wed, 17 Mar 2010 18:07:05 +0000 (14:07 -0400)] 
Final updates for release 0.4

14 years agoupdate READMEs for the next release
Pierre-Marc Fournier [Wed, 17 Mar 2010 17:52:44 +0000 (13:52 -0400)] 
update READMEs for the next release

14 years agorename libmallocwrap -> libustinstr-malloc
Pierre-Marc Fournier [Wed, 17 Mar 2010 17:49:09 +0000 (13:49 -0400)] 
rename libmallocwrap -> libustinstr-malloc

14 years agorename libinterfork -> libustfork
Pierre-Marc Fournier [Wed, 17 Mar 2010 16:23:17 +0000 (12:23 -0400)] 
rename libinterfork -> libustfork

14 years agofix distribution bugs for 0.4
Pierre-Marc Fournier [Wed, 17 Mar 2010 15:40:13 +0000 (11:40 -0400)] 
fix distribution bugs for 0.4

- include include/ust/kcompat/kcompat.h in the distribution
- include test machinery scripts in the distribution

14 years agoupdate TODO
Pierre-Marc Fournier [Wed, 17 Mar 2010 03:58:15 +0000 (23:58 -0400)] 
update TODO

14 years agotracectl: remove unused function
Pierre-Marc Fournier [Wed, 17 Mar 2010 03:56:19 +0000 (23:56 -0400)] 
tracectl: remove unused function

14 years agoremove fcntl(O_NONBLOCK) on consumer notify fd
Pierre-Marc Fournier [Wed, 17 Mar 2010 03:55:02 +0000 (23:55 -0400)] 
remove fcntl(O_NONBLOCK) on consumer notify fd

We only read it one byte at a time, when poll as reported some data
available anyway.

14 years agoremove debugging printf
Pierre-Marc Fournier [Wed, 17 Mar 2010 03:31:16 +0000 (23:31 -0400)] 
remove debugging printf

14 years agoruntests: add a ustd/valgrind check
Pierre-Marc Fournier [Wed, 17 Mar 2010 03:30:53 +0000 (23:30 -0400)] 
runtests: add a ustd/valgrind check

14 years agoustd: move a free in the error handling path
Pierre-Marc Fournier [Wed, 17 Mar 2010 03:30:29 +0000 (23:30 -0400)] 
ustd: move a free in the error handling path

14 years agoustd: update ustd signal handling to avoid wakeups every 100 ms
Pierre-Marc Fournier [Tue, 16 Mar 2010 22:44:33 +0000 (18:44 -0400)] 
ustd: update ustd signal handling to avoid wakeups every 100 ms

14 years agofix warning on incorrect function prototype
Pierre-Marc Fournier [Tue, 16 Mar 2010 20:55:47 +0000 (16:55 -0400)] 
fix warning on incorrect function prototype

14 years agomove libkcompat inside ust
Pierre-Marc Fournier [Tue, 16 Mar 2010 20:53:35 +0000 (16:53 -0400)] 
move libkcompat inside ust

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