Home
last modified time | relevance | path

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

/linux-6.1.9/tools/perf/tests/
Dexpr.c15 struct hashmap *ids1, *ids2; in test_ids_union() local
20 ids2 = ids__new(); in test_ids_union()
21 TEST_ASSERT_VAL("ids__new", ids2); in test_ids_union()
23 ids1 = ids__union(ids1, ids2); in test_ids_union()
27 ids2 = ids__new(); in test_ids_union()
28 TEST_ASSERT_VAL("ids__new", ids2); in test_ids_union()
33 ids1 = ids__union(ids1, ids2); in test_ids_union()
37 ids2 = ids__new(); in test_ids_union()
38 TEST_ASSERT_VAL("ids__new", ids2); in test_ids_union()
39 TEST_ASSERT_EQUAL("ids__insert", ids__insert(ids2, strdup("foo")), 0); in test_ids_union()
[all …]
/linux-6.1.9/tools/perf/util/
Dexpr.c109 struct hashmap *ids__union(struct hashmap *ids1, struct hashmap *ids2) in ids__union() argument
118 return ids2; in ids__union()
120 if (!ids2) in ids__union()
123 if (hashmap__size(ids1) < hashmap__size(ids2)) { in ids__union()
126 ids1 = ids2; in ids__union()
127 ids2 = tmp; in ids__union()
129 hashmap__for_each_entry(ids2, cur, bkt) { in ids__union()
137 hashmap__free(ids2); in ids__union()
141 hashmap__free(ids2); in ids__union()
Dexpr.y77 static struct ids union_expr(struct ids ids1, struct ids ids2)
81 .ids = ids__union(ids1.ids, ids2.ids),
Dexpr.h33 struct hashmap *ids__union(struct hashmap *ids1, struct hashmap *ids2);