diff options
Diffstat (limited to 'tools/perf/util/parse-events.c')
-rw-r--r-- | tools/perf/util/parse-events.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/util/parse-events.c b/tools/perf/util/parse-events.c index a7fcd95961ef..170316795a18 100644 --- a/tools/perf/util/parse-events.c +++ b/tools/perf/util/parse-events.c | |||
@@ -1116,6 +1116,7 @@ do { \ | |||
1116 | INIT_LIST_HEAD(&__t->list); \ | 1116 | INIT_LIST_HEAD(&__t->list); \ |
1117 | __t->type = PERF_EVSEL__CONFIG_TERM_ ## __type; \ | 1117 | __t->type = PERF_EVSEL__CONFIG_TERM_ ## __type; \ |
1118 | __t->val.__name = __val; \ | 1118 | __t->val.__name = __val; \ |
1119 | __t->weak = term->weak; \ | ||
1119 | list_add_tail(&__t->list, head_terms); \ | 1120 | list_add_tail(&__t->list, head_terms); \ |
1120 | } while (0) | 1121 | } while (0) |
1121 | 1122 | ||
@@ -2410,6 +2411,7 @@ static int new_term(struct parse_events_term **_term, | |||
2410 | 2411 | ||
2411 | *term = *temp; | 2412 | *term = *temp; |
2412 | INIT_LIST_HEAD(&term->list); | 2413 | INIT_LIST_HEAD(&term->list); |
2414 | term->weak = false; | ||
2413 | 2415 | ||
2414 | switch (term->type_val) { | 2416 | switch (term->type_val) { |
2415 | case PARSE_EVENTS__TERM_TYPE_NUM: | 2417 | case PARSE_EVENTS__TERM_TYPE_NUM: |