Home
last modified time | relevance | path

Searched refs:ids2 (Results 1 – 4 of 4) sorted by relevance

/openbmc/linux/tools/perf/tests/
H A Dexpr.c17 struct hashmap *ids1, *ids2; in test_ids_union() local
22 ids2 = ids__new(); in test_ids_union()
23 TEST_ASSERT_VAL("ids__new", ids2); in test_ids_union()
25 ids1 = ids__union(ids1, ids2); in test_ids_union()
29 ids2 = ids__new(); in test_ids_union()
30 TEST_ASSERT_VAL("ids__new", ids2); in test_ids_union()
35 ids1 = ids__union(ids1, ids2); in test_ids_union()
39 ids2 = ids__new(); in test_ids_union()
43 ids1 = ids__union(ids1, ids2); in test_ids_union()
47 ids2 = ids__new(); in test_ids_union()
[all …]
/openbmc/linux/tools/perf/util/
H A Dexpr.c113 struct hashmap *ids__union(struct hashmap *ids1, struct hashmap *ids2) in ids__union() argument
122 return ids2; in ids__union()
124 if (!ids2) in ids__union()
127 if (hashmap__size(ids1) < hashmap__size(ids2)) { in ids__union()
130 ids1 = ids2; in ids__union()
131 ids2 = tmp; in ids__union()
133 hashmap__for_each_entry(ids2, cur, bkt) { in ids__union()
140 hashmap__free(ids2); in ids__union()
144 hashmap__free(ids2); in ids__union()
H A Dexpr.h29 struct hashmap *ids__union(struct hashmap *ids1, struct hashmap *ids2);
H A Dexpr.y79 static struct ids union_expr(struct ids ids1, struct ids ids2)
83 .ids = ids__union(ids1.ids, ids2.ids),