Fix: Memory leaks when calling get_cmdline_by_pid
[lttng-tools.git] / ChangeLog
1 2012-12-20 lttng-tools 2.1.0 (13th Baktun)
2 * STABLE VERSION 2.1.0-stable - "Basse Messe"
3 * Multiple minor fixes
4 * Multiple memory and fd leaks
5 * Fix: Off by one in seq num for data pending command
6 * Fix: flag metadata stream on quiescent control cmd
7 * Fix: prioritize control socket communication in relayd
8 * Fix: poll and epoll fd set reallocation
9 * Fix: add missing goto pending if data is inflight
10 * Fix: remove ua_sess->started assert on stop trace
11 * Set classes of traffic in high_throughput_limit
12 * Fix: use the poll wait ret value when iterating on fd(s)
13 * Fix: force the poll() return value to be nb_fd
14 * Fix: Wrong check of node when cleaning up ht
15 * Fix: set started flag of ust app after ustctl
16 * Fix: memory leak in add relayd socket error path
17 * Fix: add packed attribute to filter structure
18 * Fix: Add missing health code update for consumer command
19 * Add LTTNG_PACKED macro
20 * Fix data pending for inflight streaming
21 * Map session id of relayd and sessiond in consumer
22 * Add the relayd create session command
23 * Make the consumer sends a ACK after each command
24 * Remove MSG_WAITALL on every recvmsg() socket typ
25 * Fix: Add missing relayd ht cleanup and ht destroy
26 * Fix: Relayd and sessiond version check
27 * Fix: protect consumer_find_channel with rcu locking
28 * Fix: don't steal key when adding a metadata stream
29 * Consumer hold stream mutex for add stream
30
31 2012-12-03 lttng-tools 2.1.0-rc9
32 * Fix: set the stream ht static in consumer file
33 * Update sessiond man page with new env var
34 * Update lttng.1 man page
35 * Fix: enable-consumer for all domains missing dir
36 * Fix: Add missing fct prototypes when disabling UST
37 * Fix a typo in lttng-probe-module name
38 * Assign values to enum lttcomm_sessiond_command
39 * Fix: run health test only if root
40 * Clarify empty string/NULL filter errors
41 * Fix: add missing padding for UST filter
42
43 2012-11-22 lttng-tools 2.1.0-rc8
44 * Fix: Uninit. variable in lttng view
45 * Add already enabled UST event error code
46 * lttng.h API update: set filter becomes enable event with filter
47 * Change the UST event hash table match function
48 * Pass lttng_event struct to the set_filter API call
49 * Adding context to an event is no longer possible
50 * Add UST overlap tests
51 * Add filter sequence number to UST
52 * Fix: Typo from a previous patch in an assert()
53 * Fix: Warn if session is running with lttng view
54 * Fix: Add bash requirement to README for make check
55 * Fix: add the notion of domain to lttng.1 man page
56 * Enable additional kernel probes
57 * Update CodingStyle
58 * Use the new functions for default subbuf sizes
59 * Add default subbuf sizes getter functions
60 * Add max() and min() macro in common
61
62 2012-11-13 lttng-tools 2.1.0-rc7
63 * Fix: Add pointer check when freeing poll events
64 * Fix: FD leak on thread error
65 * Fix: Wrong fd used by kernel_wait_quiescent
66 * Support new lttng-ust error code
67 * Fix: Don't set filter if enable event fails
68 * Fix: Wrong data port when listing session
69 * Fix: Enable event after start command
70 * Fix: Teardown of thread_manage_clients on failure of listen/create_poll
71 * Add a timeout to UST application socket
72 * Fix: Consumerd error socket connect race
73 * Fix: Set CLOEXEC flag on every created sockets
74 * Remove consumer poll timeout in data thread
75 * Fix: RCU hash table seed
76 * Fix: Do not install health tests helper libraries
77 * Fix: Create default channel on add-context if none
78 * Support new liblttng-ust-ctl error code
79 * Fix: Add EPIPE error handling on buffer splice
80 * Fix: Channel creation error return code was not set
81 * Fix: Wrong poll events on UST application socket
82 * Fix: Remove dependency to urcu-cds in tools tests
83 * Fix: Missing librt dependency in configure check for lttng-ust-ctl
84 * Fix: Don't append datetime to default session name
85 * Fix: Deny session creation name 'auto'
86 * Fix: Add space for stream name CPU number
87 * Fix: Add output option to enable-channel command
88
89 2012-11-02 lttng-tools 2.1.0-rc6
90 * Tests: Add filtering tests for uncovered cases
91 * Fix: Sync issue when deleting a data stream
92 * Rename data_available to data_pending
93 * Fix: consumer health state
94 * Fix: Add the ACCOUNTING flag to ht creation and set bucket size to 0
95 * Fix: Bad return error code handling
96 * Fix: Use after free() of the rundir string
97 * Fix: Cleanup UST app session on ustctl create session error
98 * Fix: add missing pthread_join in sessiond
99 * Fix: free running directory string
100 * Fix: UST app clean list node usage
101 * Add liblttng-ctl destructor to cleanup memory
102 * Fix: Cleanup URIs on teardown
103 * Fix: relayd memleaks
104 * Fix: Memory leaks of allocated URIs
105 * Fix: consumer output memory leak on creation
106 * Fix: missing addrlen initialization before accept(2)
107 * Fix: relayd trace file padding memleak
108 * Fix: Remove useless consumer subdir string concatenation
109 * Fix: lttng create allocated path memleak
110 * Fix: Cppcheck memleakOnRealloc mistake
111 * Fix: Synchronization issue for data available command
112 * Fix: consumer relayd cleanup on disconnect
113 * Fix: Handle the unary bitwise negation operator (~) in the XML printer
114 * Fix: Possible memory leaks when creating filter IR root node
115 * Fix: Delete stream on write error in consumer
116 * Fix: Error handling when sending relayd sockets to consumer
117 * Add stream lock comment for nesting
118 * Fix: Mutex and RCU lock nesting in consumer
119 * Fix: Uninitialized ret code
120 * Fix: Remove bad condition and fix overflow issue
121 * Fix: consumerd pthread error flow
122 * Fix: Set a single return point and mutex unlock
123 * Fix: Remove useless NULL and zero assignment
124 * Fix: segfault on create session with two URLs
125
126 2012-10-22 lttng-tools 2.1.0-rc5
127 * Fix: Remove network stream ID ABI calls
128 * Tests: Add filtering tests
129 * Wait for data availability when stopping a session
130 * Relayd data available command support
131 * Lib lttng-ctl data available command support
132 * Consumer daemon data available command support
133 * Add data structure for the data available command
134 * Change the metadata hash table node
135 * Make stream hash tables global to the consumer
136 * Move add data stream to the data thread
137 * Rename consumer threads and spawn them in daemon
138 * Fix: relayd close stream command was not working
139 * Fix: Relayd and consumerd socket leaks
140 * Fix: Missing -ENODATA handling in the consumer
141 * Fix: Empty metadata buffer(s) on HUP|ERR
142 * ABI with support for compat 32/64 bits
143 * Fix: Stream allocation and insertion consistency
144 * Fix: output number of bytes written by relayd
145 * Add hash table argument to helper functions
146 * Fix: Add missing call rcu and read side lock
147 * Tests: Fix LD_PRELOAD library lookup path for health tests
148 * Fix: Add arbitrary wait period for kernel streaming test
149 * Fix coding style and add/change debug statements
150 * Fix: Build out of src tree
151 * Tests: Add health check tests to configure
152 * Tests: Add health check thread stall test
153 * Tests: Add health check thread exit test
154 * Tests: Add a health check utility program
155 * Add testpoints in lttng-sessiond for each threads
156 * New testpoint mechanism to instrument binaries for testing
157 * Fix: off-by-one in comm proto between lttng-ctl and sessiond
158 * Fix: Metadata stream leak when received in consumer
159 * Fix: consumer_allocate_stream error handling
160 * Fix: consumer should await for initial streams
161 * Fix: Missing rcu read side lock in consumer
162
163 2012-09-26 lttng-tools 2.1.0-rc4
164 * Fix: Change sempahore to pthread conditions
165 * Fix: relayd relay_send_version: handle sscanf return code
166 * Fix relayd: NULL ptr deref
167 * Fix: relayd: possible NULL ptr deref, memory leak, accept fd leak
168 * Tests: add print bytecode to filter grammar test
169 * Cleanup: assign values to bytecode opcodes
170 * Fix: Filter: Fix allocation length error
171 * Fix: Filter: add missing ast free
172 * Tests: Add high throughput with bandwidth limits test
173 * Fix: Returned code when listing kernel channel
174 * Tests: Rename helper functions to have consistent names
175 * Tests: Cleanup redundant code and use printing helper functions
176 * Tests: Add helper functions for printing status and banner
177 * Tests: Add a check for color support when printing status
178 * Fix: Lib lttng-ctl on error returns lttng code
179 * Fix: lttng_set_event_filter() was returning bad error code
180 * Fix: printing [no write] on lttng list -uf
181 * Fix: Disable event on filter error with lttng
182 * Fix: Wrong returned error code on UST enable event
183 * Add consumer commands to lttng.1 man page
184 * Add lttng_health_check(3) man page
185 * Fix: Remove LPOLLNVAL from consumer metadata revents
186 * Fix: Mismatch of field name between ust and tools
187 * Add the written value when listing fields
188 * Fix: Consumer return value check after mmap/splice
189 * Don't send the subbuffer padding for streaming
190 * Fix: Returned error code in consumer on read buffer
191
192 2012-09-12 lttng-tools 2.1.0-rc3
193 * Fix: Relayd fix ret value when adding a connection
194 * Add new thread in consumer for metadata handling
195 * Fix: consumer recv command error path
196 * Fix filter: fix recent regressions
197 * Update lttng-ust-abi.h from upstream lttng-ust
198 * Fix: Accept bytecode of length 65536 bytes
199 * Fix: Generation of bytecode longer than 32768 bytes fails
200 * Fix: Filter bytecode alloc buffer size must be a power of 2
201 * Add lttng-ctl SWIG python bindings
202 * Add C++ support to API header files
203 * Librarify filter in liblttng-ctl and hide symbols
204 * Set hidden visibility for calls used in lttng-ctl
205 * Notify the user if a filter is already enabled
206 * Install lttng-error.h and include it in lttng.h
207 * Add lttng-error.h containing every API err. code
208 * Fix: missing hostname context
209
210 2012-08-22 lttng-tools 2.1.0-rc2
211 * Fix: put back 2.0 output text for lttng create cmd
212 * Fix: remove set subdir call that uses bad ptr
213 * Filter: Handle the unary bitwise not operator (~) with an unsupported
214 * Fix: missing mutex unlock on register consumer err
215 * Remove underscore from ifndef of lttng.h
216 * Remove unused define in lttng.h
217 * Standardize lttng command line usage text
218 * Merge duplicate code in consumer for destroy relayd
219 * Merge duplicate code in consumer for add relayd
220 * Fix: Possible buffer overflows in strncat() usage
221 * Move code out of main.c and fix some issues
222
223 2012-08-17 lttng-tools 2.1.0-rc1
224 * Feature: Network Streaming
225 * Add the lttng-relayd binary for network streaming
226 * Support user space tracer filtering
227 * Multiple fixes
228
229 2012-04-19 lttng-tools 2.0.1
230 * Fix: test script for kernel module validation
231 * Fix: report error to client on consumerd error
232 * Fix: add missing ht_destroy at consumer teardown
233 * Fix: consumer fd recv thread should write into non-blocking pipe
234 * Fix: work-around glibc __nptl_setxid vs clone hang
235 * Fix: consumer fd recv poll should be sensitive to POLLPRI too
236 * Fix consumer lttng_consumer_poll_socket poll revents check bug
237 * Fix: increase consumer open files limit
238 * Update README: document dep on modprobe for kernel tracing
239 * Fix: wait for sessiond to stop in tests
240 * Fix: remove unused return variable
241 * Don't report back error on syscalls fail for -a -k
242 * Fix: destroy context hash table being NULL
243 * Fix: make lttng expand path for trace output opt
244 * Fix: return value signedness
245 * Fix: man page environment variable name error
246 * Fix: check return value on getenv USER
247
248 2012-03-20 lttng-tools 2.0.0
249 * Fist STABLE version
250 * Add version name: Annedd'ale
251
252 2012-03-20 lttng-tools 2.0.0-rc4
253 * Fix: add small detail to enable-channel man page
254 * Fix: warned of arbitrary time for ust-nprocesses test
255 * Fix. add limitation to man page
256 * Fix: minor changes to lttng.1
257 * Fix: add exit values to lttng.1 man page
258 * Fix: add delay before validating apps in test nproc
259 * Fix: error handling in lttng enable-event
260 * Fix: document structure init. to 0 in lttng.h
261 * Fix: uninitialized variable
262 * Keep track of FD used for UST applications (v2)
263 * Fix: lttng view, error message and exit code
264 * Small fixes to lttng man pages (v2)
265 * Fix: handle EINTR for sendmsg syscall
266 * Fix: lttng UI exit value and error message
267 * Fix: session lock use after free
268 * Fix kernel_list_events memleaks
269 * Fix debug message use uninitialized variable
270 * Fix: trace_ust_destroy_metadata should check for NULL pointer
271 * Fix: various memleaks
272 * Fix: hash table allocation out of order on error
273 * fix: lttng_ht_destroy memleak
274
275 2012-03-16 lttng-tools 2.0.0-rc3
276 * Fix: missing headers for make dist
277 * Fix: install lttng-consumerd in lib/lttng/libexec/
278 * Fix: Redefine MAP_STACK to 0 if not defined by the architecture
279 * Fix: consumer CPU hotplug support
280 * Fix: double PID registration race
281 * Make libcompat independent not to confuse automake
282 * Clarify the license of lttng-ust-abi.h
283 * Fix: License header
284 * Fix: wrong return value on consumer socket creation
285 * Fix: test for UST invalid channel parameters at channel creation
286 * Fix: recvmsg should handle EINTR
287 * Fix: error.h non-static variables for liblttng-ctl
288 * Fix: missing _GNU_SOURCE define
289 * Fix: improve need root for kernel tracing error message
290 * Fix: start/stop lttng message error
291
292 2012-03-02 lttng-tools 2.0.0-rc2
293 * Fix: meaningful error message
294 * Fix: UST consumer need to iterate on streams, just change their key
295 * Fix: add missing rcu read lock across RCU HT iteration
296 * Fix: kernel session closes fd 0 after create
297 * Fix: sendmsg EPIPE should be quiet by default (expected)
298 * Fix: thread_registration_apps should set its local sock to -1 when passing it
299 * Fix: clock -> sock typo
300 * Fix: consumer race: should allow reuse of FD key
301 * Fix: Use PERROR all across lttng-tools, never make it quiet
302 * Fix: test all close return values in sessiond
303 * Fix: All perror turned into PERROR to show file and line number
304 * Fix: large audit of close() use in sessiond main.c
305 * Fix: main.c client/apps sockets and kernel_trace_fd close(0)
306 * Fix: incorrect close of fd 0 for syscall kernel event destroy
307 * Fix: sessiond has incorrect missing 0 value in FD check
308 * Fix: sessiond app listening: use posix-compliant poll flags
309 * Fix: consumer printf type should match ssize_t (%zd)
310 * Fix: make ust consumer posix compliant for poll flags
311 * Fix security permission on lttng run directory
312 * Fix: Display right loglevel_type in error message
313 * Fix documentation in lttng.h
314 * Fix: lttng UST and kernel consumer: fix ret vs errno mixup
315 * Fix: restart consumerd and sessiond when interrupted in poll()
316 * Fix: handling bad channel when sending to consumer
317 * Fix useless variable
318 * Fix add-context returned error
319 * fix: add missing break in command handling
320 * fix: command handling: do not check domain for commands not requiring domain
321 * fix: if tracing group does not exist, do not report a client error
322 * Fix: run_as error handling
323 * Fix usage note on -a
324 * Revert FreeBSD compatibility layer
325 * Fix: documented number of subbuffers is incorrect
326 * Document that num-subbuf and subbuf-size need to be power of 2
327 * Merge branch 'master' of git://git.lttng.org/lttng-tools
328
329 2012-02-20 lttng-tools 2.0.0-rc1
330 * Fix lttcomm_close_unix_sock to actually close the socket
331 * lttng-sessiond: Set group permissions explicitly
332
333 2012-02-16 lttng-tools 2.0-pre23
334 * configure.ac: Fix consumerd64-libdir typo
335 * Fix existing session daemon check
336 * Fix missing session locks
337 * Fix return value on ust app session create
338 * Fix double start/stop trace
339 * Fix ust app session started state on start trace
340 * modprobe statedump, signal and timer lttng module
341 * Fix hyphens in man pages
342
343 2012-02-14 lttng-tools 2.0-pre22
344 * Add the bash-completion file to the dist tarball
345 * Add the LICENSE file too
346 * Package used for the Ubuntu LTS (feature freeze)
347
348 2012-02-13 lttng-tools 2.0-pre21
349 * Fix licensing for hashtable/utils.c
350 * Print loglevel value in list -u
351 * Remove "<all> from MSG() when no loglevel is selected
352 * Initial import of man lttng.1 and lttng-sessiond.8
353 * Fix memory leak master
354
355 2012-02-09 lttng-tools 2.0-pre20
356 * New lttng view command
357 * Multiple loglevel fixes
358 * Fix list command
359 * Fix session syscall listing
360 * Multiple fixes across the code base
361
362 2012-02-02 lttng-tools 2.0-pre19
363 * Update lttng ust ABI/API copy
364 * Implement UST calibrate and change default
365 * Add MSG_WAITALL to recvmsg of sessiond-comm
366 * Check kernel version for tests
367 * Add a '--list-options' option to each command.
368 * First import of extras/ with lttng bash completion
369 * Remove default defines from lttng.h
370 * Fix lttng sessiond spawn wait race
371 * Add CMD_WARNING error code
372 * Fix context mapping for UST and kernel
373 * Add kernel work-around for boot_id
374 * Rewrites lttng-ctl's set_session_daemon_path
375 * Fix memory lean in all lttng cli commands
376 * Update loglevel ABI
377 * Add padding to all ABIs for future development.
378 * Improve error handling of lttng cli
379 * Multiple fixes across the code base (nothing critical)
380
381 2012-01-23 lttng-tools 2.0-pre18
382 * Complete change of the source directory tree
383 * Move compat to common and create an internal lib
384 * Rename lttngerr.h to error.h
385 * Add kernel module version validation
386 * Add UST version validation
387 * Change SIGCHLD to SIGUSR1 when lttng waiting on sessiond
388 * Fix off-by-one and double list size instead of steady increment
389
390 2012-01-19 lttng-tools 2.0-pre17
391 * Add and support the new hash table library
392 * Add lttng hash table support to liblttng-consumer
393 * RCU support for consumer's hash tables
394 * UST consumer close shm fd after mapping it
395 * Remove CLONE_VM flag for runas making gdb debugging impossible
396 * Make MSG() print on stdout instead of stderr
397 * Don't init kernel tracer if not root (UID=0)
398 * Multiple fixes found when reaching max. number of open files
399 * Add some UST tests
400 * Multiple segfaults and assert error fixed
401
402 2011-12-23 lttng-tools 2.0-pre16
403 * Per-user lttng-sessiond now fully functionnal
404 * Fix nested double usage of hashtable iterators
405 * Support creds passing between lttng and sessiond
406 * Rename sessiond internal "uid" fields to "id"
407 * Create all trace directories and files with client user credentials
408 * Create output directory at session creation command
409 * Only allow the user or group owning the session (or root) to control a session
410 * Add disable kernel tracing option to sessiond
411
412 2011-12-13 lttng-tools 2.0-pre15
413 * (MAJOR) User-space tracing support for global domain (lttng-ust 2.0)
414 * UST consumer 32/64 bit support
415 * Multiple bug fixes
416 * Multiple segfault, race and double lock fixes
417 * API change for lttng_list_domains, lttng_start/stop and lttng_destroy
418 * UST loglevel support
419 * ABIs now support 256 char event names
420 * Dependency on libpopt >= 1.13
421 * Dependency on URCU >= 0.6.7
422 * Rename kernel-ctl.c/.h to kernel.c/.h
423 * Change malloc to zmalloc in lttng-sessiond code
424 * RCU hashtable support for all UST data structure
425 * New libconsumer for UST, kernel and one generic
426 * Change "--all" option from lttng command line
427 * Remove function entry option to discourage its use
428
429 2011-09-30 lttng-tools 2.0-pre14
430 * Syscall tracing support
431 * Multiple bug fixes (nothing critical)
432 * Add userspace RCU hash table to tree for dev
433 * Update UST ABI
434 * Fix epoll that did not handle EINTR
435 * Liburcu >= 0.6.5 is needed from this release
436 * Enabling all events also enable syscall tracing
437 * Debug messages are now on stderr
438 * Add basic data structure for UST support but not ready yet.
439
440 2011-08-25 lttng-tools 2.0-pre13
441 * Memory leaks fixes and double lock list
442 * Add UST registration with sychronisation
443 * Use poll/epoll compatibility layer for the sessiond
444 * Major code cleanup of ltt-sessiond/main.c
445 * Increase listen() connexion limit
446 * Fix bad enable-channel command
447 * Rename trace.c/.h to trace-kernel
448 * Multiple fixes on the poll management with the new epoll API
449
450 2011-08-25 lttng-tools 2.0-pre12
451 * Multiple fixes
452 * Fix kconsumerd handling custom channel output
453 * Add lttng_register_consumer to register a custom consumer
454 * Add multiples tests of the session daemon
455 * Default kernel channel size/number changed
456 * Support for UST application registration
457 * Import LTTng UST 2.0 ABI
458 * Send data to kconsumerd before tracing start
459 * Export API of lib kernel consumer (liblttngkconsumerd)
460
461 2011-08-12 lttng-tools 2.0-pre11
462 * New lttng API using the lttng_handle
463 * Multiple fixes of kernel consumer
464 * Register the consuming function and add a library context
465 * Kernel consumer fix mmap/munmap
466 * lttng-sessiond-comm header has been privatize
467 * Kernel traces are written in the kernel/ directory
468 * Add underscore to enable-channel command options
469
470 2011-07-29 lttng-tools 2.0-pre6
471 * Fix enable multiple events
472 * Add function entry feature
473
474 2011-07-28 lttng-tools 2.0-pre5
475 * Fix Add context command
476 * Fix auto session path creation
477 * Fix bad strncmp at channel creation
478
479 2011-07-23 lttng-tools 2.0-pre4
480 * Fix kprobe attributes
481 * Fix channel creation when not found at event enable
482 * Add safe list iteration
483 * Add two tests into the git tree
484 * Kernel consumer can be put in debug mode with -vv
485 * Trace path is now created on the client side
486
487 2011-07-23 lttng-tools 2.0-pre3
488 * Fix perf hw cache counter config values
489
490 2011-07-22 lttng-tools 2.0-pre2
491 * Multiple fixes
492 * New add-context options for perf counter and context
493 * Using the install bin path from autotool for execl() call
494 * Update quickstart guide
495
496 2011-07-20 lttng-tools 2.0-pre1
497 * First prerelease of lttng-tools.
498 * Working with the LTTng v2.0-pre1 modules and Babeltrace v0.1
This page took 0.045925 seconds and 4 git commands to generate.