Home
last modified time | relevance | path

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

/tools/perf/tests/
A Dexpr.c18 struct hashmap *ids1, *ids2; in test_ids_union() local
23 ids2 = ids__new(); in test_ids_union()
24 TEST_ASSERT_VAL("ids__new", ids2); in test_ids_union()
26 ids1 = ids__union(ids1, ids2); in test_ids_union()
30 ids2 = ids__new(); in test_ids_union()
31 TEST_ASSERT_VAL("ids__new", ids2); in test_ids_union()
36 ids1 = ids__union(ids1, ids2); in test_ids_union()
40 ids2 = ids__new(); in test_ids_union()
44 ids1 = ids__union(ids1, ids2); in test_ids_union()
48 ids2 = ids__new(); in test_ids_union()
[all …]
/tools/perf/util/
A Dexpr.c106 struct hashmap *ids__union(struct hashmap *ids1, struct hashmap *ids2) in ids__union() argument
115 return ids2; in ids__union()
117 if (!ids2) in ids__union()
120 if (hashmap__size(ids1) < hashmap__size(ids2)) { in ids__union()
123 ids1 = ids2; in ids__union()
124 ids2 = tmp; in ids__union()
126 hashmap__for_each_entry(ids2, cur, bkt) { in ids__union()
133 hashmap__free(ids2); in ids__union()
137 hashmap__free(ids2); in ids__union()
A Dexpr.h29 struct hashmap *ids__union(struct hashmap *ids1, struct hashmap *ids2);
A Dexpr.y81 static struct ids union_expr(struct ids ids1, struct ids ids2)
85 .ids = ids__union(ids1.ids, ids2.ids),

Completed in 6 milliseconds