Home
last modified time | relevance | path

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

/linux/tools/perf/tests/
H 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()
41 TEST_ASSERT_VAL("ids__new", ids2); in test_ids_union()
42 TEST_ASSERT_EQUAL("ids__insert", ids__insert(ids2, strdup("foo")), 0); in test_ids_union()
[all …]
/linux/tools/perf/util/
H A Dexpr.c107 struct hashmap *ids__union(struct hashmap *ids1, struct hashmap *ids2) in ids__union()
116 return ids2; in ids__union()
118 if (!ids2) in ids__union()
121 if (hashmap__size(ids1) < hashmap__size(ids2)) { in ids__union()
124 ids1 = ids2; in ids__union()
125 ids2 = tmp; in ids__union()
127 hashmap__for_each_entry(ids2, cur, bkt) { in ids__union()
134 hashmap__free(ids2); in ids__union()
138 hashmap__free(ids2); in ids__union()
106 ids__union(struct hashmap * ids1,struct hashmap * ids2) ids__union() argument
H A Dexpr.h27 * ids2.
29 struct hashmap *ids__union(struct hashmap *ids1, struct hashmap *ids2);
H A Dexpr.y81 static struct ids union_expr(struct ids ids1, struct ids ids2)
85 .ids = ids__union(ids1.ids, ids2.ids),
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dtracing_multi.c579 __u32 ids[2] = {}, *ids2 = NULL; in test_attach_api_fails() local
633 ids2 = get_ids(func, 1, NULL); in test_attach_api_fails()
634 if (!ASSERT_OK_PTR(ids2, "get_ids")) in test_attach_api_fails()
638 .ids = ids2, in test_attach_api_fails()
648 ids[0] = ids2[0]; in test_attach_api_fails()
649 ids[1] = ids2[0]; in test_attach_api_fails()
662 free(ids2); in test_attach_api_fails()