Searched refs:ids1 (Results 1 - 4 of 4) sorted by relevance
/linux-master/tools/perf/tests/ |
H A D | expr.c | 17 struct hashmap *ids1, *ids2; local 20 ids1 = ids__new(); 21 TEST_ASSERT_VAL("ids__new", ids1); 25 ids1 = ids__union(ids1, ids2); 26 TEST_ASSERT_EQUAL("union", (int)hashmap__size(ids1), 0); 32 TEST_ASSERT_EQUAL("ids__insert", ids__insert(ids1, strdup("foo")), 0); 33 TEST_ASSERT_EQUAL("ids__insert", ids__insert(ids1, strdup("bar")), 0); 35 ids1 = ids__union(ids1, ids [all...] |
/linux-master/tools/perf/util/ |
H A D | expr.c | 113 struct hashmap *ids__union(struct hashmap *ids1, struct hashmap *ids2) argument 121 if (!ids1) 125 return ids1; 127 if (hashmap__size(ids1) < hashmap__size(ids2)) { 128 struct hashmap *tmp = ids1; 130 ids1 = ids2; 134 ret = hashmap__set(ids1, cur->key, cur->value, &old_key, &old_data); 139 hashmap__free(ids1); 145 return ids1;
|
H A D | expr.h | 26 * Union two sets of ids (hashmaps) and construct a third, freeing ids1 and 29 struct hashmap *ids__union(struct hashmap *ids1, struct hashmap *ids2);
|
H A D | expr.y | 81 static struct ids union_expr(struct ids ids1, struct ids ids2) 85 .ids = ids__union(ids1.ids, ids2.ids),
|
Completed in 127 milliseconds