/freebsd/contrib/processor-trace/libipt/src/ |
H A D | pt_section.c | 2 * Copyright (c) 2013-2019, Intel Corporation 33 #include "intel-pt.h" 43 struct pt_section *section; in pt_mk_section() local 51 return -pte_internal; in pt_mk_section() 55 return -pte_invalid; in pt_mk_section() 61 return -pte_nomem; in pt_mk_section() 71 errcode = -pte_invalid; in pt_mk_section() 76 fsize -= offset; in pt_mk_section() 80 section = malloc(sizeof(*section)); in pt_mk_section() 81 if (!section) { in pt_mk_section() [all …]
|
H A D | pt_image_section_cache.c | 2 * Copyright (c) 2016-2019, Intel Corporation 32 #include "intel-pt.h" 60 return -pte_internal; in pt_iscache_init() 63 iscache->limit = UINT64_MAX; in pt_iscache_init() 65 iscache->name = dupstr(name); in pt_iscache_init() 66 if (!iscache->name) in pt_iscache_init() 67 return -pte_nomem; in pt_iscache_init() 74 errcode = mtx_init(&iscache->lock, mtx_plain); in pt_iscache_init() 76 return -pte_bad_lock; in pt_iscache_init() 89 free(iscache->name); in pt_iscache_fini() [all …]
|
/freebsd/contrib/processor-trace/libipt/test/src/ |
H A D | ptunit-image_section_cache.c | 2 * Copyright (c) 2016-2019, Intel Corporation 33 #include "intel-pt.h" 65 /* A lock protecting this section. */ 75 extern int pt_section_get(struct pt_section *section); 76 extern int pt_section_put(struct pt_section *section); 77 extern int pt_section_attach(struct pt_section *section, 79 extern int pt_section_detach(struct pt_section *section, 82 extern int pt_section_map(struct pt_section *section); 83 extern int pt_section_map_share(struct pt_section *section); 84 extern int pt_section_unmap(struct pt_section *section); [all …]
|
H A D | ptunit-section.c | 2 * Copyright (c) 2013-2019, Intel Corporation 35 #include "intel-pt.h" 47 struct pt_section *section); 49 struct pt_section *section, uint64_t size); 52 struct pt_section *section) in pt_iscache_notify_map() argument 55 return -pte_internal; in pt_iscache_notify_map() 57 if (iscache->map <= 0) in pt_iscache_notify_map() 58 return iscache->map; in pt_iscache_notify_map() 61 iscache->map = 0; in pt_iscache_notify_map() 63 return pt_section_map_share(section); in pt_iscache_notify_map() [all …]
|
H A D | ptunit-msec_cache.c | 2 * Copyright (c) 2017-2019, Intel Corporation 33 #include "intel-pt.h" 36 int pt_section_get(struct pt_section *section) in pt_section_get() argument 40 if (!section) in pt_section_get() 41 return -pte_internal; in pt_section_get() 43 ucount = section->ucount + 1; in pt_section_get() 45 return -pte_overflow; in pt_section_get() 47 section->ucount = ucount; in pt_section_get() 51 int pt_section_put(struct pt_section *section) in pt_section_put() argument 55 if (!section) in pt_section_put() [all …]
|
/freebsd/contrib/processor-trace/libipt/internal/include/ |
H A D | pt_section.h | 2 * Copyright (c) 2013-2019, Intel Corporation 39 #include "intel-pt.h" 44 /* A section of contiguous memory loaded from a file. */ 57 /* A pointer to OS-specific file status for detecting changes. 60 * left in the section until the section is destroyed. This field 61 * is owned by the OS-specific mmap-based section implementation. 65 /* A pointer to implementation-specific mapping information - NULL if 66 * the section is currently not mapped. 76 * section is unmapped. 78 * We read this field without locking and only lock the section in order [all …]
|
H A D | pt_image_section_cache.h | 2 * Copyright (c) 2016-2019, Intel Corporation 41 /* An image section cache entry. */ 43 /* The section object. 45 * We hold a reference to the section - put it when the section is 48 struct pt_section *section; member 50 /* The base address at which @section has been loaded. */ 54 /* An image section cache least recently used cache entry. */ 59 /* The section mapped by the image section cache. */ 60 struct pt_section *section; member 62 /* The amount of memory used by mapping @section in bytes. */ [all …]
|
H A D | pt_mapped_section.h | 2 * Copyright (c) 2014-2019, Intel Corporation 32 #include "intel-pt.h" 38 /* A section mapped into memory. */ 40 /* The section that is mapped. */ 41 struct pt_section *section; member 43 /* The address space into which the section is mapped. */ 46 /* The virtual address at which the section is mapped. */ 49 /* The offset into the section. 51 * This is normally zero but when @section is split, @offset is added to 52 * the section/file offset when accessing @section. [all …]
|
/freebsd/share/man/man5/ |
H A D | elf.5 | 42 followed by a program header table or a section header table, or both. 45 table and the section header table's offset in the file are defined in the 60 regardless whether the host is 32-bit or 64-bit. 87 The following types are being used for 32-bit architectures: 88 .Bd -literal -offset indent 89 Elf32_Addr Unsigned 32-bit program address 90 Elf32_Half Unsigned 16-bit field 91 Elf32_Lword Unsigned 64-bit field 92 Elf32_Off Unsigned 32-bit file offset 93 Elf32_Sword Signed 32-bit field or integer [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/ObjectYAML/ |
H A D | WasmYAML.cpp | 1 //===- WasmYAML.cpp - Wasm YAMLIO implementation --------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 11 //===----------------------------------------------------------------------===// 25 // http://llvm.org/docs/CodingStandards.html#provide-a-virtual-method-anchor-for-classes-in-headers 26 Section::~Section() = default; 46 static void commonSectionMapping(IO &IO, WasmYAML::Section &Section) { in commonSectionMapping() argument 47 IO.mapRequired("Type", Section.Type); in commonSectionMapping() 48 IO.mapOptional("Relocations", Section.Relocations); in commonSectionMapping() 49 IO.mapOptional("HeaderSecSizeEncodingLen", Section.HeaderSecSizeEncodingLen); in commonSectionMapping() [all …]
|
H A D | WasmEmitter.cpp | 1 //===- yaml2wasm - Convert YAML to a Wasm object file --------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 12 //===----------------------------------------------------------------------===// 33 void writeRelocSection(raw_ostream &OS, WasmYAML::Section &Sec, 38 void writeSectionContent(raw_ostream &OS, WasmYAML::CustomSection &Section); 39 void writeSectionContent(raw_ostream &OS, WasmYAML::TypeSection &Section); 40 void writeSectionContent(raw_ostream &OS, WasmYAML::ImportSection &Section); 41 void writeSectionContent(raw_ostream &OS, WasmYAML::FunctionSection &Section); 42 void writeSectionContent(raw_ostream &OS, WasmYAML::TableSection &Section); [all …]
|
H A D | ELFEmitter.cpp | 1 //===- yaml2elf - Convert YAML to a ELF object file -----------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 12 //===----------------------------------------------------------------------===// 85 uint64_t PaddingSize = AlignedOffset - CurrentOffset; in padToAlignment() 139 memcpy(&Buf[Pos - InitialOffset], Data, Size); in updateDataAt() 143 // Used to keep track of section and symbol names, so that in the YAML file 158 Idx = I->getValue(); in lookup() 166 assert(false && "Expected section not found in index"); in get() 189 /// The future symbol table string section. [all …]
|
/freebsd/contrib/processor-trace/libipt/src/posix/ |
H A D | pt_section_posix.c | 2 * Copyright (c) 2013-2019, Intel Corporation 33 #include "intel-pt.h" 52 return -pte_internal; in pt_section_mk_status() 56 return -pte_bad_file; in pt_section_mk_status() 59 return -pte_bad_image; in pt_section_mk_status() 63 return -pte_nomem; in pt_section_mk_status() 65 status->stat = buffer; in pt_section_mk_status() 73 static int check_file_status(struct pt_section *section, int fd) in check_file_status() argument 79 if (!section) in check_file_status() 80 return -pte_internal; in check_file_status() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/DWARFLinker/Parallel/ |
H A D | DebugLineSectionEmitter.h | 1 //===- DebugLineSectionEmitter.h --------------------------------*- C++ -*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 23 /// This class emits specified line table into the .debug_line section. 36 // Get descriptor for output .debug_line section. in emit() 52 assert(OffsetAfterUnitLength - in emit() 55 OutSection.apply(OffsetAfterUnitLength - in emit() 58 OffsetAfterEnd - OffsetAfterUnitLength); in emit() 76 MRI.reset(TheTarget->createMCRegInfo(TripleName)); in init() 83 MAI.reset(TheTarget->createMCAsmInfo(*MRI, TripleName, MCOptions)); in init() [all …]
|
/freebsd/contrib/elftoolchain/elfcopy/ |
H A D | elfcopy.1 | 1 .\" Copyright (c) 2008-2009,2011 Joseph Koshy. All rights reserved. 24 .\" $Id: elfcopy.1 3642 2018-10-14 14:24:28Z jkoshy $ 35 .Op Fl I Ar objformat | Fl s Ar objformat | Fl -input-target= Ns Ar objformat 36 .Op Fl K Ar symbolname | Fl -keep-symbol= Ns Ar symbolname 37 .Op Fl L Ar symbolname | Fl -localize-symbol= Ns Ar symbolname 38 .Op Fl N Ar symbolname | Fl -strip-symbol= Ns Ar symbolname 39 .Op Fl O Ar objformat | Fl -output-target= Ns Ar objformat 40 .Op Fl R Ar sectionname | Fl -remove-section= Ns Ar sectionname 41 .Op Fl S | Fl -strip-all 42 .Op Fl V | Fl -version [all …]
|
/freebsd/contrib/processor-trace/libipt/src/windows/ |
H A D | pt_section_windows.c | 2 * Copyright (c) 2015-2019, Intel Corporation 33 #include "intel-pt.h" 46 return -pte_internal; in pt_sec_windows_fstat() 49 if (fd == -1) in pt_sec_windows_fstat() 50 return -pte_bad_file; in pt_sec_windows_fstat() 57 return -pte_bad_file; in pt_sec_windows_fstat() 69 return -pte_internal; in pt_section_mk_status() 76 return -pte_bad_image; in pt_section_mk_status() 80 return -pte_nomem; in pt_section_mk_status() 82 status->stat = stat; in pt_section_mk_status() [all …]
|
/freebsd/crypto/openssl/test/recipes/80-test_cmp_http_data/ |
H A D | test_commands.csv | 1 expected,description, -section,val, -cmd,val,val2, -cacertsout,val,val2, -infotype,val,, -oldcert,v… 4 1,minimum options, -section,, -cmd,ir,,BLANK,,,BLANK,,,BLANK,,BLANK, 6 0,no cmd, -section,,BLANK,,,BLANK,,,BLANK,,,BLANK,,BLANK, 7 0,cmd missing arg, -section,, -cmd,,,BLANK,,,BLANK,,,BLANK,,BLANK, 8 0,cmd undefined , -section,, -cmd,abc,,BLANK,,,BLANK,,,BLANK,,BLANK, 9 0,cmd incomplete, -section,, -cmd,i,,BLANK,,,BLANK,,,BLANK,,BLANK, 11 1,no cacertsout, -section,, -cmd,ir,,BLANK,,,BLANK,,,BLANK,,BLANK, 12 1,cacertsout given, -section,, -cmd,ir,, -cacertsout,_RESULT_DIR/test.cacerts.pem,,BLANK,,,BLANK,,B… 13 0,cacertsout missing arg, -section,, -cmd,ir,, -cacertsout,,,BLANK,,,BLANK,,BLANK, 15 1, --- get certificate for revocation ----, -section,, -cmd,cr,,BLANK,,,BLANK,,,BLANK,,BLANK, [all …]
|
H A D | test_connection.csv | 1 …ed,description, -section,val, -server,val, -proxy,val, -no_proxy,val, -tls_used,noarg, -path,val, … 4 1,default config, -section,,,,,,,,BLANK,,,,BLANK,,BLANK,,BLANK, 5 TBD,Domain name, -section,, -server,_SERVER_CN:_SERVER_PORT,,,,,,,,,,,,,, 6 TBD,IP address, -section,, -server,_SERVER_IP:_SERVER_PORT,,,,,,,,,,,,,, 8 0,wrong server, -section,, -server,xn--rksmrgs-5wao1o.example.com:_SERVER_PORT,,,,,BLANK,,,, -msg_t… 9 0,wrong server port, -section,, -server,_SERVER_HOST:99,,,,,BLANK,,,, -msg_timeout,1,BLANK,,BLANK, 10 0,server default port, -section,, -server,_SERVER_HOST,,,,,BLANK,,,, -msg_timeout,1,BLANK,,BLANK, 11 0,server port out of range, -section,, -server,_SERVER_HOST:65536,,,,,BLANK,,,,BLANK,,BLANK,,BLANK, 12 0,server port negative, -section,, -server,_SERVER_HOST:-10,,,,,BLANK,,,,BLANK,,BLANK,,BLANK, 13 0,server missing argument, -section,, -server,,,,,,BLANK,,,,BLANK,,BLANK,,BLANK, [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/MCTargetDesc/ |
H A D | NVPTXTargetStreamer.cpp | 1 //=====- NVPTXTargetStreamer.cpp - NVPTXTargetStreamer class ------------=====// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 11 //===----------------------------------------------------------------------===// 46 const MCSection *Section) { in isDwarfSection() argument 49 if (!Section || Section->isText()) in isDwarfSection() 51 return Section == FI->getDwarfAbbrevSection() || in isDwarfSection() 52 Section == FI->getDwarfInfoSection() || in isDwarfSection() 53 Section == FI->getDwarfMacinfoSection() || in isDwarfSection() 54 Section == FI->getDwarfFrameSection() || in isDwarfSection() [all …]
|
/freebsd/usr.bin/clang/llvm-readobj/ |
H A D | llvm-readobj.1 | 4 .nr rst2man-indent-level 0 7 \\$1 \\n[an-margin] 8 level \\n[rst2man-indent-level] 9 level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] 10 - 11 \\n[rst2man-indent0] 12 \\n[rst2man-indent1] 13 \\n[rst2man-indent2] 18 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] 19 . nr rst2man-indent-level +1 [all …]
|
H A D | llvm-readelf.1 | 4 .nr rst2man-indent-level 0 7 \\$1 \\n[an-margin] 8 level \\n[rst2man-indent-level] 9 level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] 10 - 11 \\n[rst2man-indent0] 12 \\n[rst2man-indent1] 13 \\n[rst2man-indent2] 18 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] 19 . nr rst2man-indent-level +1 [all …]
|
/freebsd/contrib/llvm-project/llvm/tools/llvm-readobj/ |
H A D | Opts.td | 3 class F<string letter, string help> : Flag<["-"], letter>, HelpText<help>; 4 class FF<string name, string help> : Flag<["--"], name>, HelpText<help>; 7 def NAME: Flag<["--"], name>, HelpText<help1>; 8 def no_ # NAME: Flag<["--"], "no-" # name>, HelpText<help2>; 12 def NAME #_EQ : Joined<["--"], name #"=">, HelpText<help>; 13 def : Separate<["--"], name>, Alias<!cast<Joined>(NAME #_EQ)>; 16 def addrsig : FF<"addrsig", "Display address-significance table">; 17 def all : FF<"all", "Equivalent to setting: --file-header, --program-headers, --section-headers, " 18 "--symbols, --relocations, --dynamic-table, --notes, --version-info, --unwind, " 19 "--section-groups and --histogram">; [all …]
|
/freebsd/crypto/openssl/crypto/ts/ |
H A D | ts_conf.c | 2 * Copyright 2006-2020 The OpenSSL Project Authors. All Rights Reserved. 79 if (xi->x509 != NULL) { in STACK_OF() 80 if (!X509_add_cert(othercerts, xi->x509, X509_ADD_FLAG_DEFAULT)) { in STACK_OF() 85 xi->x509 = NULL; in STACK_OF() 123 const char *TS_CONF_get_tsa_section(CONF *conf, const char *section) in TS_CONF_get_tsa_section() argument 125 if (!section) { in TS_CONF_get_tsa_section() 126 section = NCONF_get_string(conf, BASE_SECTION, ENV_DEFAULT_TSA); in TS_CONF_get_tsa_section() 127 if (!section) in TS_CONF_get_tsa_section() 130 return section; in TS_CONF_get_tsa_section() 133 int TS_CONF_set_serial(CONF *conf, const char *section, TS_serial_cb cb, in TS_CONF_set_serial() argument [all …]
|
/freebsd/contrib/llvm-project/lldb/include/lldb/Core/ |
H A D | Section.h | 1 //===-- Section.h -----------------------------------------------*- C++ -*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 16 #include "lldb/lldb-defines.h" 17 #include "lldb/lldb-enumerations.h" 18 #include "lldb/lldb-forward.h" 19 #include "lldb/lldb-types.h" 32 class Section; variable 55 size_t FindSectionIndex(const Section *sect); 110 class Section : public std::enable_shared_from_this<Section>, [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/PDB/DIA/ |
H A D | DIASectionContrib.cpp | 1 //===- DIASectionContrib.cpp - DIA impl. of IPDBSectionContrib ---- C++ -*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 19 : Session(PDBSession), Section(DiaSection) {} in DIASectionContrib() 23 if (FAILED(Section->get_compiland(&Symbol))) in getCompiland() 32 PrivateGetDIAValue(IDiaSectionContrib *Section, in PrivateGetDIAValue() argument 35 if (S_OK == (Section->*Method)(&Value)) in PrivateGetDIAValue() 42 return PrivateGetDIAValue(Section, &IDiaSectionContrib::get_addressSection); in getAddressSection() 46 return PrivateGetDIAValue(Section, &IDiaSectionContrib::get_addressOffset); in getAddressOffset() 50 return PrivateGetDIAValue(Section, &IDiaSectionContrib::get_virtualAddress); in getVirtualAddress() [all …]
|