Home
last modified time | relevance | path

Searched refs:map_type (Results 1 – 25 of 53) sorted by relevance

123

/external/linux-kselftest/tools/testing/selftests/bpf/
Dtest_lru_map.c30 static int create_map(int map_type, int map_flags, unsigned int size) in create_map() argument
34 map_fd = bpf_create_map(map_type, sizeof(unsigned long long), in create_map()
98 static void test_lru_sanity0(int map_type, int map_flags) in test_lru_sanity0() argument
104 printf("%s (map_type:%d map_flags:0x%X): ", __func__, map_type, in test_lru_sanity0()
110 lru_map_fd = create_map(map_type, map_flags, 2 * nr_cpus); in test_lru_sanity0()
112 lru_map_fd = create_map(map_type, map_flags, 2); in test_lru_sanity0()
186 static void test_lru_sanity1(int map_type, int map_flags, unsigned int tgt_free) in test_lru_sanity1() argument
198 printf("%s (map_type:%d map_flags:0x%X): ", __func__, map_type, in test_lru_sanity1()
207 lru_map_fd = create_map(map_type, map_flags, map_size); in test_lru_sanity1()
262 static void test_lru_sanity2(int map_type, int map_flags, unsigned int tgt_free) in test_lru_sanity2() argument
[all …]
Dtest_btf.c123 enum bpf_map_type map_type; member
186 .map_type = BPF_MAP_TYPE_ARRAY,
241 .map_type = BPF_MAP_TYPE_ARRAY,
267 .map_type = BPF_MAP_TYPE_ARRAY,
299 .map_type = BPF_MAP_TYPE_ARRAY,
333 .map_type = BPF_MAP_TYPE_ARRAY,
367 .map_type = BPF_MAP_TYPE_ARRAY,
409 .map_type = BPF_MAP_TYPE_ARRAY,
445 .map_type = BPF_MAP_TYPE_ARRAY,
474 .map_type = BPF_MAP_TYPE_ARRAY,
[all …]
/external/libcxx/test/std/containers/associative/map/map.modifiers/
Dmerge.pass.cpp66 typedef std::map<Counter<int>, int, throw_comparator> map_type; in main() typedef
67 map_type src({{1, 0}, {3, 0}, {5, 0}}, throw_comparator(do_throw)); in main()
68 map_type dst({{2, 0}, {4, 0}, {5, 0}}, throw_comparator(do_throw)); in main()
82 assert(map_equal(src, map_type({{1, 0}, {3, 0}, {5, 0}}, throw_comparator(do_throw)))); in main()
83 assert(map_equal(dst, map_type({{2, 0}, {4, 0}, {5, 0}}, throw_comparator(do_throw)))); in main()
Dextract_iterator.pass.cpp47 using map_type = std::map<int, int>; in main() typedef
48 map_type m = {{1,1}, {2,2}, {3,3}, {4,4}, {5,5}, {6,6}}; in main()
/external/libcxx/test/std/containers/associative/multimap/multimap.modifiers/
Dmerge.pass.cpp66 typedef std::multimap<Counter<int>, int, throw_comparator> map_type; in main() typedef
67 map_type src({{1, 0}, {3, 0}, {5, 0}}, throw_comparator(do_throw)); in main()
68 map_type dst({{2, 0}, {4, 0}, {5, 0}}, throw_comparator(do_throw)); in main()
82 assert(map_equal(src, map_type({{1, 0}, {3, 0}, {5, 0}}, throw_comparator(do_throw)))); in main()
83 assert(map_equal(dst, map_type({{2, 0}, {4, 0}, {5, 0}}, throw_comparator(do_throw)))); in main()
Dextract_iterator.pass.cpp47 using map_type = std::multimap<int, int>; in main() typedef
48 map_type m = {{1,1}, {2,2}, {3,3}, {4,4}, {5,5}, {6,6}}; in main()
/external/libcxx/test/std/containers/unord/unord.map/unord.map.modifiers/
Dmerge.pass.cpp66 typedef std::unordered_map<Counter<int>, int, throw_hasher<Counter<int>>> map_type; in main() typedef
67 map_type src({{1, 0}, {3, 0}, {5, 0}}, 0, throw_hasher<Counter<int>>(do_throw)); in main()
68 map_type dst({{2, 0}, {4, 0}, {5, 0}}, 0, throw_hasher<Counter<int>>(do_throw)); in main()
82 …assert(map_equal(src, map_type({{1, 0}, {3, 0}, {5, 0}}, 0, throw_hasher<Counter<int>>(do_throw)))… in main()
83 …assert(map_equal(dst, map_type({{2, 0}, {4, 0}, {5, 0}}, 0, throw_hasher<Counter<int>>(do_throw)))… in main()
Dextract_iterator.pass.cpp47 using map_type = std::unordered_map<int, int>; in main() typedef
48 map_type m = {{1,1}, {2,2}, {3,3}, {4,4}, {5,5}, {6,6}}; in main()
/external/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.modifiers/
Dmerge.pass.cpp66 typedef std::unordered_multimap<Counter<int>, int, throw_hasher<Counter<int>>> map_type; in main() typedef
67 map_type src({{1, 0}, {3, 0}, {5, 0}}, 0, throw_hasher<Counter<int>>(do_throw)); in main()
68 map_type dst({{2, 0}, {4, 0}, {5, 0}}, 0, throw_hasher<Counter<int>>(do_throw)); in main()
82 …assert(map_equal(src, map_type({{1, 0}, {3, 0}, {5, 0}}, 0, throw_hasher<Counter<int>>(do_throw)))… in main()
83 …assert(map_equal(dst, map_type({{2, 0}, {4, 0}, {5, 0}}, 0, throw_hasher<Counter<int>>(do_throw)))… in main()
Dextract_iterator.pass.cpp47 using map_type = std::unordered_multimap<int, int>; in main() typedef
48 map_type m = {{1,1}, {2,2}, {3,3}, {4,4}, {5,5}, {6,6}}; in main()
/external/bcc/src/cc/frontends/clang/
Db_frontend_action.cc1146 bpf_map_type map_type = BPF_MAP_TYPE_UNSPEC; in VisitVarDecl() local
1148 map_type = BPF_MAP_TYPE_HASH; in VisitVarDecl()
1150 map_type = BPF_MAP_TYPE_ARRAY; in VisitVarDecl()
1152 map_type = BPF_MAP_TYPE_PERCPU_HASH; in VisitVarDecl()
1154 map_type = BPF_MAP_TYPE_PERCPU_ARRAY; in VisitVarDecl()
1156 map_type = BPF_MAP_TYPE_LRU_HASH; in VisitVarDecl()
1158 map_type = BPF_MAP_TYPE_LRU_PERCPU_HASH; in VisitVarDecl()
1160 map_type = BPF_MAP_TYPE_LPM_TRIE; in VisitVarDecl()
1162 map_type = BPF_MAP_TYPE_HASH; in VisitVarDecl()
1164 map_type = BPF_MAP_TYPE_ARRAY; in VisitVarDecl()
[all …]
/external/bcc/introspection/
Dbps.c161 const char *map_type; in print_map_info() local
167 map_type = unknown_map_type; in print_map_info()
169 map_type = map_type_strings[map_info->type]; in print_map_info()
173 map_info->id, map_type, map_info->map_flags, map_info->key_size, in print_map_info()
/external/strace/tests/
Dbpf.c272 .data = { .BPF_MAP_CREATE_data = { .map_type = 2 } },
273 .size = offsetofend(struct BPF_MAP_CREATE_struct, map_type),
279 .map_type = 20,
301 .map_type = 21,
322 .map_type = 0xdeadf00d,
340 .map_type = 0xdeadf00d,
359 .map_type = 0xdeadf00d,
379 .map_type = 0xdeadf00d,
401 .map_type = 0xdeadf00d,
/external/strace/tests-m32/
Dbpf.c272 .data = { .BPF_MAP_CREATE_data = { .map_type = 2 } },
273 .size = offsetofend(struct BPF_MAP_CREATE_struct, map_type),
279 .map_type = 20,
301 .map_type = 21,
322 .map_type = 0xdeadf00d,
340 .map_type = 0xdeadf00d,
359 .map_type = 0xdeadf00d,
379 .map_type = 0xdeadf00d,
401 .map_type = 0xdeadf00d,
/external/strace/tests-mx32/
Dbpf.c272 .data = { .BPF_MAP_CREATE_data = { .map_type = 2 } },
273 .size = offsetofend(struct BPF_MAP_CREATE_struct, map_type),
279 .map_type = 20,
301 .map_type = 21,
322 .map_type = 0xdeadf00d,
340 .map_type = 0xdeadf00d,
359 .map_type = 0xdeadf00d,
379 .map_type = 0xdeadf00d,
401 .map_type = 0xdeadf00d,
/external/tensorflow/tensorflow/compiler/tf2tensorrt/utils/
Dtrt_lru_cache.h40 typedef typename std::unordered_map<key_type, value_type, hasher> map_type; typedef
41 typedef typename map_type::iterator iterator;
42 typedef typename map_type::const_iterator const_iterator;
/external/iproute2/tc/
Dem_meta.c114 static inline int map_type(char k) in map_type() function
181 if (map_type(*p) == TCF_META_TYPE(needed->kind)) in is_compatible()
206 int type = map_type(*p); in list_meta_ids()
279 obj->kind = entry->id | (map_type(entry->mask[0]) << 12); in parse_object()
/external/ltp/testcases/kernel/mem/mtest05/
Dmmstress.c283 int map_type = 0; /* specifies the type of the mapped object */ in map_and_thread() local
318 map_type = (fault_type == COW_FAULT) ? MAP_PRIVATE : MAP_SHARED; in map_and_thread()
328 PROT_WRITE), map_type, fd, 0)) in map_and_thread()
/external/u-boot/arch/powerpc/cpu/mpc85xx/
Dtlb.c241 enum tlb_map_type map_type) in tlb_map_range() argument
249 if (map_type == TLB_MAP_RAM) { in tlb_map_range()
/external/strace/
Dbpf_attr_check.c11 static_assert(SoM(struct BPF_MAP_CREATE_struct, map_type) == SoM(union bpf_attr, map_type),
13 …static_assert(offsetof(struct BPF_MAP_CREATE_struct, map_type) == offsetof(union bpf_attr, map_typ…
Dbpf_attr.h59 uint32_t map_type; member
/external/bcc/src/cc/frontends/b/
Dcodegen_llvm.cc1090 bpf_map_type map_type = BPF_MAP_TYPE_UNSPEC; in visit_table_decl_stmt_node() local
1092 map_type = BPF_MAP_TYPE_HASH; in visit_table_decl_stmt_node()
1094 map_type = BPF_MAP_TYPE_ARRAY; in visit_table_decl_stmt_node()
1111 int map_fd = bpf_create_map(map_type, n->id_->name_.c_str(), in visit_table_decl_stmt_node()
1248 bpf_map_type map_type = BPF_MAP_TYPE_UNSPEC; in visit() local
1250 map_type = BPF_MAP_TYPE_HASH; in visit()
1252 map_type = BPF_MAP_TYPE_ARRAY; in visit()
1255 table.first->id_->name_, FileDesc(table_fds_[table.first]), map_type, in visit()
/external/strace/m4/
Dbpf_attr.m451 union bpf_attr.map_type,
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Support/
DYAMLTraits.h1664 using map_type = std::map<std::string, T>;
1666 static void inputOne(IO &io, StringRef key, map_type &v) {
1670 static void output(IO &io, map_type &v) {
/external/v8/src/compiler/
Dtyped-optimization.cc152 Type const map_type = NodeProperties::GetType(map); in ReduceCheckMaps() local
153 if (map_type.IsHeapConstant() && in ReduceCheckMaps()
154 map_type.AsHeapConstant()->Ref().equals(*object_map)) { in ReduceCheckMaps()

123