Fix: lttng: placing probe on symbol starting with `_`
[lttng-tools.git] / src / bin / lttng / commands / enable_events.c
index 05f20f72de03309afda2add9c268a9d934fbe77f..959b38bc29b022ea18e9397a26bd49e82aba375c 100644 (file)
@@ -137,7 +137,7 @@ static int parse_probe_opts(struct lttng_event *ev, char *opt)
        }
 
        /* Check for symbol */
-       if (isalpha(name[0])) {
+       if (isalpha(name[0]) || name[0] == '_') {
                match = sscanf(opt, "%" LTTNG_SYMBOL_NAME_LEN_SCANF_IS_A_BROKEN_API "s",
                        name);
                if (match == 1) {
This page took 0.022685 seconds and 4 git commands to generate.