projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Detect and report exclusion option errors
[lttng-tools.git]
/
src
/
bin
/
lttng
/
commands
/
enable_events.c
diff --git
a/src/bin/lttng/commands/enable_events.c
b/src/bin/lttng/commands/enable_events.c
index 5d77048d00aa3d7ae1680f9085208db54ad10b39..af6abbe6e6b4e93bc5950dfd000a9d0236e9cfb7 100644
(file)
--- a/
src/bin/lttng/commands/enable_events.c
+++ b/
src/bin/lttng/commands/enable_events.c
@@
-468,6
+468,12
@@
static int enable_events(char *session_name)
goto error;
}
goto error;
}
+ if (opt_kernel && opt_exclude) {
+ ERR("Event name exclusions are not yet implemented for kernel events");
+ ret = CMD_ERROR;
+ goto error;
+ }
+
channel_name = opt_channel_name;
handle = lttng_create_handle(session_name, &dom);
channel_name = opt_channel_name;
handle = lttng_create_handle(session_name, &dom);
@@
-678,6
+684,11
@@
static int enable_events(char *session_name)
}
if (opt_exclude) {
}
if (opt_exclude) {
+ if (opt_event_type != LTTNG_EVENT_ALL && opt_event_type != LTTNG_EVENT_TRACEPOINT) {
+ ERR("Exclusion option can only be used with tracepoint events");
+ ret = CMD_ERROR;
+ goto error;
+ }
/* Free previously allocated items */
if (exclusion_list != NULL) {
while (exclusion_count--) {
/* Free previously allocated items */
if (exclusion_list != NULL) {
while (exclusion_count--) {
This page took
0.024649 seconds
and
4
git commands to generate.