Home
last modified time | relevance | path

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

/linux/tools/perf/tests/
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 …]
/linux/tools/perf/util/
A 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()
136 hashmap__free(ids2); in ids__union()
140 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 8 milliseconds