/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 its profile into perf.data 9 -------- 11 'perf record' [-e <EVENT> | --event=EVENT] [-a] <command> 12 'perf record' [-e <EVENT> | --event=EVENT] [-a] \-- <command> [<options>] 15 ----------- 17 from it, into perf.data - without displaying anything. 23 ------- 27 -e:: [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/tools/perf/ |
H A D | builtin-record.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * builtin-record.c 5 * Builtin record command: Record the profile of a workload 6 * (or a CPU, or a PID) into the perf.data output file - for 11 #include "util/build-id.h" 12 #include <subcmd/parse-options.h> 14 #include "util/parse-events.h" 31 #include "util/record.h" 38 #include "util/parse-branch-options.h" 39 #include "util/parse-regs-options.h" [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/kernel/printk/ |
H A D | printk_ringbuffer.c | 1 // SPDX-License-Identifier: GPL-2.0 16 * ------- 383 to_blk_size(unsigned int size) to_blk_size() argument 398 data_check_size(struct prb_data_ring * data_ring,unsigned int size) data_check_size() argument 1007 get_next_lpos(struct prb_data_ring * data_ring,unsigned long lpos,unsigned int size) get_next_lpos() argument 1028 data_alloc(struct printk_ringbuffer * rb,unsigned int size,struct prb_data_blk_lpos * blk_lpos,unsigned long id) data_alloc() argument 1113 data_realloc(struct printk_ringbuffer * rb,unsigned int size,struct prb_data_blk_lpos * blk_lpos,unsigned long id) data_realloc() argument [all...] |
/linux/net/tls/ |
H A D | tls_device.c | 13 * - Redistributions of source code must retain the above 17 * - Redistributions in binary form must reproduce the above 60 if (ctx->tx_conf == TLS_HW) in tls_device_free_ctx() 63 if (ctx->rx_conf == TLS_HW) in tls_device_free_ctx() 73 struct tls_context *ctx = offload_ctx->ctx; in tls_device_tx_del_task() 79 netdev = rcu_dereference_protected(ctx->netdev, in tls_device_tx_del_task() 80 !refcount_read(&ctx->refcount)); in tls_device_tx_del_task() 82 netdev->tlsdev_ops->tls_dev_del(netdev, ctx, TLS_OFFLOAD_CTX_DIR_TX); in tls_device_tx_del_task() 84 ctx->netde in tls_device_tx_del_task() 139 destroy_record(struct tls_record_info * record) destroy_record() argument 255 tls_append_frag(struct tls_record_info * record,struct page_frag * pfrag,int size) tls_append_frag() argument 257 tls_append_frag(struct tls_record_info * record,struct page_frag * pfrag,int size) tls_append_frag() argument 280 tls_push_record(struct sock * sk,struct tls_context * ctx,struct tls_offload_context_tx * offload_ctx,struct tls_record_info * record,int flags) tls_push_record() argument 313 tls_device_record_close(struct sock * sk,struct tls_context * ctx,struct tls_record_info * record,struct page_frag * pfrag,unsigned char record_type) tls_device_record_close() argument 344 struct tls_record_info *record; tls_create_new_record() local 420 tls_push_data(struct sock * sk,struct iov_iter * iter,size_t size,int flags,unsigned char record_type) tls_push_data() argument 426 struct tls_record_info *record; tls_push_data() local 562 tls_device_sendmsg(struct sock * sk,struct msghdr * msg,size_t size) tls_device_sendmsg() argument [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/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/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 …]
|