/openbmc/linux/drivers/firmware/efi/ |
H A D | efi-pstore.c | 54 static int efi_pstore_read_func(struct pstore_record *record, in efi_pstore_read_func() argument 67 &record->type, &part, &cnt, &time, &data_type) == 5) { in efi_pstore_read_func() 68 record->id = generic_id(time, part, cnt); in efi_pstore_read_func() 69 record->part = part; in efi_pstore_read_func() 70 record->count = cnt; in efi_pstore_read_func() 71 record->time.tv_sec = time; in efi_pstore_read_func() 72 record->time.tv_nsec = 0; in efi_pstore_read_func() 74 record->compressed = true; in efi_pstore_read_func() 76 record->compressed = false; in efi_pstore_read_func() 77 record->ecc_notice_size = 0; in efi_pstore_read_func() [all …]
|
/openbmc/linux/tools/perf/tests/attr/ |
H A D | README | 35 perf record kill (test-record-basic) 36 perf record -b kill (test-record-branch-any) 37 perf record -j any kill (test-record-branch-filter-any) 38 perf record -j any_call kill (test-record-branch-filter-any_call) 39 perf record -j any_ret kill (test-record-branch-filter-any_ret) 40 perf record -j hv kill (test-record-branch-filter-hv) 41 perf record -j ind_call kill (test-record-branch-filter-ind_call) 42 perf record -j k kill (test-record-branch-filter-k) 43 perf record -j u kill (test-record-branch-filter-u) 44 perf record -c 123 kill (test-record-count) [all …]
|
/openbmc/linux/sound/usb/6fire/ |
H A D | firmware.c | 80 static bool usb6fire_fw_ihex_next_record(struct ihex_record *record) in usb6fire_fw_ihex_next_record() argument 86 record->error = false; in usb6fire_fw_ihex_next_record() 89 while (record->txt_offset < record->txt_length in usb6fire_fw_ihex_next_record() 90 && record->txt_data[record->txt_offset] != ':') in usb6fire_fw_ihex_next_record() 91 record->txt_offset++; in usb6fire_fw_ihex_next_record() 92 if (record->txt_offset == record->txt_length) in usb6fire_fw_ihex_next_record() 96 record->txt_offset++; in usb6fire_fw_ihex_next_record() 97 if (record->txt_offset + 8 > record->txt_length) { in usb6fire_fw_ihex_next_record() 98 record->error = true; in usb6fire_fw_ihex_next_record() 102 record->len = usb6fire_fw_ihex_hex(record->txt_data + in usb6fire_fw_ihex_next_record() [all …]
|
/openbmc/linux/fs/pstore/ |
H A D | platform.c | 262 void pstore_record_init(struct pstore_record *record, in pstore_record_init() argument 265 memset(record, 0, sizeof(*record)); in pstore_record_init() 267 record->psi = psinfo; in pstore_record_init() 270 record->time = ns_to_timespec64(ktime_get_real_fast_ns()); in pstore_record_init() 309 struct pstore_record record; in pstore_dump() local 311 pstore_record_init(&record, psinfo); in pstore_dump() 312 record.type = PSTORE_TYPE_DMESG; in pstore_dump() 313 record.count = oopscount; in pstore_dump() 314 record.reason = reason; in pstore_dump() 315 record.part = part; in pstore_dump() [all …]
|
H A D | inode.c | 40 struct pstore_record *record; member 56 if (private->record) { in free_pstore_private() 57 kvfree(private->record->buf); in free_pstore_private() 58 kfree(private->record->priv); in free_pstore_private() 59 kfree(private->record); in free_pstore_private() 111 rec = (struct pstore_ftrace_record *)(ps->record->buf + data->off); in pstore_ftrace_seq_show() 135 if (ps->record->type == PSTORE_TYPE_FTRACE) in pstore_file_read() 138 ps->record->buf, ps->total_size); in pstore_file_read() 148 if (ps->record->type == PSTORE_TYPE_FTRACE) in pstore_file_open() 184 struct pstore_record *record = p->record; in pstore_unlink() local [all …]
|
H A D | ram.c | 120 struct pstore_record *record) in ramoops_get_next_prz() argument 139 record->type = prz->type; in ramoops_get_next_prz() 140 record->id = id; in ramoops_get_next_prz() 178 static ssize_t ramoops_pstore_read(struct pstore_record *record) in ramoops_pstore_read() argument 181 struct ramoops_context *cxt = record->psi->data; in ramoops_pstore_read() 191 record->time.tv_sec = 0; in ramoops_pstore_read() 192 record->time.tv_nsec = 0; in ramoops_pstore_read() 193 record->compressed = false; in ramoops_pstore_read() 198 record); in ramoops_pstore_read() 202 &record->time, in ramoops_pstore_read() [all …]
|
H A D | zone.c | 658 struct pstore_zone *zone, struct pstore_record *record) in psz_kmsg_erase() argument 669 if (record->count != hdr->counter) in psz_kmsg_erase() 699 static int psz_pstore_erase(struct pstore_record *record) in psz_pstore_erase() argument 701 struct psz_context *cxt = record->psi->data; in psz_pstore_erase() 703 switch (record->type) { in psz_pstore_erase() 705 if (record->id >= cxt->kmsg_max_cnt) in psz_pstore_erase() 707 return psz_kmsg_erase(cxt, cxt->kpszs[record->id], record); in psz_pstore_erase() 713 if (record->id >= cxt->ftrace_max_cnt) in psz_pstore_erase() 715 return psz_record_erase(cxt, cxt->fpszs[record->id]); in psz_pstore_erase() 721 struct pstore_record *record) in psz_write_kmsg_hdr() argument [all …]
|
/openbmc/libpldm/src/dsp/ |
H A D | pdr.c | 39 pldm_pdr_record *record); 42 static int pldm_pdr_remove_record(pldm_pdr *repo, pldm_pdr_record *record, 47 const pldm_pdr_record *record) in get_next_record_handle() argument 49 if (record == repo->last) { in get_next_record_handle() 52 return record->next->record_handle; in get_next_record_handle() 78 pldm_pdr_record *record = malloc(sizeof(pldm_pdr_record)); in pldm_pdr_add() local 79 if (!record) { in pldm_pdr_add() 84 record->data = malloc(size); in pldm_pdr_add() 85 if (!record->data) { in pldm_pdr_add() 86 free(record); in pldm_pdr_add() [all …]
|
/openbmc/ipmitool/lib/ |
H A D | ipmi_ekanalyzer.c | 214 static void ipmi_ek_add_record2list( struct ipmi_ek_multi_header ** record, 218 static void ipmi_ek_display_record( struct ipmi_ek_multi_header * record, 223 struct ipmi_ek_multi_header * record, 242 struct ipmi_ek_multi_header * record ); 244 static int ipmi_ek_create_amc_p2p_record( struct ipmi_ek_multi_header * record, 270 struct ipmi_ek_multi_header * record, 295 struct ipmi_ek_multi_header * record ); 305 struct ipmi_ek_multi_header * record ); 308 struct ipmi_ek_multi_header * record ); 311 struct ipmi_ek_multi_header * record ); [all …]
|
H A D | ipmi_sensor.c | 625 if (!IS_THRESHOLD_SENSOR(sdr->record.common)) { in ipmi_sensor_set_threshold() 626 lprintf(LOG_ERR, "Invalid sensor event type %02x", sdr->record.common->event_type); in ipmi_sensor_set_threshold() 634 sdr->record.full->id_string, in ipmi_sensor_set_threshold() 637 sdr->record.common->keys. in ipmi_sensor_set_threshold() 639 __ipmi_sensor_threshold_value_to_raw(sdr->record.full, setting1), in ipmi_sensor_set_threshold() 640 sdr->record.common->keys.owner_id, in ipmi_sensor_set_threshold() 641 sdr->record.common->keys.lun, in ipmi_sensor_set_threshold() 642 sdr->record.common->keys.channel); in ipmi_sensor_set_threshold() 646 sdr->record.full->id_string, in ipmi_sensor_set_threshold() 649 sdr->record.common->keys. in ipmi_sensor_set_threshold() [all …]
|
/openbmc/linux/drivers/usb/misc/ |
H A D | ezusb.c | 64 const struct ihex_binrec *record; in ezusb_ihex_firmware_download() local 78 record = (const struct ihex_binrec *)firmware->data; in ezusb_ihex_firmware_download() 79 for (; record; record = ihex_next_binrec(record)) { in ezusb_ihex_firmware_download() 80 if (be32_to_cpu(record->addr) > fx.max_internal_adress) { in ezusb_ihex_firmware_download() 81 ret = ezusb_writememory(dev, be32_to_cpu(record->addr), in ezusb_ihex_firmware_download() 82 (unsigned char *)record->data, in ezusb_ihex_firmware_download() 83 be16_to_cpu(record->len), WRITE_EXT_RAM); in ezusb_ihex_firmware_download() 88 be32_to_cpu(record->addr), record->data, in ezusb_ihex_firmware_download() 89 be16_to_cpu(record->len)); in ezusb_ihex_firmware_download() 98 record = (const struct ihex_binrec *)firmware->data; in ezusb_ihex_firmware_download() [all …]
|
/openbmc/linux/tools/perf/util/arm-spe-decoder/ |
H A D | arm-spe-decoder.c | 157 memset(&decoder->record, 0x0, sizeof(decoder->record)); in arm_spe_read_record() 158 decoder->record.context_id = (u64)-1; in arm_spe_read_record() 170 decoder->record.timestamp = payload; in arm_spe_read_record() 177 decoder->record.from_ip = ip; in arm_spe_read_record() 179 decoder->record.to_ip = ip; in arm_spe_read_record() 181 decoder->record.virt_addr = ip; in arm_spe_read_record() 183 decoder->record.phys_addr = ip; in arm_spe_read_record() 187 decoder->record.latency = payload; in arm_spe_read_record() 190 decoder->record.context_id = payload; in arm_spe_read_record() 195 decoder->record.op |= ARM_SPE_OP_LDST; in arm_spe_read_record() [all …]
|
/openbmc/qemu/tests/migration/guestperf/ |
H A D | plot.py | 93 for record in report._guest_timings._records: 94 if record._value > maxvalue: 95 maxvalue = record._value 102 for record in report._qemu_timings._records: 104 cpudelta = (record._value - oldvalue) / 1000.0 105 timedelta = record._timestamp - oldtime 111 oldvalue = record._value 112 oldtime = record._timestamp 123 for record in report._guest_timings._records: 125 report._progress_history[progress_idx + 1]._now < record._timestamp): [all …]
|
/openbmc/linux/tools/firmware/ |
H A D | ihex2fw.c | 54 static void file_record(struct ihex_binrec *record); 134 struct ihex_binrec *record; in process_ihex() local 162 record_size = ALIGN(sizeof(*record) + len, 4); in process_ihex() 163 record = malloc(record_size); in process_ihex() 164 if (!record) { in process_ihex() 168 memset(record, 0, record_size); in process_ihex() 169 record->len = len; in process_ihex() 172 if (i + 8 + (record->len * 2) > size) { in process_ihex() 178 record->addr = hex(data + i, &crc) << 8; i += 2; in process_ihex() 179 record->addr |= hex(data + i, &crc); i += 2; in process_ihex() [all …]
|
/openbmc/linux/fs/jbd2/ |
H A D | revoke.c | 140 struct jbd2_revoke_record_s *record; in insert_revoke_hash() local 145 record = kmem_cache_alloc(jbd2_revoke_record_cache, gfp_mask); in insert_revoke_hash() 146 if (!record) in insert_revoke_hash() 149 record->sequence = seq; in insert_revoke_hash() 150 record->blocknr = blocknr; in insert_revoke_hash() 153 list_add(&record->hash, hash_list); in insert_revoke_hash() 164 struct jbd2_revoke_record_s *record; in find_revoke_record() local 169 record = (struct jbd2_revoke_record_s *) hash_list->next; in find_revoke_record() 170 while (&(record->hash) != hash_list) { in find_revoke_record() 171 if (record->blocknr == blocknr) { in find_revoke_record() [all …]
|
/openbmc/openbmc/poky/bitbake/lib/bb/ |
H A D | msg.py | 82 def format(self, record): argument 83 record.levelname = self.getLevelName(record.levelno) 84 if record.levelno == self.PLAIN: 85 msg = record.getMessage() 88 record = self.colorize(record) 89 msg = logging.Formatter.format(self, record) 90 if hasattr(record, 'bb_exc_formatted'): 91 msg += '\n' + ''.join(record.bb_exc_formatted) 94 def colorize(self, record): argument 95 color = self.COLORS[record.levelno] [all …]
|
/openbmc/linux/drivers/net/ethernet/broadcom/bnxt/ |
H A D | bnxt_coredump.c | 197 static void bnxt_fill_cmdline(struct bnxt_coredump_record *record) in bnxt_fill_cmdline() argument 204 sizeof(record->commandline) - 1); in bnxt_fill_cmdline() 205 if (len && !copy_from_user(record->commandline, in bnxt_fill_cmdline() 208 if (record->commandline[i]) in bnxt_fill_cmdline() 211 record->commandline[i] = ' '; in bnxt_fill_cmdline() 213 record->commandline[last + 1] = 0; in bnxt_fill_cmdline() 218 strscpy(record->commandline, current->comm, TASK_COMM_LEN); in bnxt_fill_cmdline() 222 bnxt_fill_coredump_record(struct bnxt *bp, struct bnxt_coredump_record *record, in bnxt_fill_coredump_record() argument 231 memset(record, 0, sizeof(*record)); in bnxt_fill_coredump_record() 232 memcpy(record->signature, "cOrE", 4); in bnxt_fill_coredump_record() [all …]
|
/openbmc/linux/arch/m68k/include/asm/ |
H A D | config.h | 11 extern int amiga_parse_bootinfo(const struct bi_record *record); 12 extern int apollo_parse_bootinfo(const struct bi_record *record); 13 extern int atari_parse_bootinfo(const struct bi_record *record); 14 extern int bvme6000_parse_bootinfo(const struct bi_record *record); 15 extern int hp300_parse_bootinfo(const struct bi_record *record); 16 extern int mac_parse_bootinfo(const struct bi_record *record); 17 extern int mvme147_parse_bootinfo(const struct bi_record *record); 18 extern int mvme16x_parse_bootinfo(const struct bi_record *record); 19 extern int q40_parse_bootinfo(const struct bi_record *record); 20 extern int virt_parse_bootinfo(const struct bi_record *record);
|
/openbmc/phosphor-host-ipmid/scripts/ |
H A D | entity-example.md | 29 # This record has: 39 # A record can have contained entities as a four entry list or as upto 40 # two ranges of entity instances; this record has contained entities 44 # entities within a container entity; this record is not linked 63 # This record has contained entities as a four entry list 65 # This record is linked with the below record; this record and the 66 # below record have the same container entity Id and container entity 81 # This record has contained entities as a four entry list 83 # This record is linked with the above record; this record and the 84 # above record have the same container entity Id and container entity [all …]
|
/openbmc/linux/lib/pldmfw/ |
H A D | pldmfw.c | 259 pldm_parse_desc_tlvs(struct pldmfw_priv *data, struct pldmfw_record *record, u8 desc_count) in pldm_parse_desc_tlvs() argument 298 list_add_tail(&desc->entry, &record->descs); in pldm_parse_desc_tlvs() 323 struct pldmfw_record *record; in pldm_parse_one_record() local 331 record = kzalloc(sizeof(*record), GFP_KERNEL); in pldm_parse_one_record() 332 if (!record) in pldm_parse_one_record() 335 INIT_LIST_HEAD(&record->descs); in pldm_parse_one_record() 336 list_add_tail(&record->entry, &data->records); in pldm_parse_one_record() 344 record->package_data_len = get_unaligned_le16(&__record->package_data_len); in pldm_parse_one_record() 345 record->version_len = __record->version_len; in pldm_parse_one_record() 346 record->version_type = __record->version_type; in pldm_parse_one_record() [all …]
|
/openbmc/phosphor-host-ipmid/ |
H A D | selutility.cpp | 84 const AdditionalData& data, GetSELEntryResponse& record) in constructOEMSEL() argument 91 record.event.oemCD.timeStamp = static_cast<uint32_t>( in constructOEMSEL() 94 record.event.oemCD.recordType = recordType; in constructOEMSEL() 97 memcpy(&record.event.oemCD.manufacturerID, sensorData.data(), in constructOEMSEL() 102 record.event.oemEF.recordType = recordType; in constructOEMSEL() 104 memcpy(&record.event.oemEF.oemDefined, sensorData.data(), in constructOEMSEL() 111 GetSELEntryResponse& record) in constructSEL() argument 120 record.event.eventRecord.sensorType = 0; in constructSEL() 121 record.event.eventRecord.sensorNum = 0xFF; in constructSEL() 122 record.event.eventRecord.eventType = 0; in constructSEL() [all …]
|
/openbmc/linux/drivers/gpu/drm/vboxvideo/ |
H A D | vbva_base.c | 64 struct vbva_record *record; in vbva_write() local 69 record = vbva_ctx->record; in vbva_write() 72 !record || !(record->len_and_flags & VBVA_F_RECORD_PARTIAL)) in vbva_write() 98 record->len_and_flags += chunk; in vbva_write() 158 vbva_ctx->record = NULL; in vbva_disable() 167 struct vbva_record *record; in vbva_buffer_begin_update() local 174 WARN_ON(vbva_ctx->buffer_overflow || vbva_ctx->record); in vbva_buffer_begin_update() 186 record = &vbva_ctx->vbva->records[vbva_ctx->vbva->record_free_index]; in vbva_buffer_begin_update() 187 record->len_and_flags = VBVA_F_RECORD_PARTIAL; in vbva_buffer_begin_update() 190 vbva_ctx->record = record; in vbva_buffer_begin_update() [all …]
|
/openbmc/linux/tools/tracing/rtla/src/ |
H A D | timerlat_aa.c | 149 struct trace_seq *s, struct tep_record *record, in timerlat_aa_irq_latency() argument 157 taa_data->tlat_irq_timstamp = record->ts; in timerlat_aa_irq_latency() 180 tep_get_field_val(s, event, "timer_latency", record, &taa_data->tlat_irq_latency, 1); in timerlat_aa_irq_latency() 181 tep_get_field_val(s, event, "seqnum", record, &taa_data->tlat_irq_seqnum, 1); in timerlat_aa_irq_latency() 184 tep_get_common_field_val(s, event, "common_pid", record, &taa_data->run_thread_pid, 1); in timerlat_aa_irq_latency() 217 struct trace_seq *s, struct tep_record *record, in timerlat_aa_thread_latency() argument 225 taa_data->tlat_thread_timstamp = record->ts; in timerlat_aa_thread_latency() 228 tep_get_field_val(s, event, "timer_latency", record, &taa_data->tlat_thread_latency, 1); in timerlat_aa_thread_latency() 229 tep_get_field_val(s, event, "seqnum", record, &taa_data->tlat_thread_seqnum, 1); in timerlat_aa_thread_latency() 241 static int timerlat_aa_handler(struct trace_seq *s, struct tep_record *record, in timerlat_aa_handler() argument [all …]
|
/openbmc/linux/tools/perf/Documentation/ |
H A D | jitdump-specification.txt | 29 …xed size header describing the type of record and its size. It is, itself, followed by the payload… 53 …ader is immediately followed by records. Each record starts with a fixed size header describing th… 55 The record header is specified in order as follows: 56 * uint32_t id : a value identifying the record type (see below) 57 * uint32_t total_size: the size in bytes of the record including the header. 58 * uint64_t timestamp : a timestamp of when the record was created. 60 The following record types are defined: 61 * Value 0 : JIT_CODE_LOAD : record describing a jitted function 62 * Value 1 : JIT_CODE_MOVE : record describing an already jitted function which is moved 63 * Value 2 : JIT_CODE_DEBUG_INFO: record describing the debug information for a jitted function [all …]
|
/openbmc/entity-manager/src/ |
H A D | entity_manager.hpp | 100 inline void logDeviceAdded(const nlohmann::json& record) in logDeviceAdded() argument 102 if (!deviceHasLogging(record)) in logDeviceAdded() 106 auto findType = record.find("Type"); in logDeviceAdded() 108 record.find("xyz.openbmc_project.Inventory.Decorator.Asset"); in logDeviceAdded() 115 if (findType != record.end()) in logDeviceAdded() 119 if (findAsset != record.end()) in logDeviceAdded() 141 auto findName = record.find("Name"); in logDeviceAdded() 142 if (findName != record.end()) in logDeviceAdded() 154 inline void logDeviceRemoved(const nlohmann::json& record) in logDeviceRemoved() argument 156 if (!deviceHasLogging(record)) in logDeviceRemoved() [all …]
|