Searched refs:ids2 (Results 1 – 4 of 4) sorted by relevance
/linux-6.1.9/tools/perf/tests/ |
D | expr.c | 15 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/ |
D | expr.c | 109 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()
|
D | expr.y | 77 static struct ids union_expr(struct ids ids1, struct ids ids2) 81 .ids = ids__union(ids1.ids, ids2.ids),
|
D | expr.h | 33 struct hashmap *ids__union(struct hashmap *ids1, struct hashmap *ids2);
|