projects
/
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:
8ff0bbd
)
Fix uninitialized kprobe attributes
author
David Goulet
<david.goulet@polymtl.ca>
Wed, 27 Jul 2011 20:13:46 +0000
(16:13 -0400)
committer
David Goulet
<david.goulet@polymtl.ca>
Wed, 27 Jul 2011 20:16:29 +0000
(16:16 -0400)
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
lttng/commands/enable_events.c
patch
|
blob
|
blame
|
history
diff --git
a/lttng/commands/enable_events.c
b/lttng/commands/enable_events.c
index 747e5dd802fc63c11b9e83d2b726f9ee9bb558b8..f5e24315629e3b02b918eb4000291a4b7f4f54de 100644
(file)
--- a/
lttng/commands/enable_events.c
+++ b/
lttng/commands/enable_events.c
@@
-124,6
+124,7
@@
static int parse_probe_opts(struct lttng_event *ev, char *opt)
}
ev->attr.probe.offset = strtoul(s_hex, NULL, 0);
DBG("probe offset %" PRIu64, ev->attr.probe.offset);
+ ev->attr.probe.addr = 0;
goto error;
}
@@
-137,6
+138,8
@@
static int parse_probe_opts(struct lttng_event *ev, char *opt)
}
ev->attr.probe.addr = strtoul(s_hex, NULL, 0);
DBG("probe addr %" PRIu64, ev->attr.probe.addr);
+ ev->attr.probe.offset = 0;
+ memset(ev->attr.probe.symbol_name, 0, LTTNG_SYMBOL_NAME_LEN);
goto error;
}
This page took
0.029872 seconds
and
5
git commands to generate.