Home
last modified time | relevance | path

Searched refs:bytes (Results 1 – 25 of 32) sorted by relevance

12

/tools/objtool/arch/x86/include/asm/
Dinsn.h29 insn_byte_t bytes[4]; member
156 return X86_VEX3_M(insn->vex_prefix.bytes[1]); in insn_vex_m_bits()
158 return X86_EVEX_M(insn->vex_prefix.bytes[1]); in insn_vex_m_bits()
164 return X86_VEX_P(insn->vex_prefix.bytes[1]); in insn_vex_p_bits()
166 return X86_VEX_P(insn->vex_prefix.bytes[2]); in insn_vex_p_bits()
175 if (insn->prefixes.bytes[3]) in insn_last_prefix_id()
176 return inat_get_last_prefix_id(insn->prefixes.bytes[3]); in insn_last_prefix_id()
224 return insn->opcode.bytes[0] == POP_SS_OPCODE || in insn_masking_exception()
225 (insn->opcode.bytes[0] == MOV_SREG_OPCODE && in insn_masking_exception()
226 X86_MODRM_REG(insn->modrm.bytes[0]) == 2); in insn_masking_exception()
/tools/perf/util/intel-pt-decoder/
Dinsn.h29 insn_byte_t bytes[4]; member
156 return X86_VEX3_M(insn->vex_prefix.bytes[1]); in insn_vex_m_bits()
158 return X86_EVEX_M(insn->vex_prefix.bytes[1]); in insn_vex_m_bits()
164 return X86_VEX_P(insn->vex_prefix.bytes[1]); in insn_vex_p_bits()
166 return X86_VEX_P(insn->vex_prefix.bytes[2]); in insn_vex_p_bits()
175 if (insn->prefixes.bytes[3]) in insn_last_prefix_id()
176 return inat_get_last_prefix_id(insn->prefixes.bytes[3]); in insn_last_prefix_id()
Dinsn.c99 if (prefixes->bytes[i] == b) in insn_get_prefixes()
104 prefixes->bytes[nb++] = b; in insn_get_prefixes()
123 if (lb && lb != insn->prefixes.bytes[3]) { in insn_get_prefixes()
124 if (unlikely(insn->prefixes.bytes[3])) { in insn_get_prefixes()
126 b = insn->prefixes.bytes[3]; in insn_get_prefixes()
128 if (prefixes->bytes[i] == lb) in insn_get_prefixes()
129 prefixes->bytes[i] = b; in insn_get_prefixes()
131 insn->prefixes.bytes[3] = lb; in insn_get_prefixes()
163 insn->vex_prefix.bytes[0] = b; in insn_get_prefixes()
164 insn->vex_prefix.bytes[1] = b2; in insn_get_prefixes()
[all …]
Dintel-pt-insn-decoder.c52 switch (insn->opcode.bytes[0]) { in intel_pt_insn_decoder()
54 switch (insn->opcode.bytes[1]) { in intel_pt_insn_decoder()
118 ext = (insn->modrm.bytes[0] >> 3) & 0x7; in intel_pt_insn_decoder()
/tools/objtool/arch/x86/lib/
Dinsn.c99 if (prefixes->bytes[i] == b) in insn_get_prefixes()
104 prefixes->bytes[nb++] = b; in insn_get_prefixes()
123 if (lb && lb != insn->prefixes.bytes[3]) { in insn_get_prefixes()
124 if (unlikely(insn->prefixes.bytes[3])) { in insn_get_prefixes()
126 b = insn->prefixes.bytes[3]; in insn_get_prefixes()
128 if (prefixes->bytes[i] == lb) in insn_get_prefixes()
129 prefixes->bytes[i] = b; in insn_get_prefixes()
131 insn->prefixes.bytes[3] = lb; in insn_get_prefixes()
163 insn->vex_prefix.bytes[0] = b; in insn_get_prefixes()
164 insn->vex_prefix.bytes[1] = b2; in insn_get_prefixes()
[all …]
/tools/iio/
Diio_generic_buffer.c58 int bytes = 0; in size_from_channelarray() local
62 if (bytes % channels[i].bytes == 0) in size_from_channelarray()
63 channels[i].location = bytes; in size_from_channelarray()
65 channels[i].location = bytes - bytes % channels[i].bytes in size_from_channelarray()
66 + channels[i].bytes; in size_from_channelarray()
68 bytes = channels[i].location + channels[i].bytes; in size_from_channelarray()
72 return bytes; in size_from_channelarray()
181 switch (channels[k].bytes) { in process_scan()
Diio_utils.h46 unsigned bytes; member
63 int iioutils_get_type(unsigned *is_signed, unsigned *bytes, unsigned *bits_used,
Diio_utils.c88 int iioutils_get_type(unsigned *is_signed, unsigned *bytes, unsigned *bits_used, in iioutils_get_type() argument
160 *bytes = padint / 8; in iioutils_get_type()
502 &current->bytes, in build_channel_array()
/tools/perf/Documentation/
Dperf-kmem.txt40 Sort the output (default: 'frag,hit,bytes' for slab and 'bytes,hit'
41 for page). Available sort keys are 'ptr, callsite, bytes, hit,
42 pingpong, frag' for slab and 'page, callsite, bytes, hit, order,
Djitdump-specification.txt41 * uint32_t total_size: size in bytes of file header
57 * uint32_t total_size: the size in bytes of the record including the header.
77 * uint64_t code_size: size in bytes of the generated jitted code
104 * uint64_t code_size : size in bytes of the jitted code
158 uint64_t unwind_data_size : the size in bytes of the unwinding data table at the end of the record
159 uint64_t eh_frame_hdr_size : the size in bytes of the DWARF EH Frame Header at the start of the un…
/tools/usb/ffs-aio-example/simple/host_app/
Dtest.c171 int bytes; in main() local
173 &bytes, 500); in main()
175 &bytes, 500); in main()
/tools/perf/bench/
Dnuma.c372 ssize_t bytes; in alloc_data() local
387 bytes = bytes0 + HPSIZE; in alloc_data()
389 buf = (void *)mmap(0, bytes, PROT_READ|PROT_WRITE, MAP_ANON|map_flags, -1, 0); in alloc_data()
394 ret = madvise(buf, bytes, MADV_HUGEPAGE); in alloc_data()
401 ret = madvise(buf, bytes, MADV_NOHUGEPAGE); in alloc_data()
410 bzero(buf, bytes); in alloc_data()
418 for (i = 0; i < bytes/8; i++) in alloc_data()
435 static void free_data(void *data, ssize_t bytes) in free_data() argument
442 ret = munmap(data, bytes); in free_data()
449 static void * zalloc_shared_data(ssize_t bytes) in zalloc_shared_data() argument
[all …]
/tools/usb/ffs-aio-example/multibuff/host_app/
Dtest.c170 int bytes; in main() local
172 &bytes, 500); in main()
/tools/testing/selftests/powerpc/switch_endian/
DMakefile14 $(CROSS_COMPILE)objcopy -j .text --reverse-bytes=4 -O binary $< $@
/tools/objtool/arch/x86/
Ddecode.c110 op1 = insn.opcode.bytes[0]; in arch_decode_instruction()
111 op2 = insn.opcode.bytes[1]; in arch_decode_instruction()
114 rex = insn.rex_prefix.bytes[0]; in arch_decode_instruction()
122 modrm = insn.modrm.bytes[0]; in arch_decode_instruction()
129 sib = insn.sib.bytes[0]; in arch_decode_instruction()
/tools/testing/selftests/bpf/
Dtest_progs.c178 __u64 bytes; in test_l4lb() member
191 __u64 bytes = 0, pkts = 0; in test_l4lb() local
236 bytes += stats[i].bytes; in test_l4lb()
239 if (bytes != MAGIC_BYTES * NUM_ITER * 2 || pkts != NUM_ITER * 2) { in test_l4lb()
241 printf("test_l4lb:FAIL:stats %lld %lld\n", bytes, pkts); in test_l4lb()
Dtest_l4lb.c162 __u64 bytes; member
447 data_stats->bytes += pkt_bytes; in process_packet()
/tools/perf/
Dbuiltin-timechart.c165 u64 bytes; member
821 sample->bytes = ret; in pid_end_io_sample()
831 sample->bytes += prev->bytes; in pid_end_io_sample()
838 if (!sample->err && sample->bytes > c->max_bytes) in pid_end_io_sample()
839 c->max_bytes = sample->bytes; in pid_end_io_sample()
1140 double bytes; in draw_io_bars() local
1160 double h = (double)sample->bytes / c->max_bytes; in draw_io_bars()
1226 bytes = c->total_bytes; in draw_io_bars()
1227 if (bytes > 1024) { in draw_io_bars()
1228 bytes = bytes / 1024; in draw_io_bars()
[all …]
Dbuiltin-kmem.c790 u64 bytes = kmem_page_size << order; in perf_evsel__process_page_alloc_event() local
805 total_page_alloc_bytes += bytes; in perf_evsel__process_page_alloc_event()
809 total_page_fail_bytes += bytes; in perf_evsel__process_page_alloc_event()
829 pstat->alloc_bytes += bytes; in perf_evsel__process_page_alloc_event()
838 pstat->alloc_bytes += bytes; in perf_evsel__process_page_alloc_event()
848 pstat->alloc_bytes += bytes; in perf_evsel__process_page_alloc_event()
860 u64 bytes = kmem_page_size << order; in perf_evsel__process_page_free_event() local
872 total_page_free_bytes += bytes; in perf_evsel__process_page_free_event()
881 total_page_nomatch_bytes += bytes; in perf_evsel__process_page_free_event()
901 pstat->free_bytes += bytes; in perf_evsel__process_page_free_event()
[all …]
/tools/testing/selftests/rcutorture/bin/
Dparse-console.sh34 print_warning Console output contains nul bytes, old qemu still running?
/tools/testing/selftests/net/
Dmsg_zerocopy.c91 static long packets, bytes, completions, expected_completions; variable
189 bytes += ret; in do_sendmsg()
473 packets, bytes >> 20, completions, in do_tx()
525 bytes += ret; in do_flush_tcp()
555 bytes += cfg_payload_len; in do_flush_datagram()
579 fprintf(stderr, "rx=%lu (%lu MB)\n", packets, bytes >> 20); in do_rx()
Dpsock_tpacket.c535 static void __v3_test_block_len(struct block_desc *pbd, uint32_t bytes, int block_num) in __v3_test_block_len() argument
537 if (pbd->h1.num_pkts && bytes != pbd->h1.blk_len) { in __v3_test_block_len()
540 pbd->h1.num_pkts, bytes, pbd->h1.blk_len); in __v3_test_block_len()
558 unsigned long bytes = 0, bytes_with_padding = ALIGN_8(sizeof(*pbd)); in __v3_walk_block() local
567 bytes += ppd->tp_snaplen; in __v3_walk_block()
584 total_bytes += bytes; in __v3_walk_block()
/tools/spi/
Dspidev_test.c322 ssize_t bytes; in transfer_file() local
343 bytes = read(tx_fd, tx, sb.st_size); in transfer_file()
344 if (bytes != sb.st_size) in transfer_file()
/tools/testing/selftests/powerpc/pmu/ebb/
Dtrace.c62 static void *trace_alloc(struct trace_buffer *tb, int bytes) in trace_alloc() argument
67 newtail = tb->tail + bytes; in trace_alloc()
/tools/vm/
Dpage-types.c260 long bytes; in do_u64_read() local
265 bytes = pread(fd, buf, count * 8, (off_t)index * 8); in do_u64_read()
266 if (bytes < 0) { in do_u64_read()
270 if (bytes % 8) in do_u64_read()
271 fatal("partial read: %lu bytes\n", bytes); in do_u64_read()
273 return bytes / 8; in do_u64_read()

12