Home
last modified time | relevance | path

Searched refs:symtab (Results 1 – 25 of 72) sorted by relevance

123

/third_party/selinux/libsepol/cil/src/
Dcil_copy_ast.h40 int cil_copy_block(struct cil_db *db, void *data, void **copy, symtab_t *symtab);
41 int cil_copy_blockabstract(struct cil_db *db, void *data, void **copy, symtab_t *symtab);
42 int cil_copy_blockinherit(struct cil_db *db, void *data, void **copy, symtab_t *symtab);
43 int cil_copy_perm(struct cil_db *db, void *data, void **copy, symtab_t *symtab);
44 int cil_copy_class(struct cil_db *db, void *data, void **copy, symtab_t *symtab);
45 int cil_copy_classorder(struct cil_db *db, void *data, void **copy, symtab_t *symtab);
46 int cil_copy_classmapping(struct cil_db *db, void *data, void **copy, symtab_t *symtab);
47 int cil_copy_permset(struct cil_db *db, void *data, void **copy, symtab_t *symtab);
52 …sspermission(__attribute__((unused)) struct cil_db *db, void *data, void **copy, symtab_t *symtab);
53 …_((unused)) struct cil_db *db, void *data, void **copy, __attribute__((unused)) symtab_t *symtab);
[all …]
Dcil_symtab.c54 void cil_symtab_init(symtab_t *symtab, unsigned int size) in cil_symtab_init() argument
56 int rc = symtab_init(symtab, size); in cil_symtab_init()
66 datum->symtab = NULL; in cil_symtab_datum_init()
88 int cil_symtab_insert(symtab_t *symtab, hashtab_key_t key, struct cil_symtab_datum *datum, struct c… in cil_symtab_insert() argument
90 int rc = hashtab_insert(symtab->table, key, (hashtab_datum_t)datum); in cil_symtab_insert()
94 datum->symtab = symtab; in cil_symtab_insert()
95 symtab->nprim++; in cil_symtab_insert()
108 symtab_t *symtab = datum->symtab; in cil_symtab_remove_datum() local
110 if (symtab == NULL) { in cil_symtab_remove_datum()
114 hashtab_remove(symtab->table, datum->name, NULL, NULL); in cil_symtab_remove_datum()
[all …]
Dcil_symtab.h42 symtab_t *symtab; member
73 void cil_symtab_init(symtab_t *symtab, unsigned int size);
77 int cil_symtab_insert(symtab_t *symtab, hashtab_key_t key, struct cil_symtab_datum *datum, struct c…
79 int cil_symtab_get_datum(symtab_t *symtab, char *key, struct cil_symtab_datum **datum);
80 int cil_symtab_map(symtab_t *symtab,
83 void cil_symtab_destroy(symtab_t *symtab);
84 void cil_complex_symtab_init(struct cil_complex_symtab *symtab, unsigned int size);
85 int cil_complex_symtab_insert(struct cil_complex_symtab *symtab, struct cil_complex_symtab_key *cke…
86 void cil_complex_symtab_search(struct cil_complex_symtab *symtab, struct cil_complex_symtab_key *ck…
87 void cil_complex_symtab_destroy(struct cil_complex_symtab *symtab);
Dcil_copy_ast.c88 …e__((unused)) struct cil_db *db, void *data, void **copy, __attribute__((unused)) symtab_t *symtab) in cil_copy_node() argument
100 …il_copy_block(__attribute__((unused)) struct cil_db *db, void *data, void **copy, symtab_t *symtab) in cil_copy_block() argument
106 cil_symtab_get_datum(symtab, key, &datum); in cil_copy_block()
125 …e__((unused)) struct cil_db *db, void *data, void **copy, __attribute__((unused)) symtab_t *symtab) in cil_copy_blockabstract() argument
139 …e__((unused)) struct cil_db *db, void *data, void **copy, __attribute__((unused)) symtab_t *symtab) in cil_copy_blockinherit() argument
154 …opy_policycap(__attribute__((unused)) struct cil_db *db, void *data, void **copy, symtab_t *symtab) in cil_copy_policycap() argument
160 cil_symtab_get_datum(symtab, key, &datum); in cil_copy_policycap()
172 …cil_copy_perm(__attribute__((unused)) struct cil_db *db, void *data, void **copy, symtab_t *symtab) in cil_copy_perm() argument
178 cil_symtab_get_datum(symtab, key, &datum); in cil_copy_perm()
225 …e__((unused)) struct cil_db *db, void *data, void **copy, __attribute__((unused)) symtab_t *symtab) in cil_copy_classmapping() argument
[all …]
Dcil_fqn.c114 rc = cil_symtab_map(&(block->symtab[i]), __cil_fqn_qualify_decls, &child_args); in __cil_fqn_qualify_blocks()
122 rc = cil_symtab_map(&(block->symtab[CIL_SYM_BLOCKS]), __cil_fqn_qualify_blocks, &child_args); in __cil_fqn_qualify_blocks()
141 return cil_symtab_map(&(root->symtab[CIL_SYM_BLOCKS]), __cil_fqn_qualify_blocks, &fqn_args); in cil_fqn_qualify()
Dcil.c499 cil_symtab_array_init(r->symtab, cil_sym_sizes[CIL_SYM_ARRAY_ROOT]); in cil_root_init()
509 cil_symtab_array_destroy(root->symtab); in cil_root_destroy()
1899 void cil_symtab_array_init(symtab_t symtab[], const int symtab_sizes[CIL_SYM_NUM]) in cil_symtab_array_init() argument
1903 cil_symtab_init(&symtab[i], symtab_sizes[i]); in cil_symtab_array_init()
1907 void cil_symtab_array_destroy(symtab_t symtab[]) in cil_symtab_array_destroy() argument
1911 cil_symtab_destroy(&symtab[i]); in cil_symtab_array_destroy()
1920 cil_symtab_array_destroy(((struct cil_block*)current->data)->symtab); in cil_destroy_ast_symtabs()
1923 cil_symtab_array_destroy(((struct cil_in*)current->data)->symtab); in cil_destroy_ast_symtabs()
1931 cil_symtab_array_destroy(((struct cil_macro*)current->data)->symtab); in cil_destroy_ast_symtabs()
1934 cil_symtab_array_destroy(((struct cil_condblock*)current->data)->symtab); in cil_destroy_ast_symtabs()
[all …]
Dcil_internal.h335 symtab_t symtab[CIL_SYM_NUM]; member
347 symtab_t symtab[CIL_SYM_NUM]; member
362 symtab_t symtab[CIL_SYM_NUM]; member
884 symtab_t symtab[CIL_SYM_NUM]; member
908 symtab_t symtab[CIL_SYM_NUM]; member
992 void cil_symtab_array_init(symtab_t symtab[], const int symtab_sizes[CIL_SYM_NUM]);
993 void cil_symtab_array_destroy(symtab_t symtab[]);
995 int cil_get_symtab(struct cil_tree_node *ast_node, symtab_t **symtab, enum cil_sym_index sym_index);
/third_party/selinux/libsepol/cil/test/unit/
Dtest_cil.c42 cil_symtab_array_init(test_new_db->symtab, cil_sym_sizes[CIL_SYM_ARRAY_ROOT]); in test_cil_symtab_array_init()
43 CuAssertPtrNotNull(tc, test_new_db->symtab); in test_cil_symtab_array_init()
54 CuAssertPtrNotNull(tc, test_db->symtab); in test_cil_db_init()
55 CuAssertPtrNotNull(tc, test_db->symtab); in test_cil_db_init()
61 symtab_t *symtab = NULL; in test_cil_get_symtab_block() local
73 int rc = cil_get_symtab(test_db, test_ast_node->parent, &symtab, CIL_SYM_BLOCKS); in test_cil_get_symtab_block()
75 CuAssertPtrNotNull(tc, symtab); in test_cil_get_symtab_block()
79 symtab_t *symtab = NULL; in test_cil_get_symtab_class() local
91 int rc = cil_get_symtab(test_db, test_ast_node->parent, &symtab, CIL_SYM_BLOCKS); in test_cil_get_symtab_class()
93 CuAssertPtrNotNull(tc, symtab); in test_cil_get_symtab_class()
[all …]
/third_party/grpc/third_party/upb/tests/
Dconformance_upb.c57 const upb_symtab *symtab; member
96 len = upb_text_encode(msg, m, c->symtab, opts, NULL, 0); in serialize_text()
98 len2 = upb_text_encode(msg, m, c->symtab, opts, data, len + 1); in serialize_text()
116 if (upb_json_decode(json.data, json.size, msg, m, c->symtab, opts, c->arena, in parse_json()
139 len = upb_json_encode(msg, m, c->symtab, opts, NULL, 0, &status); in serialize_json()
153 len2 = upb_json_encode(msg, m, c->symtab, opts, data, len + 1, &status); in serialize_json()
203 const upb_msgdef *m = upb_symtab_lookupmsg2(c->symtab, name.data, name.size); in DoTest()
232 upb_text_encode(msg, m, c->symtab, UPB_TXTENC_SINGLELINE, buf, sizeof(buf)); in debug_print()
236 bool DoTestIo(upb_symtab *symtab) { in DoTestIo() argument
249 c.symtab = symtab; in DoTestIo()
[all …]
/third_party/protobuf/ruby/src/main/java/com/google/protobuf/jruby/
DRubyDescriptorPool.java67 this.symtab = new HashMap<IRubyObject, IRubyObject>(); in initialize()
90 IRubyObject descriptor = this.symtab.get(name); in lookup()
112 symtab.put(def.getName(context), def); in addToSymtab()
117 symtab.put(def.getName(context), def); in addToSymtab()
134 ((RubyEnumDescriptor) symtab.get(runtime.newString(enumName))) in buildFileDescriptor()
139symtab.get(runtime.newString(Utils.unescapeIdentifier(descriptor.getName())))); in buildFileDescriptor()
167 private Map<IRubyObject, IRubyObject> symtab; field in RubyDescriptorPool
/third_party/mesa3d/src/gallium/frontends/clover/llvm/codegen/
Dnative.cpp79 get_symbol_offsets(Elf *elf, Elf_Scn *symtab) { in get_symbol_offsets() argument
80 Elf_Data *const symtab_data = elf_getdata(symtab, NULL); in get_symbol_offsets()
82 if (gelf_getshdr(symtab, &header) != &header) in get_symbol_offsets()
101 const auto symtab = elf::get_symbol_table(elf.get()); in get_symbol_offsets() local
102 if (!symtab) in get_symbol_offsets()
105 return elf::get_symbol_offsets(elf.get(), symtab); in get_symbol_offsets()
/third_party/mesa3d/src/mesa/program/
Dsymbol_table.h36 extern int _mesa_symbol_table_add_symbol(struct _mesa_symbol_table *symtab,
44 _mesa_symbol_table_add_global_symbol(struct _mesa_symbol_table *symtab,
51 extern void *_mesa_symbol_table_find_symbol(struct _mesa_symbol_table *symtab,
/third_party/grpc/third_party/upb/upb/json/
Dparser.h72 const upb_symtab* symtab,
88 SymbolTable* symtab, Sink output, Status* status, in Create() argument
90 upb_symtab* symtab_ptr = symtab ? symtab->ptr() : nullptr; in Create()
/third_party/selinux/libsepol/include/sepol/policydb/
Dpolicydb.h469 symtab_t symtab[SYM_NUM]; member
523 symtab_t symtab[SYM_NUM]; member
524 #define p_commons symtab[SYM_COMMONS]
525 #define p_classes symtab[SYM_CLASSES]
526 #define p_roles symtab[SYM_ROLES]
527 #define p_types symtab[SYM_TYPES]
528 #define p_users symtab[SYM_USERS]
529 #define p_bools symtab[SYM_BOOLS]
530 #define p_levels symtab[SYM_LEVELS]
531 #define p_cats symtab[SYM_CATS]
[all …]
/third_party/protobuf/php/ext/google/protobuf/
Ddef.c719 upb_symtab *symtab; member
736 intern->symtab = upb_symtab_new(); in DescriptorPool_create()
746 if (intern->symtab) { in DescriptorPool_destructor()
747 upb_symtab_free(intern->symtab); in DescriptorPool_destructor()
749 intern->symtab = NULL; in DescriptorPool_destructor()
753 void DescriptorPool_CreateWithSymbolTable(zval *zv, upb_symtab *symtab) { in DescriptorPool_CreateWithSymbolTable() argument
756 if (symtab) { in DescriptorPool_CreateWithSymbolTable()
758 upb_symtab_free(intern->symtab); in DescriptorPool_CreateWithSymbolTable()
759 intern->symtab = symtab; in DescriptorPool_CreateWithSymbolTable()
765 upb_symtab *ret = intern->symtab; in DescriptorPool_Steal()
[all …]
/third_party/libunwind/tests/
Dcheck-namespace.sh.in31 symtab=`nm -g $filename`
36 symtab=`echo "$symtab" | grep -v "^${line}"\$`
43 symtab=`echo "$symtab" | grep -v " ${sym}\$"`
48 if `echo "$symtab" | grep -q " ${sym}\$"`; then
49 symtab=`echo "$symtab" | grep -v " ${sym}\$"`
373 if [ -n "$symtab" ]; then
374 printf " ERROR: Extraneous symbols:\n$symtab\n"
/third_party/grpc/third_party/upb/benchmarks/
Dbenchmark.cc51 upb::SymbolTable symtab; in BM_LoadDescriptor_Upb() local
52 upb_benchmark_DescriptorProto_getmsgdef(symtab.ptr()); in BM_LoadDescriptor_Upb()
53 bytes_per_iter = _upb_symtab_bytesloaded(symtab.ptr()); in BM_LoadDescriptor_Upb()
62 upb::SymbolTable symtab; in BM_LoadAdsDescriptor_Upb() local
64 symtab.ptr()); in BM_LoadAdsDescriptor_Upb()
65 bytes_per_iter = _upb_symtab_bytesloaded(symtab.ptr()); in BM_LoadAdsDescriptor_Upb()
/third_party/ltp/libs/libltpvdso/
Dparse_vdso.c46 ELF(Sym) *symtab;
143 vdso_info.symtab = 0; in vdso_init_from_sysinfo_ehdr()
154 vdso_info.symtab = (ELF(Sym) *) in vdso_init_from_sysinfo_ehdr()
175 if (!vdso_info.symstrings || !vdso_info.symtab || !hash) in vdso_init_from_sysinfo_ehdr()
240 ELF(Sym) *sym = &vdso_info.symtab[chain]; in vdso_sym()
/third_party/grpc/third_party/upb/tests/bindings/lua/
Dtest_upb.lua631 local symtab = upb.SymbolTable()
637 symtab:add_set(descriptor)
638 local FileDescriptorSet = symtab:lookup_msg("google.protobuf.FileDescriptorSet")
655 local symtab = upb.SymbolTable()
664 local file = symtab:add_file(upb.encode(file_proto))
665 assert_equal(file:symtab(), symtab)
669 local symtab = upb.SymbolTable()
678 assert_error(function () symtab:add_file(upb.encode(file)) end)
679 assert_nil(symtab:lookup_msg("ABC"))
/third_party/grpc/third_party/upb/upb/bindings/lua/
Ddef.c343 upb_symtab *symtab = lupb_symtab_check(L, -1); in lupb_msgdef_pushnested() local
354 const upb_msgdef *nested = upb_symtab_lookupmsg(symtab, nested_name); in lupb_msgdef_pushnested()
673 const upb_symtab *symtab = upb_filedef_symtab(f); in lupb_filedef_symtab() local
674 lupb_wrapper_pushwrapper(L, 1, symtab, LUPB_SYMTAB); in lupb_filedef_symtab()
709 upb_symtab *symtab; member
714 if (!lsymtab->symtab) { in lupb_symtab_check()
717 return lsymtab->symtab; in lupb_symtab_check()
761 lsymtab->symtab = upb_symtab_new(); in lupb_symtab_new()
774 lua_rawsetp(L, -2, lsymtab->symtab); in lupb_symtab_new()
784 upb_symtab_free(lsymtab->symtab); in lupb_symtab_gc()
[all …]
/third_party/libunwind/src/
Delfxx.c95 Elf_W (Sym) *sym, *symtab, *symtab_end; in elf_w()
114 symtab = (Elf_W (Sym) *) ((char *) ei->image + shdr->sh_offset); in elf_w()
115 symtab_end = (Elf_W (Sym) *) ((char *) symtab + shdr->sh_size); in elf_w()
125 for (sym = symtab; in elf_w()
171 Elf_W (Sym) *sym, *symtab, *symtab_end; in elf_w()
192 symtab = (Elf_W (Sym) *) ((char *) ei->image + shdr->sh_offset); in elf_w()
193 symtab_end = (Elf_W (Sym) *) ((char *) symtab + shdr->sh_size); in elf_w()
201 for (sym = symtab; in elf_w()
/third_party/selinux/libsepol/tests/
Dhelpers.c66 avrule_decl_t *test_find_decl_by_sym(policydb_t * p, int symtab, const char *sym) in test_find_decl_by_sym() argument
68 scope_datum_t *scope = (scope_datum_t *) hashtab_search(p->scope[symtab].table, sym); in test_find_decl_by_sym()
/third_party/grpc/third_party/upb/tests/json/
Dtest_json.cc226 upb::SymbolTable symtab; in test_json_roundtrip() local
231 upb::MessageDefPtr md(upb_test_json_TestMessage_getmsgdef(symtab.ptr())); in test_json_roundtrip()
308 upb::SymbolTable symtab; in test_json_failure() local
313 upb::MessageDefPtr md(upb_test_json_TestMessage_getmsgdef(symtab.ptr())); in test_json_failure()
/third_party/grpc/src/core/ext/xds/
Dxds_api.cc721 XdsClient* client, TraceFlag* tracer, upb_symtab* symtab, in MaybeLogDiscoveryRequest() argument
726 envoy_service_discovery_v3_DiscoveryRequest_getmsgdef(symtab); in MaybeLogDiscoveryRequest()
823 XdsClient* client, TraceFlag* tracer, upb_symtab* symtab, in MaybeLogDiscoveryResponse() argument
828 envoy_service_discovery_v3_DiscoveryResponse_getmsgdef(symtab); in MaybeLogDiscoveryResponse()
836 XdsClient* client, TraceFlag* tracer, upb_symtab* symtab, in MaybeLogRouteConfiguration() argument
841 envoy_config_route_v3_RouteConfiguration_getmsgdef(symtab); in MaybeLogRouteConfiguration()
848 void MaybeLogCluster(XdsClient* client, TraceFlag* tracer, upb_symtab* symtab, in MaybeLogCluster() argument
853 envoy_config_cluster_v3_Cluster_getmsgdef(symtab); in MaybeLogCluster()
861 XdsClient* client, TraceFlag* tracer, upb_symtab* symtab, in MaybeLogClusterLoadAssignment() argument
866 envoy_config_endpoint_v3_ClusterLoadAssignment_getmsgdef(symtab); in MaybeLogClusterLoadAssignment()
[all …]
/third_party/grpc/third_party/upb/tests/pb/
Dtest_encoder.cc72 upb::SymbolTable symtab; in test_pb_roundtrip() local
78 google_protobuf_FileDescriptorProto_getmsgdef(symtab.ptr())); in test_pb_roundtrip()

123