/linux/tools/perf/Documentation/ |
H A D | jitdump-specification.txt | 5 -------------------------------------------------------- 7 -------------------------------------------------------- 9 -------------------------------------------------------- 11 -------------------------------------------------------- 17 …ile is generated by Just-In-time compiler runtimes to save meta-data information about the generat… 21 The format of the file is binary. It is self-describing in terms of endianness and is portable acro… 27 …sequential accesses, i.e., append only mode. The file starts with a fixed size file header describ… 29 …ixed size header describing the type of record and its size. It is, itself, followed by the payloa… 36 Each jitdump file starts with a fixed size header containing the following fields in order: 39 * uint32_t magic : a magic number tagging the file type. The value is 4-byte long and represent… [all …]
|
H A D | perf-record.txt | 1 perf-record(1) 5 ---- 6 perf-record - Run a command and record it [all...] |
/linux/fs/pstore/ |
H A D | ram.c | 1 // SPDX-License-Identifier: GPL-2.0-only 34 "size of each dump done on oops/panic"); 38 MODULE_PARM_DESC(console_size, "size of kernel console log"); 42 MODULE_PARM_DESC(ftrace_size, "size of ftrace log"); 46 MODULE_PARM_DESC(pmsg_size, "size of user space message log"); 60 "size of reserved RAM used to store oops/panic logs"); 65 "memory type: 0=write-combined (default), 1=unbuffered, 2=cached"); 67 static int ramoops_max_reason = -1; 75 "if non-zero, the option enables ECC support and specifies " 76 "ECC buffer size in bytes (1 is a special value, means 16 " [all …]
|
H A D | platform.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Persistent Storage - platform driver interface parts. 5 * Copyright (C) 2007-2008 Google, Inc. 32 * We defer making "oops" entries appear in pstore - see 36 static int pstore_update_ms = -1; 39 "(default is -1, which means runtime updates are disabled; " 50 "powerpc-ofw", 51 "powerpc-common", 53 "powerpc-opal", 82 * size, and compresses ASCII text comparatively well. In terms of compression [all …]
|
H A D | zone.c | 1 // SPDX-License-Identifier: GPL-2.0 26 * struct psz_buffer - header of zone to flush to storage 28 * @sig: signature to indicate header (PSZ_SIG xor PSZONE-type value) 42 * struct psz_kmsg_header - kmsg dump-specific header to flush to storage 51 * This is a sub-header for a kmsg dump, trailing after &psz_buffer. 64 * struct pstore_zone - single stored buffer 67 * @type: front-end type for this zone 68 * @name: front-end name for this zone 71 * @buffer_size: bytes in @buffer->data 90 * struct psz_context - all about running state of pstore/zone [all …]
|
H A D | inode.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Persistent Storage - ramfs parts. 43 struct pstore_record *record; member 50 size_t size; member 59 if (private->record) { in free_pstore_private() 60 kvfree(private->record->buf); in free_pstore_private() 61 kfree(private->record->priv); in free_pstore_private() 62 kfree(private->record); in free_pstore_private() 70 struct pstore_private *ps = s->private; in pstore_ftrace_seq_start() 77 data->off = ps->total_size % REC_SIZE; in pstore_ftrace_seq_start() [all …]
|
/linux/fs/freevxfs/ |
H A D | vxfs_olt.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Copyright (c) 2000-2001 Christoph Hellwig. 9 * Veritas filesystem driver - Object Location Table data structures. 17 * OLT magic number (vxfs_olt->olt_magic). 37 * OLT extent. It is used to fing certain filesystem-wide metadata, e.g. 42 __fs32 olt_size; /* size of this entry */ 49 __fs32 olt_esize; /* size of this extent */ 51 __fs32 olt_nsize; /* size of next extent */ 59 __fs32 olt_type; /* type of this record */ 60 __fs32 olt_size; /* size of this record */ [all …]
|
/linux/drivers/firmware/efi/ |
H A D | efi-pstore.c | 1 // SPDX-License-Identifier: GPL-2.0+ 15 MODULE_PARM_DESC(record_size, "size of each pstore UEFI var (in bytes, min/default=1024)"); 62 psi->data = kzalloc(record_size, GFP_KERNEL); in efi_pstore_open() 63 if (!psi->data) in efi_pstore_open() 64 return -ENOMEM; in efi_pstore_open() 72 kfree(psi->data); in efi_pstore_close() 81 static int efi_pstore_read_func(struct pstore_record *record, in efi_pstore_read_func() argument 84 unsigned long wlen, size = record_size; in efi_pstore_read_func() local 93 if (sscanf(name, "dump-type%u-%u-%d-%llu-%c", in efi_pstore_read_func() 94 &record->type, &part, &cnt, &time, &data_type) == 5) { in efi_pstore_read_func() [all …]
|
/linux/drivers/md/dm-vdo/indexer/ |
H A D | open-chapter.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 #include "open-chapter.h" 11 #include "memory-alloc.h" 16 #include "hash-utils.h" 20 * open chapter space. Records are assigned to zones based on their record name. Within each zone, 22 * record is stored in a hash table to help determine if a new record duplicates an existing one. 23 * If new metadata for an existing name arrives, the record is altered in place. The array of 24 * records is 1-based so that record number 0 can be used to indicate an unused hash slot. 28 * indexed by record number instead of by record name. The number of hash slots will always be a 33 * each zone are interleaved to attempt to preserve temporal locality and assigned to record pages. [all …]
|
H A D | volume-index.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 11 #include "thread-utils.h" 14 #include "delta-index.h" 18 * The volume index is the primary top-level index for UDS. It contains records which map a record 19 * name to the chapter where a record with that name is stored. This mapping can definitively say 20 * when no record exists. However, because we only use a subset of the name for this index, it 21 * cannot definitively say that a record for the entry does exist. It can only say that if a record 25 * If the volume_index_record does not actually match the record name, the index can store a more 26 * specific collision record to disambiguate the new entry from the existing one. Index entries are 66 /* Expected size of a chapter (per zone) */ [all …]
|
/linux/include/linux/ |
H A D | pstore.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Persistent Storage - pstore.h 24 * pstore record types (see fs/pstore/platform.c for pstore_type_names[]) 35 /* PPC64-specific partition types */ 51 * struct pstore_record - details of a pstore record entry 53 * @type: pstore record type 54 * @id: per-type unique identifier for record 55 * @time: timestamp of the record 56 * @buf: pointer to record contents 57 * @size: size of @buf [all …]
|
/linux/lib/pldmfw/ |
H A D | pldmfw_private.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* Copyright (C) 2018-2019, Intel Corporation. */ 16 * structures is not guaranteed when reading. For this reason, all multi-byte 18 * Additionally, the standard specifies that multi-byte fields are in 26 /* UUID for PLDM firmware packages: f018878c-cb7d-4943-9800-a02f059aca02 */ 44 __le16 size; /* PackageHeaderSize */ member 56 * The total size of this section is 62 /* Firmware Device ID Record */ 80 * The total size of each record is 93 __le16 size; /* DescriptorSize */ member [all …]
|
/linux/drivers/net/wireless/ath/wil6210/ |
H A D | fw.h | 1 /* SPDX-License-Identifier: ISC */ 4 * Copyright (c) 2018-2019, The Linux Foundation. All rights reserved. 27 __le32 size; /* whole record, bytes after head */ member 31 * data_size inferred from the @head.size. For this case, 32 * data_size = @head.size - offsetof(struct wil_fw_record_data, data) 39 /* fill with constant @value, @size bytes starting from @addr */ 43 __le32 size; member 46 /* free-form comment 47 * for informational purpose, data_size is @head.size from record header 50 DECLARE_FLEX_ARRAY(u8, data); /* free-form data [data_size], see above */ [all …]
|
H A D | fw_inc.c | 1 // SPDX-License-Identifier: ISC 3 * Copyright (c) 2014-2017 Qualcomm Atheros, Inc. 4 * Copyright (c) 2018-2019, The Linux Foundation. All rights reserved. 21 u32 size, const char *msg) in wil_fw_addr_check() argument 23 *ioaddr = wmi_buffer_block(wil, val, size); in wil_fw_addr_check() 32 * wil_fw_verify - verify firmware file validity 37 * Return file size or negative error 39 static int wil_fw_verify(struct wil6210_priv *wil, const u8 *data, size_t size) in wil_fw_verify() argument 47 if (size % 4) { in wil_fw_verify() 48 wil_err_fw(wil, "image size not aligned: %zu\n", size); in wil_fw_verify() [all …]
|
/linux/arch/powerpc/kernel/ |
H A D | nvram_64.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 32 /* If change this size, then change the size of NVNAME_LEN */ 51 .name = "ibm,rtas-log", 54 .index = -1, 60 .name = "lnx,oops-log", 63 .index = -1, 69 "ibm,rtas-log", 71 "lnx,oops-log", 95 * +- oops_buf 96 * | +- oops_data [all …]
|
/linux/tools/firmware/ |
H A D | ihex2fw.c | 1 // SPDX-License-Identifier: GPL-2.0-only 25 #define __ALIGN_KERNEL(x, a) __ALIGN_KERNEL_MASK(x, (typeof(x))(a) - 1) 40 if (n >= '0' && n <= '9') return n - '0'; in nybble() 41 else if (n >= 'A' && n <= 'F') return n - ('A' - 10); in nybble() 42 else if (n >= 'a' && n <= 'f') return n - ('a' - 10); in nybble() 53 static int process_ihex(uint8_t *data, ssize_t size); 54 static void file_record(struct ihex_binrec *record); 66 fprintf(stderr, " -w: wide records (16-bit length)\n"); in usage() 67 fprintf(stderr, " -s: sort records by address\n"); in usage() 68 fprintf(stderr, " -j: include records for CS:IP/EIP address\n"); in usage() [all …]
|
/linux/drivers/acpi/apei/ |
H A D | erst.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * APEI Error Record Serialization Table support 30 #include "apei-internal.h" 72 u64 size; member 94 return -ENODEV; in erst_errno() 96 return -ENOSPC; in erst_errno() 99 return -ENOENT; in erst_errno() 101 return -EINVAL; in erst_errno() 124 *t -= spin_unit; in erst_timedout() 133 return __apei_exec_read_register(entry, &ctx->var1); in erst_exec_load_var1() [all …]
|
/linux/fs/jfs/ |
H A D | jfs_logmgr.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * Copyright (C) International Business Machines Corp., 2000-2004 4 * Portions Copyright (C) Christoph Hellwig, 2001-2002 18 /* log page size */ 34 * lmLogInit(), lmLogShutdown(), and logRedo() to record status 36 * blocks 2 - (N-1) are used to contain log records. 38 * when a volume group is varied-on-line, logRedo() must have 57 __le32 size; /* 4: size in number of LOGPSIZE blocks */ member 58 __le32 bsize; /* 4: logical block size in byte */ 62 __le32 state; /* 4: state - see below */ [all …]
|
/linux/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_ras_eeprom.c | 37 * chips strung on the I2C bus, usually by manipulating pins 1-3 of a 49 * 54h = 1010100b => --"--, bits 18:16 = 100b, address 40000h. 50 * 56h = 1010110b => --"--, bits 18:16 = 110b, address 60000h. 51 * Depending on the size of the I2C EEPROM device(s), bits 18:16 may 53 * the status of pins 1-3. See top of amdgpu_eeprom.c. 61 * The 2 macros below represent the actual size in bytes that 77 * --------------------------------- 80 * | ( size 20 Bytes ) | 82 * --------------------------------- 84 * | BAD PAGE RECORD AREA | [all …]
|
/linux/kernel/printk/ |
H A D | printk_ringbuffer.c | 1 // SPDX-License-Identifier: GPL-2.0 15 * -------------- 21 * the record and logical positions specifying where in the other 27 * string of the record. 33 * -------------- 38 * essential meta data to track the data of a printk record using 49 * A writer is modifying the record. 52 * The record and all its data are written. A writer can reopen the 57 * The record and all its data are complete and available for reading. A 61 * The record exists, but its text and/or meta data may no longer be [all …]
|
/linux/fs/hfs/ |
H A D | brec.c | 1 // SPDX-License-Identifier: GPL-2.0 18 /* Get the length and offset of the given record in the given node */ 24 dataoff = node->tree->node_size - (rec + 2) * 2; in hfs_brec_lenoff() 27 return be16_to_cpu(retval[0]) - *off; in hfs_brec_lenoff() 30 /* Get the length of the key from a keyed record */ 35 if (node->type != HFS_NODE_INDEX && node->type != HFS_NODE_LEAF) in hfs_brec_keylen() 38 if ((node->type == HFS_NODE_INDEX) && in hfs_brec_keylen() 39 !(node->tree->attributes & HFS_TREE_VARIDXKEYS)) { in hfs_brec_keylen() 40 if (node->tree->attributes & HFS_TREE_BIGKEYS) in hfs_brec_keylen() 41 retval = node->tree->max_key_len + 2; in hfs_brec_keylen() [all …]
|
/linux/fs/hfsplus/ |
H A D | brec.c | 1 // SPDX-License-Identifier: GPL-2.0 19 /* Get the length and offset of the given record in the given node */ 25 dataoff = node->tree->node_size - (rec + 2) * 2; in hfs_brec_lenoff() 28 return be16_to_cpu(retval[0]) - *off; in hfs_brec_lenoff() 31 /* Get the length of the key from a keyed record */ 36 if (node->type != HFS_NODE_INDEX && node->type != HFS_NODE_LEAF) in hfs_brec_keylen() 39 if ((node->type == HFS_NODE_INDEX) && in hfs_brec_keylen() 40 !(node->tree->attributes & HFS_TREE_VARIDXKEYS) && in hfs_brec_keylen() 41 (node->tree->cnid != HFSPLUS_ATTR_CNID)) { in hfs_brec_keylen() 42 retval = node->tree->max_key_len + 2; in hfs_brec_keylen() [all …]
|
/linux/tools/perf/util/ |
H A D | zstd.c | 1 // SPDX-License-Identifier: GPL-2.0 10 data->comp_level = level; in zstd_init() 11 data->dstream = NULL; in zstd_init() 12 data->cstream = NULL; in zstd_init() 18 if (data->dstream) { in zstd_fini() 19 ZSTD_freeDStream(data->dstream); in zstd_fini() 20 data->dstream = NULL; in zstd_fini() 23 if (data->cstream) { in zstd_fini() 24 ZSTD_freeCStream(data->cstream); in zstd_fini() 25 data->cstream = NULL; in zstd_fini() [all …]
|
/linux/Documentation/driver-api/pldmfw/ |
H A D | file-format.rst | 1 .. SPDX-License-Identifier: GPL-2.0-only 15 +----------------------+ 19 +----------------------+ 23 +----------------------+ 27 +----------------------+ 31 +----------------------+ 35 +----------------------+ 39 +----------------------+ 43 +----------------------+ 47 +----------------------+ [all …]
|
/linux/drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/ |
H A D | chcr_ktls.c | 1 // SPDX-License-Identifier: GPL-2.0-only 36 frag_size = min(len, skb_linear_data_len - start); in chcr_get_nfrags_to_send() 38 start -= skb_linear_data_len; in chcr_get_nfrags_to_send() 40 frag = &si->frags[frag_idx]; in chcr_get_nfrags_to_send() 43 start -= frag_size; in chcr_get_nfrags_to_send() 45 frag = &si->frags[frag_idx]; in chcr_get_nfrags_to_send() 48 frag_size = min(len, skb_frag_size(frag) - start); in chcr_get_nfrags_to_send() 50 len -= frag_size; in chcr_get_nfrags_to_send() 54 frag_size = min(len, skb_frag_size(&si->frags[frag_idx])); in chcr_get_nfrags_to_send() 55 len -= frag_size; in chcr_get_nfrags_to_send() [all …]
|