Searched refs:insn_buf (Results 1 - 7 of 7) sorted by relevance

/linux-4.1.27/arch/x86/tools/
H A Dinsn_sanity.c99 unsigned char *insn_buf, struct insn *insn) dump_stream()
112 fprintf(fp, " %02x", insn_buf[i]); dump_stream()
140 static int read_next_insn(unsigned char *insn_buf) read_next_insn() argument
150 insn_buf[i] = (unsigned char)strtoul(tmp, &tmp, 16); read_next_insn()
158 static int generate_insn(unsigned char *insn_buf) generate_insn() argument
163 return read_next_insn(insn_buf); generate_insn()
167 *(unsigned short *)(&insn_buf[i]) = random() & 0xffff; generate_insn()
170 insn_buf[i++] = random() & 0xff; generate_insn()
242 unsigned char insn_buf[MAX_INSN_SIZE * 2]; main() local
247 memset(insn_buf + MAX_INSN_SIZE, INSN_NOP, MAX_INSN_SIZE); main()
250 if (generate_insn(insn_buf) <= 0) main()
257 insn_init(&insn, insn_buf, sizeof(insn_buf), x86_64); main()
263 dump_stream(stderr, "Error: Found an access violation", i, insn_buf, &insn); main()
266 dump_stream(stdout, "Info: Found an undecodable input", i, insn_buf, &insn); main()
98 dump_stream(FILE *fp, const char *msg, unsigned long nr_iter, unsigned char *insn_buf, struct insn *insn) dump_stream() argument
H A Dtest_get_len.c114 unsigned char insn_buf[16]; main() local
133 memset(insn_buf, 0, 16); main()
146 insn_buf[nb++] = (unsigned char) b; main()
152 insn_init(&insn, insn_buf, sizeof(insn_buf), x86_64); main()
/linux-4.1.27/arch/x86/kernel/kprobes/
H A Dopt.c387 u8 insn_buf[RELATIVEJUMP_SIZE]; arch_optimize_kprobes() local
399 insn_buf[0] = RELATIVEJUMP_OPCODE; list_for_each_entry_safe()
400 *(s32 *)(&insn_buf[1]) = rel; list_for_each_entry_safe()
402 text_poke_bp(op->kp.addr, insn_buf, RELATIVEJUMP_SIZE, list_for_each_entry_safe()
412 u8 insn_buf[RELATIVEJUMP_SIZE]; arch_unoptimize_kprobe() local
415 insn_buf[0] = BREAKPOINT_INSTRUCTION; arch_unoptimize_kprobe()
416 memcpy(insn_buf + 1, op->optinsn.copied_insn, RELATIVE_ADDR_SIZE); arch_unoptimize_kprobe()
417 text_poke_bp(op->kp.addr, insn_buf, RELATIVEJUMP_SIZE, arch_unoptimize_kprobe()
/linux-4.1.27/drivers/staging/comedi/drivers/
H A Dusbduxsigma.c158 uint8_t *insn_buf; member in struct:usbduxsigma_private
593 devpriv->insn_buf, SIZEINSNBUF, usbduxsigma_receive_cmd()
598 if (devpriv->insn_buf[0] == command) usbduxsigma_receive_cmd()
755 *)(devpriv->insn_buf + 1))); usbduxsigma_ai_insn_read()
1008 s->state = devpriv->insn_buf[1] | usbduxsigma_dio_insn_bits()
1009 (devpriv->insn_buf[2] << 8) | usbduxsigma_dio_insn_bits()
1010 (devpriv->insn_buf[3] << 16); usbduxsigma_dio_insn_bits()
1284 val = be32_to_cpu(get_unaligned((__be32 *)(devpriv->insn_buf + 1))); usbduxsigma_getstatusinfo()
1371 devpriv->insn_buf = kzalloc(SIZEINSNBUF, GFP_KERNEL); usbduxsigma_alloc_usb_buffers()
1374 if (!devpriv->dux_commands || !devpriv->in_buf || !devpriv->insn_buf || usbduxsigma_alloc_usb_buffers()
1472 kfree(devpriv->insn_buf); usbduxsigma_free_usb_buffers()
H A Dusbdux.c196 __le16 *insn_buf; member in struct:usbdux_private
637 devpriv->insn_buf, SIZEINSNBUF, receive_dux_commands()
641 if (le16_to_cpu(devpriv->insn_buf[0]) == command) receive_dux_commands()
785 val = le16_to_cpu(devpriv->insn_buf[1]); usbdux_ai_insn_read()
1069 data[1] = le16_to_cpu(devpriv->insn_buf[1]); usbdux_dio_insn_bits()
1097 data[i] = le16_to_cpu(devpriv->insn_buf[chan + 1]); usbdux_counter_read()
1470 devpriv->insn_buf = kzalloc(SIZEINSNBUF, GFP_KERNEL); usbdux_alloc_usb_buffers()
1475 if (!devpriv->dux_commands || !devpriv->in_buf || !devpriv->insn_buf || usbdux_alloc_usb_buffers()
1575 kfree(devpriv->insn_buf); usbdux_free_usb_buffers()
/linux-4.1.27/net/core/
H A Dfilter.c154 struct bpf_insn *insn_buf) convert_skb_access()
156 struct bpf_insn *insn = insn_buf; convert_skb_access()
201 return insn - insn_buf; convert_skb_access()
1409 struct bpf_insn *insn_buf) sk_filter_convert_ctx_access()
1411 struct bpf_insn *insn = insn_buf; sk_filter_convert_ctx_access()
1460 return insn - insn_buf; sk_filter_convert_ctx_access()
153 convert_skb_access(int skb_field, int dst_reg, int src_reg, struct bpf_insn *insn_buf) convert_skb_access() argument
1408 sk_filter_convert_ctx_access(int dst_reg, int src_reg, int ctx_off, struct bpf_insn *insn_buf) sk_filter_convert_ctx_access() argument
/linux-4.1.27/kernel/bpf/
H A Dverifier.c1959 struct bpf_insn insn_buf[16]; convert_ctx_accesses() local
1979 insn->off, insn_buf); convert_ctx_accesses()
1980 if (cnt == 0 || cnt >= ARRAY_SIZE(insn_buf)) { convert_ctx_accesses()
1986 memcpy(insn, insn_buf, sizeof(*insn)); convert_ctx_accesses()
2004 memcpy(new_prog->insnsi + i, insn_buf, sizeof(*insn) * cnt); convert_ctx_accesses()

Completed in 346 milliseconds