| /OK3568_Linux_fs/kernel/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 …]
|
| /OK3568_Linux_fs/kernel/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 …]
|
| /OK3568_Linux_fs/kernel/drivers/firmware/efi/ |
| H A D | efi-pstore.c | 44 struct pstore_record *record) in efi_pstore_read_func() argument 61 &record->type, &part, &cnt, &time, &data_type) == 5) { in efi_pstore_read_func() 62 record->id = generic_id(time, part, cnt); in efi_pstore_read_func() 63 record->part = part; in efi_pstore_read_func() 64 record->count = cnt; in efi_pstore_read_func() 65 record->time.tv_sec = time; in efi_pstore_read_func() 66 record->time.tv_nsec = 0; in efi_pstore_read_func() 68 record->compressed = true; in efi_pstore_read_func() 70 record->compressed = false; in efi_pstore_read_func() 71 record->ecc_notice_size = 0; in efi_pstore_read_func() [all …]
|
| /OK3568_Linux_fs/kernel/fs/pstore/ |
| H A D | platform.c | 373 void pstore_record_init(struct pstore_record *record, in pstore_record_init() argument 376 memset(record, 0, sizeof(*record)); in pstore_record_init() 378 record->psi = psinfo; in pstore_record_init() 381 record->time = ns_to_timespec64(ktime_get_real_fast_ns()); in pstore_record_init() 418 struct pstore_record record; in pstore_dump() local 420 pstore_record_init(&record, psinfo); in pstore_dump() 421 record.type = PSTORE_TYPE_DMESG; in pstore_dump() 422 record.count = oopscount; in pstore_dump() 423 record.reason = reason; in pstore_dump() 424 record.part = part; in pstore_dump() [all …]
|
| H A D | inode.c | 45 struct pstore_record *record; member 61 if (private->record) { in free_pstore_private() 62 kfree(private->record->buf); in free_pstore_private() 63 kfree(private->record); in free_pstore_private() 115 rec = (struct pstore_ftrace_record *)(ps->record->buf + data->off); in pstore_ftrace_seq_show() 140 struct pstore_record *record = ps->record; in pstore_file_read() local 142 if (record->type == PSTORE_TYPE_BOOT_LOG) { in pstore_file_read() 143 size = ramoops_pstore_read_for_boot_log(ps->record); in pstore_file_read() 144 size = simple_read_from_buffer(userbuf, count, ppos, record->buf, size); in pstore_file_read() 148 if (ps->record->type == PSTORE_TYPE_FTRACE) in pstore_file_read() [all …]
|
| H A D | ram.c | 133 struct pstore_record *record) in ramoops_get_next_prz() argument 152 record->type = prz->type; in ramoops_get_next_prz() 153 record->id = id; in ramoops_get_next_prz() 192 ssize_t ramoops_pstore_read_for_boot_log(struct pstore_record *record) in ramoops_pstore_read_for_boot_log() argument 194 struct ramoops_context *cxt = record->psi->data; in ramoops_pstore_read_for_boot_log() 200 prz = cxt->boot_przs[record->id]; in ramoops_pstore_read_for_boot_log() 207 record->buf = prz->old_log; in ramoops_pstore_read_for_boot_log() 208 record->size = prz->old_log_size; in ramoops_pstore_read_for_boot_log() 209 return record->size; in ramoops_pstore_read_for_boot_log() 213 static ssize_t ramoops_pstore_read(struct pstore_record *record) in ramoops_pstore_read() argument [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 …]
|
| /OK3568_Linux_fs/kernel/drivers/usb/misc/ |
| H A D | ezusb.c | 76 const struct ihex_binrec *record; in ezusb_ihex_firmware_download() local 90 record = (const struct ihex_binrec *)firmware->data; in ezusb_ihex_firmware_download() 91 for (; record; record = ihex_next_binrec(record)) { in ezusb_ihex_firmware_download() 92 if (be32_to_cpu(record->addr) > fx.max_internal_adress) { in ezusb_ihex_firmware_download() 93 ret = ezusb_writememory(dev, be32_to_cpu(record->addr), in ezusb_ihex_firmware_download() 94 (unsigned char *)record->data, in ezusb_ihex_firmware_download() 95 be16_to_cpu(record->len), WRITE_EXT_RAM); in ezusb_ihex_firmware_download() 100 be32_to_cpu(record->addr), record->data, in ezusb_ihex_firmware_download() 101 be16_to_cpu(record->len)); in ezusb_ihex_firmware_download() 110 record = (const struct ihex_binrec *)firmware->data; in ezusb_ihex_firmware_download() [all …]
|
| /OK3568_Linux_fs/kernel/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 …]
|
| /OK3568_Linux_fs/kernel/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 …]
|
| /OK3568_Linux_fs/yocto/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) 92 elif hasattr(record, 'bb_exc_info'): 93 etype, value, tb = record.bb_exc_info [all …]
|
| /OK3568_Linux_fs/kernel/tools/perf/ |
| H A D | builtin-record.c | 88 struct record { struct 123 static bool switch_output_signal(struct record *rec) in switch_output_signal() argument 129 static bool switch_output_size(struct record *rec) in switch_output_size() 136 static bool switch_output_time(struct record *rec) in switch_output_time() 142 static bool record__output_max_size_exceeded(struct record *rec) in record__output_max_size_exceeded() 148 static int record__write(struct record *rec, struct mmap *map __maybe_unused, in record__write() 173 static int record__aio_enabled(struct record *rec); 174 static int record__comp_enabled(struct record *rec); 286 struct record *rec; 336 static int record__aio_push(struct record *rec, struct mmap *map, off_t *off) in record__aio_push() [all …]
|
| /OK3568_Linux_fs/kernel/mm/ |
| H A D | page_pinner.c | 122 struct captured_pinner *record) in capture_page_state() argument 124 record->flags = page->flags; in capture_page_state() 125 record->mapping = page_mapping(page); in capture_page_state() 126 record->pfn = page_to_pfn(page); in capture_page_state() 127 record->count = page_count(page); in capture_page_state() 128 record->mapcount = page_mapcount(page); in capture_page_state() 137 struct captured_pinner record; in check_longterm_pin() local 148 record.handle = page_pinner->handle; in check_longterm_pin() 149 record.elapsed = delta; in check_longterm_pin() 150 capture_page_state(page, &record); in check_longterm_pin() [all …]
|
| /OK3568_Linux_fs/kernel/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 …]
|
| /OK3568_Linux_fs/kernel/tools/lib/traceevent/plugins/ |
| H A D | plugin_sched_switch.c | 34 struct tep_record *record, in write_and_save_comm() argument 40 comm = (char *)(record->data + field->offset); in write_and_save_comm() 54 struct tep_record *record, in sched_wakeup_handler() argument 60 if (tep_get_field_val(s, event, "pid", record, &val, 1)) in sched_wakeup_handler() 65 write_and_save_comm(field, record, s, val); in sched_wakeup_handler() 70 if (tep_get_field_val(s, event, "prio", record, &val, 0) == 0) in sched_wakeup_handler() 73 if (tep_get_field_val(s, event, "success", record, &val, 1) == 0) in sched_wakeup_handler() 76 if (tep_get_field_val(s, event, "target_cpu", record, &val, 0) == 0) in sched_wakeup_handler() 83 struct tep_record *record, in sched_switch_handler() argument 89 if (tep_get_field_val(s, event, "prev_pid", record, &val, 1)) in sched_switch_handler() [all …]
|
| H A D | plugin_kvm.c | 255 static int print_exit_reason(struct trace_seq *s, struct tep_record *record, in print_exit_reason() argument 262 if (tep_get_field_val(s, event, field, record, &val, 1) < 0) in print_exit_reason() 265 if (tep_get_field_val(s, event, "isa", record, &isa, 0) < 0) in print_exit_reason() 276 static int kvm_exit_handler(struct trace_seq *s, struct tep_record *record, in kvm_exit_handler() argument 281 if (print_exit_reason(s, record, event, "exit_reason") < 0) in kvm_exit_handler() 284 tep_print_num_field(s, " rip 0x%lx", event, "guest_rip", record, 1); in kvm_exit_handler() 286 if (tep_get_field_val(s, event, "info1", record, &info1, 0) >= 0 in kvm_exit_handler() 287 && tep_get_field_val(s, event, "info2", record, &info2, 0) >= 0) in kvm_exit_handler() 299 struct tep_record *record, in kvm_emulate_insn_handler() argument 307 if (tep_get_field_val(s, event, "rip", record, &rip, 1) < 0) in kvm_emulate_insn_handler() [all …]
|
| H A D | plugin_hrtimer.c | 14 struct tep_record *record, in timer_expire_handler() argument 20 record, 0) == -1) in timer_expire_handler() 22 record, 1); in timer_expire_handler() 26 tep_print_num_field(s, "%llu", event, "now", record, 1); in timer_expire_handler() 29 record, 0); in timer_expire_handler() 34 struct tep_record *record, in timer_start_handler() argument 40 record, 0) == -1) in timer_start_handler() 42 record, 1); in timer_start_handler() 45 record, 0); in timer_start_handler() 48 tep_print_num_field(s, "%llu", event, "expires", record, 1); in timer_start_handler() [all …]
|
| H A D | plugin_function.c | 131 static int function_handler(struct trace_seq *s, struct tep_record *record, in function_handler() argument 141 if (tep_get_field_val(s, event, "ip", record, &function, 1)) in function_handler() 146 if (tep_get_field_val(s, event, "parent_ip", record, &pfunction, 1)) in function_handler() 152 index = add_and_get_index(parent, func, record->cpu); in function_handler() 173 trace_stack_handler(struct trace_seq *s, struct tep_record *record, in trace_stack_handler() argument 180 void *data = record->data; in trace_stack_handler() 192 for (data += field->offset; data < record->data + record->size; in trace_stack_handler() 211 trace_raw_data_handler(struct trace_seq *s, struct tep_record *record, in trace_raw_data_handler() argument 217 void *data = record->data; in trace_raw_data_handler() 219 if (tep_get_field_val(s, event, "id", record, &id, 1)) in trace_raw_data_handler() [all …]
|
| /OK3568_Linux_fs/kernel/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 …]
|
| /OK3568_Linux_fs/kernel/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 …]
|
| /OK3568_Linux_fs/buildroot/package/ipmitool/ |
| H A D | 0013-fru-sdr-Fix-id_string-buffer-overflows.patch | 12 SDR record structs have an `id_code` field, and an `id_string` `char` 93 record.full = (struct sdr_record_full_sensor *) raw; 94 - snprintf(desc, (record.full->id_code & 0x1f) +1, "%s", 95 - (const char *)record.full->id_string); 96 + id_code = record.full->id_code; 97 + id_string = record.full->id_string; 101 record.compact = (struct sdr_record_compact_sensor *) raw ; 102 - snprintf(desc, (record.compact->id_code & 0x1f) +1, "%s", 103 - (const char *)record.compact->id_string); 104 + id_code = record.compact->id_code; [all …]
|
| /OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-kernel/ipmitool/ipmitool/ |
| H A D | 0005-fru-sdr-Fix-id_string-buffer-overflows.patch | 12 SDR record structs have an `id_code` field, and an `id_string` `char` 94 record.full = (struct sdr_record_full_sensor *) raw; 95 - snprintf(desc, (record.full->id_code & 0x1f) +1, "%s", 96 - (const char *)record.full->id_string); 97 + id_code = record.full->id_code; 98 + id_string = record.full->id_string; 102 record.compact = (struct sdr_record_compact_sensor *) raw ; 103 - snprintf(desc, (record.compact->id_code & 0x1f) +1, "%s", 104 - (const char *)record.compact->id_string); 105 + id_code = record.compact->id_code; [all …]
|
| /OK3568_Linux_fs/kernel/arch/powerpc/kernel/ |
| H A D | nvram_64.c | 385 static int nvram_pstore_write(struct pstore_record *record) in nvram_pstore_write() argument 392 if (record->part > 1 || (record->type != PSTORE_TYPE_DMESG)) in nvram_pstore_write() 399 oops_hdr->report_length = cpu_to_be16(record->size); in nvram_pstore_write() 402 if (record->compressed) in nvram_pstore_write() 406 (int) (sizeof(*oops_hdr) + record->size), err_type, in nvram_pstore_write() 407 record->count); in nvram_pstore_write() 412 record->id = record->part; in nvram_pstore_write() 421 static ssize_t nvram_pstore_read(struct pstore_record *record) in nvram_pstore_read() argument 435 record->type = PSTORE_TYPE_DMESG; in nvram_pstore_read() 440 record->type = PSTORE_TYPE_PPC_COMMON; in nvram_pstore_read() [all …]
|
| /OK3568_Linux_fs/kernel/tools/perf/util/arm-spe-decoder/ |
| H A D | arm-spe-decoder.c | 143 memset(&decoder->record, 0x0, sizeof(decoder->record)); in arm_spe_read_record() 155 decoder->record.timestamp = payload; in arm_spe_read_record() 162 decoder->record.from_ip = ip; in arm_spe_read_record() 164 decoder->record.to_ip = ip; in arm_spe_read_record() 174 decoder->record.type |= ARM_SPE_L1D_MISS; in arm_spe_read_record() 177 decoder->record.type |= ARM_SPE_L1D_ACCESS; in arm_spe_read_record() 180 decoder->record.type |= ARM_SPE_TLB_MISS; in arm_spe_read_record() 183 decoder->record.type |= ARM_SPE_TLB_ACCESS; in arm_spe_read_record() 187 decoder->record.type |= ARM_SPE_LLC_MISS; in arm_spe_read_record() 191 decoder->record.type |= ARM_SPE_LLC_ACCESS; in arm_spe_read_record() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/amdgpu/ |
| H A D | amdgpu_ras_eeprom.c | 179 struct eeprom_table_record *record = &records[i]; in __calc_recs_byte_sum() local 181 for (j = 0; j < sizeof(*record); j++) { in __calc_recs_byte_sum() 182 tbl_sum += *(((unsigned char *)record) + j); in __calc_recs_byte_sum() 341 struct eeprom_table_record *record, in __encode_table_record_to_buff() argument 348 buff[i++] = record->err_type; in __encode_table_record_to_buff() 350 buff[i++] = record->bank; in __encode_table_record_to_buff() 352 tmp = cpu_to_le64(record->ts); in __encode_table_record_to_buff() 356 tmp = cpu_to_le64((record->offset & 0xffffffffffff)); in __encode_table_record_to_buff() 360 buff[i++] = record->mem_channel; in __encode_table_record_to_buff() 361 buff[i++] = record->mcumc_id; in __encode_table_record_to_buff() [all …]
|