Searched refs:ids2 (Results 1 – 4 of 4) sorted by relevance
/linux-5.19.10/tools/perf/tests/ |
D | expr.c | 12 struct hashmap *ids1, *ids2; in test_ids_union() local 17 ids2 = ids__new(); in test_ids_union() 18 TEST_ASSERT_VAL("ids__new", ids2); in test_ids_union() 20 ids1 = ids__union(ids1, ids2); in test_ids_union() 24 ids2 = ids__new(); in test_ids_union() 25 TEST_ASSERT_VAL("ids__new", ids2); in test_ids_union() 30 ids1 = ids__union(ids1, ids2); in test_ids_union() 34 ids2 = ids__new(); in test_ids_union() 35 TEST_ASSERT_VAL("ids__new", ids2); in test_ids_union() 36 TEST_ASSERT_EQUAL("ids__insert", ids__insert(ids2, strdup("foo")), 0); in test_ids_union() [all …]
|
/linux-5.19.10/tools/perf/util/ |
D | expr.c | 108 struct hashmap *ids__union(struct hashmap *ids1, struct hashmap *ids2) in ids__union() argument 117 return ids2; in ids__union() 119 if (!ids2) in ids__union() 122 if (hashmap__size(ids1) < hashmap__size(ids2)) { in ids__union() 125 ids1 = ids2; in ids__union() 126 ids2 = tmp; in ids__union() 128 hashmap__for_each_entry(ids2, cur, bkt) { in ids__union() 136 hashmap__free(ids2); in ids__union() 140 hashmap__free(ids2); in ids__union()
|
D | expr.h | 34 struct hashmap *ids__union(struct hashmap *ids1, struct hashmap *ids2);
|
D | expr.y | 77 static struct ids union_expr(struct ids ids1, struct ids ids2) 81 .ids = ids__union(ids1.ids, ids2.ids),
|