/titanic_50/usr/src/man/man3tnf/ |
H A D | Makefile | 19 MANSECT= 3tnf 21 MANFILES= TNF_DECLARE_RECORD.3tnf \ 22 TNF_PROBE.3tnf \ 23 libtnfctl.3tnf \ 24 tnf_process_disable.3tnf \ 25 tnfctl_buffer_alloc.3tnf \ 26 tnfctl_close.3tnf \ 27 tnfctl_indirect_open.3tnf \ 28 tnfctl_internal_open.3tnf \ 29 tnfctl_kernel_open.3tnf \ [all …]
|
/titanic_50/usr/src/lib/libtnf/ |
H A D | reader.c | 39 TNF *tnf; in tnf_reader_begin() local 61 if ((tnf = (TNF*)calloc(1, sizeof (*tnf))) == (TNF*)NULL) in tnf_reader_begin() 64 tnf->file_magic = magic; in tnf_reader_begin() 65 tnf->file_native = native; in tnf_reader_begin() 66 tnf->file_start = base; in tnf_reader_begin() 67 tnf->file_size = size; in tnf_reader_begin() 68 tnf->file_end = base + size; in tnf_reader_begin() 76 tnf->file_header = fhdr; in tnf_reader_begin() 79 p = _tnf_get_slot_named(tnf, fhdr, TNF_N_BLOCK_SIZE); in tnf_reader_begin() 81 tnf->block_size = _GET_UINT32(tnf, (tnf_uint32_t *)p); in tnf_reader_begin() [all …]
|
H A D | abi.c | 34 #define _GET_TAG(tnf, p) \ argument 35 _GET_REF32(tnf, p) 37 #define _GET_TAG_ARG(tnf, p) \ argument 38 _GET_REF16(tnf, p) 40 #define _GET_SELF_SIZE(tnf, p) \ argument 41 _GET_UINT32(tnf, &((struct tnf_array_hdr *)(p))->self_size) 43 #define _GET_NAME(tnf, p) \ argument 44 _GET_REF32(tnf, &((struct tnf_type_hdr *)(p))->name) 46 #define _GET_PROPERTIES(tnf, p) \ argument 47 _GET_REF32(tnf, &((struct tnf_type_hdr *)(p))->properties) [all …]
|
H A D | info.c | 60 _tnf_init_tags(TNF *tnf) in _tnf_init_tags() argument 62 if ((tnf->tag_table = calloc(TAGTABCNT, sizeof (struct taginfo *))) in _tnf_init_tags() 65 if ((tnf->tag_directory = calloc(TAGDIRCNT(tnf->directory_size), in _tnf_init_tags() 77 _tnf_fini_tags(TNF *tnf) in _tnf_fini_tags() argument 86 info = tnf->tag_table[i]; in _tnf_fini_tags() 102 free(tnf->tag_table); in _tnf_fini_tags() 103 tnf->tag_table = NULL; in _tnf_fini_tags() 104 free(tnf->tag_directory); in _tnf_fini_tags() 105 tnf->tag_directory = NULL; in _tnf_fini_tags() 115 _tnf_get_info(TNF *tnf, tnf_ref32_t *tag) in _tnf_get_info() argument [all …]
|
H A D | access.c | 35 tnf_get_file_header(TNF *tnf) in tnf_get_file_header() argument 37 return (DATUM(tnf->file_header_info, (caddr_t)tnf->file_header)); in tnf_get_file_header() 45 tnf_get_block_count(TNF *tnf) in tnf_get_block_count() argument 47 return (tnf->block_count); in tnf_get_block_count() 51 tnf_get_block_absolute(TNF *tnf, unsigned index) in tnf_get_block_absolute() argument 53 if (index >= tnf->block_count) in tnf_get_block_absolute() 64 return (DATUM(tnf->block_header_info, in tnf_get_block_absolute() 65 (caddr_t)_GET_INDEX_BLOCK(tnf, index))); in tnf_get_block_absolute() 71 TNF *tnf; in tnf_get_block_relative() local 77 tnf = DATUM_TNF(datum); in tnf_get_block_relative() [all …]
|
H A D | ref.c | 51 vaddr_to_phys(TNF *tnf, tnf_ref32_t *src_cell, tnf_ref32_t src_val) in vaddr_to_phys() argument 60 base = tnf->file_start; in vaddr_to_phys() 61 shft = tnf->generation_shift; in vaddr_to_phys() 62 mask = tnf->address_mask; in vaddr_to_phys() 66 src_gen = _GET_BLOCK_GENERATION(tnf, _GET_BLOCK(tnf, src_cell)); in vaddr_to_phys() 87 dst_blk = _GET_BLOCK(tnf, dst_cell); in vaddr_to_phys() 90 dst_gen = _GET_BLOCK_GENERATION(tnf, dst_blk); in vaddr_to_phys() 93 bytes_valid = _GET_BLOCK_BYTES_VALID(tnf, dst_blk); in vaddr_to_phys() 110 _tnf_get_ref32(TNF *tnf, tnf_ref32_t *cell) in _tnf_get_ref32() argument 114 ref32 = _GET_INT32(tnf, cell); in _tnf_get_ref32() [all …]
|
H A D | libtnf.h | 68 TNF *tnf; /* TNF handle */ member 124 #define TAGOFF(tnf, p) ((unsigned)((caddr_t)(p) - (tnf)->data_start)) argument 125 #define TAGHASH(tnf, p) ((TAGOFF(tnf, p) >> TAGTABSHIFT) & TAGTABMASK) argument 179 #define _GET_UINT32(tnf, ptr) \ argument 180 ((tnf)->file_native ? \ 184 #define _GET_INT32(tnf, ptr) \ argument 185 ((tnf_int32_t)_GET_UINT32(tnf, ptr)) 187 #define _GET_UINT16(tnf, ptr) \ argument 188 ((tnf)->file_native ? \ 192 #define _GET_INT16(tnf, ptr) \ argument [all …]
|
H A D | util.c | 72 _tnf_get_props(TNF *tnf, tnf_ref32_t *tag) in _tnf_get_props() argument 82 if (HAS_PROPERTY(tnf, tag, p->name)) in _tnf_get_props() 95 _tnf_get_kind(TNF *tnf, tnf_ref32_t *tag) in _tnf_get_kind() argument 100 base_tag = _tnf_get_base_tag(tnf, tag); in _tnf_get_kind() 101 base_name = _tnf_get_name(tnf, base_tag); in _tnf_get_kind() 103 if (HAS_PROPERTY(tnf, base_tag, TNF_N_SCALAR)) { in _tnf_get_kind() 114 } else if (HAS_PROPERTY(tnf, base_tag, TNF_N_ARRAY)) { in _tnf_get_kind() 120 } else if (HAS_PROPERTY(tnf, base_tag, TNF_N_TYPE)) { in _tnf_get_kind() 123 } else if (HAS_PROPERTY(tnf, base_tag, TNF_N_STRUCT)) { in _tnf_get_kind()
|
H A D | record.c | 51 TNF *tnf; in tnf_get_tag_arg() local 56 tnf = DATUM_TNF(datum); in tnf_get_tag_arg() 60 arg = _tnf_get_tag_arg(tnf, DATUM_RECORD(datum)); in tnf_get_tag_arg() 65 return (RECORD_DATUM(tnf, arg)); in tnf_get_tag_arg()
|
H A D | datum.c | 76 TNF *tnf; in _tnf_check_datum() local 82 tnf = DATUM_TNF(datum); in _tnf_check_datum() 84 if ((val <= tnf->file_start) || (val >= tnf->file_end)) in _tnf_check_datum() 85 _tnf_error(tnf, TNF_ERR_BADDATUM); in _tnf_check_datum() 200 return (_tnf_get_self_size(info->tnf, DATUM_RECORD(datum))); in tnf_get_size()
|
H A D | scalar.c | 44 static tnf_uint64_t get_uint64(TNF *tnf, caddr_t val); 103 get_uint64(TNF *tnf, caddr_t val) in get_uint64() argument 115 if (tnf->file_native) in get_uint64() 124 if (tnf->file_native) in get_uint64()
|
H A D | error.c | 59 _tnf_error(TNF *tnf, tnf_errcode_t err) in _tnf_error() argument 61 (*_err_handler)(_err_arg, tnf, err); in _tnf_error() 109 tnf_default_error_handler(void *arg, TNF *tnf, tnf_errcode_t err) in tnf_default_error_handler() argument
|
H A D | array.c | 142 TNF *tnf; in tnf_get_element() local 145 tnf = DATUM_TNF(datum); in tnf_get_element() 147 rec = _GET_REF32(tnf, (tnf_ref32_t *) in tnf_get_element() 151 RECORD_DATUM(tnf, rec)); in tnf_get_element()
|
H A D | struct.c | 110 TNF *tnf; in get_slot() local 113 tnf = DATUM_TNF(datum); in get_slot() 115 rec = _GET_REF32(tnf, (tnf_ref32_t *) in get_slot() 119 RECORD_DATUM(tnf, rec)); in get_slot()
|
H A D | Makefile | 60 HDRS= tnf.h 61 ROOTHDRDIR= $(ROOT)/usr/include/tnf
|
/titanic_50/usr/src/pkg/manifests/ |
H A D | developer-tnf.mf | 27 set name=pkg.fmri value=pkg:/developer/tnf@$(PKGVERS) 37 dir path=usr/include/tnf 43 file path=usr/include/tnf/com.h 44 file path=usr/include/tnf/probe.h 45 file path=usr/include/tnf/tnf.h 46 file path=usr/include/tnf/writer.h 49 file path=usr/share/man/man3tnf/TNF_DECLARE_RECORD.3tnf 50 file path=usr/share/man/man3tnf/TNF_PROBE.3tnf 51 file path=usr/share/man/man3tnf/libtnfctl.3tnf 52 file path=usr/share/man/man3tnf/tnf_process_disable.3tnf [all …]
|
H A D | system-tnf.mf | 26 set name=pkg.fmri value=pkg:/system/tnf@$(PKGVERS) 38 dir path=usr/include/tnf 46 driver name=tnf perms="tnfctl 0600 root sys" perms="tnfmap 0600 root sys" 51 file path=usr/include/tnf/tnfctl.h 52 file path=usr/kernel/drv/$(ARCH64)/tnf group=sys 53 file path=usr/kernel/drv/tnf.conf group=sys
|
/titanic_50/usr/src/lib/libtnfprobe/ |
H A D | inc.flg | 25 echo_file usr/src/uts/common/tnf/tnf_writer.c 26 echo_file usr/src/uts/common/tnf/tnf_types.h 27 echo_file usr/src/uts/common/tnf/tnf_probe.c
|
H A D | Makefile.com | 36 UFSDIR= $(SRC)/uts/common/tnf 53 ROOTHDRDIR= $(ROOT)/usr/include/tnf
|
H A D | Makefile | 42 ROOTHDRDIR= $(ROOT)/usr/include/tnf
|
/titanic_50/usr/src/uts/sparc/tnf/ |
H A D | Makefile | 41 MODULE = tnf 45 CONF_SRCDIR = $(UTSBASE)/common/tnf
|
/titanic_50/usr/src/uts/intel/tnf/ |
H A D | Makefile | 42 MODULE = tnf 46 CONF_SRCDIR = $(UTSBASE)/common/tnf
|
/titanic_50/usr/src/cmd/tnf/tnfdump/ |
H A D | main.c | 132 TNF *tnf; in read_tnf_file() local 188 if ((err = tnf_reader_begin(p, st.st_size, &tnf)) != TNF_ERR_NONE) { in read_tnf_file() 198 record = tnf_get_file_header(tnf); in read_tnf_file()
|
/titanic_50/usr/src/lib/libtnfctl/ |
H A D | Makefile | 52 ROOTHDRDIR= $(ROOT)/usr/include/tnf
|
/titanic_50/usr/src/uts/sparc/ml/ |
H A D | modstubs.s | 981 MODULE(tnf,drv); 982 NO_UNLOAD_STUB(tnf, tnf_ref32_1, nomod_zero); 983 NO_UNLOAD_STUB(tnf, tnf_string_1, nomod_zero); 984 NO_UNLOAD_STUB(tnf, tnf_opaque_array_1, nomod_zero); 985 NO_UNLOAD_STUB(tnf, tnf_opaque32_array_1, nomod_zero); 986 NO_UNLOAD_STUB(tnf, tnf_struct_tag_1, nomod_zero); 987 NO_UNLOAD_STUB(tnf, tnf_allocate, nomod_zero); 988 END_MODULE(tnf);
|