projects
/
deliverable
/
lttng-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
2919031
)
Fix: missing reset when listing UST fields for multiple PIDs
author
David Goulet
<dgoulet@efficios.com>
Thu, 9 Jan 2014 15:39:19 +0000
(10:39 -0500)
committer
David Goulet
<dgoulet@efficios.com>
Thu, 9 Jan 2014 15:44:13 +0000
(10:44 -0500)
Fixes #627
Signed-off-by: David Goulet <dgoulet@efficios.com>
src/bin/lttng/commands/list.c
patch
|
blob
|
blame
|
history
diff --git
a/src/bin/lttng/commands/list.c
b/src/bin/lttng/commands/list.c
index 6a54279f912fa9984d7419a06fbe64c6f64fabaf..1d3f991aab29efe245ec8282e050accb075920ce 100644
(file)
--- a/
src/bin/lttng/commands/list.c
+++ b/
src/bin/lttng/commands/list.c
@@
-475,6
+475,8
@@
static int list_ust_event_fields(void)
cmdline = get_cmdline_by_pid(cur_pid);
MSG("\nPID: %d - Name: %s", cur_pid, cmdline);
free(cmdline);
+ /* Wipe current event since we are about to print a new PID. */
+ memset(&cur_event, 0, sizeof(cur_event));
}
if (strcmp(cur_event.name, event_field_list[i].event.name) != 0) {
print_events(&event_field_list[i].event);
This page took
0.027502 seconds
and
5
git commands to generate.