Home
last modified time | relevance | path

Searched refs:code (Results 1 – 25 of 158) sorted by relevance

1234567

/tools/include/uapi/linux/
Dbpf_common.h6 #define BPF_CLASS(code) ((code) & 0x07) argument
17 #define BPF_SIZE(code) ((code) & 0x18) argument
22 #define BPF_MODE(code) ((code) & 0xe0) argument
31 #define BPF_OP(code) ((code) & 0xf0) argument
49 #define BPF_SRC(code) ((code) & 0x08) argument
Dfilter.h25 __u16 code; /* Actual filter code */ member
37 #define BPF_RVAL(code) ((code) & 0x18) argument
41 #define BPF_MISCOP(code) ((code) & 0xf8) argument
49 #define BPF_STMT(code, k) { (unsigned short)(code), 0, 0, k } argument
52 #define BPF_JUMP(code, k, jt, jf) { (unsigned short)(code), jt, jf, k } argument
/tools/include/linux/
Dfilter.h36 .code = BPF_ALU64 | BPF_OP(OP) | BPF_X, \
44 .code = BPF_ALU | BPF_OP(OP) | BPF_X, \
54 .code = BPF_ALU64 | BPF_OP(OP) | BPF_K, \
62 .code = BPF_ALU | BPF_OP(OP) | BPF_K, \
72 .code = BPF_ALU | BPF_END | BPF_SRC(TYPE), \
82 .code = BPF_ALU64 | BPF_MOV | BPF_X, \
90 .code = BPF_ALU | BPF_MOV | BPF_X, \
100 .code = BPF_ALU64 | BPF_MOV | BPF_K, \
108 .code = BPF_ALU | BPF_MOV | BPF_K, \
118 .code = BPF_ALU64 | BPF_MOV | BPF_SRC(TYPE), \
[all …]
/tools/usb/usbip/src/
Dusbip_network.c136 op_common->code = usbip_net_pack_uint16_t(pack, op_common->code); in usbip_net_pack_op_common()
140 int usbip_net_send_op_common(int sockfd, uint32_t code, uint32_t status) in usbip_net_send_op_common() argument
148 op_common.code = code; in usbip_net_send_op_common()
162 int usbip_net_recv_op_common(int sockfd, uint16_t *code, int *status) in usbip_net_recv_op_common() argument
183 switch (*code) { in usbip_net_recv_op_common()
187 if (op_common.code != *code) { in usbip_net_recv_op_common()
188 dbg("unexpected pdu %#0x for %#0x", op_common.code, in usbip_net_recv_op_common()
189 *code); in usbip_net_recv_op_common()
203 *code = op_common.code; in usbip_net_recv_op_common()
Dusbip_network.h28 uint16_t code; member
170 int usbip_net_send_op_common(int sockfd, uint32_t code, uint32_t status);
171 int usbip_net_recv_op_common(int sockfd, uint16_t *code, int *status);
Dusbipd.c253 uint16_t code = OP_UNSPEC; in recv_pdu() local
257 ret = usbip_net_recv_op_common(connfd, &code, &status); in recv_pdu()
259 dbg("could not receive opcode: %#0x", code); in recv_pdu()
269 info("received request: %#0x(%d)", code, connfd); in recv_pdu()
270 switch (code) { in recv_pdu()
280 err("received an unknown opcode: %#0x", code); in recv_pdu()
285 info("request %#0x(%d): complete", code, connfd); in recv_pdu()
287 info("request %#0x(%d): failed", code, connfd); in recv_pdu()
/tools/testing/selftests/pidfd/
Dpidfd_fdinfo_test.c21 int code; member
25 static int error_set(struct error *err, int code, const char *fmt, ...) in error_set() argument
30 if (code == PIDFD_PASS || !err || err->code != PIDFD_PASS) in error_set()
31 return code; in error_set()
33 err->code = code; in error_set()
39 return code; in error_set()
44 switch (err->code) { in error_report()
70 test_name, err->code, err->msg); in error_report()
78 if (err->code == PIDFD_ERROR) in error_check()
81 return err->code; in error_check()
/tools/perf/Documentation/
Djitdump-specification.txt17 …-data information about the generated code, such as address, size, and name of generated functions…
73 * uint32_t pid: OS process id of the runtime generating the jitted code
74 * uint32_t tid: OS thread identification of the runtime thread generating the jitted code
75 * uint64_t vma: virtual address of jitted code start
76 * uint64_t code_addr: code start address for the jitted code. By default vma = code_addr
77 * uint64_t code_size: size in bytes of the generated jitted code
78 * uint64_t code_index: unique identifier for the jitted code (see below)
80 * native code: raw byte encoding of the jitted code
86 * native code length
89 …a function is jitted it gets a new number. This value is used in case the code for a function is m…
[all …]
Dguest-files.txt14 --guest-code::
15 Indicate that guest code can be found in the hypervisor process,
Dperf-annotate.txt6 perf-annotate - Read perf.data (created by perf record) and display annotated code
16 code. If the object file has debug symbols then the source code will be
17 displayed alongside assembly code.
110 Interleave source code with assembly code. Enabled by default,
128 and add PREFIX. This allows to display source code compiled on systems
/tools/lib/subcmd/
Drun-command.c171 int status, code; in wait_or_whine() local
188 code = WEXITSTATUS(status); in wait_or_whine()
189 switch (code) { in wait_or_whine()
195 return -code; in wait_or_whine()
207 int code = start_command(cmd); in run_command() local
208 if (code) in run_command()
209 return code; in run_command()
/tools/perf/jvmti/
Djvmti_agent.h23 uint64_t vma, void const *code,
26 int jvmti_write_debug_info(void *agent, uint64_t code, int nr_lines,
Djvmti_agent.c360 uint64_t vma, void const *code, unsigned int const size) in jvmti_write_code() argument
389 if (code) in jvmti_write_code()
406 if (code) in jvmti_write_code()
407 fwrite_unlocked(code, size, 1, fp); in jvmti_write_code()
417 jvmti_write_debug_info(void *agent, uint64_t code, in jvmti_write_debug_info() argument
445 rec.code_addr = (uint64_t)(uintptr_t)code; in jvmti_write_debug_info()
/tools/objtool/Documentation/
Dobjtool.txt32 ("noinstr") code rules, preventing instrumentation in low-level C
33 entry code
100 code and C inline assembly code so that stack traces can be reliable.
102 For each function, it recursively follows all possible code paths and
105 It also follows code paths involving special sections, like
116 code and debug tools to be able to walk the stack to determine the
118 code.
124 For C code, gcc automatically generates instructions for setting up
127 But for asm code, the frame setup instructions have to be written by
129 CONFIG_FRAME_POINTER is honored for C code but not for most asm code.
[all …]
/tools/memory-model/Documentation/
Dsimple.txt6 (LKMM) is quite complex, with subtle differences in code often having
22 Single-threaded code
25 In single-threaded code, there is no reordering, at least assuming
27 it is generally a mistake to assume your code will only run in a single
28 threaded context as the kernel can enter the same code path on multiple
33 your code really is executed within a single thread that does not access
35 that you acquire at the beginning of your code and release at the end,
36 taking care to ensure that all references to your code's shared data are
38 this lock at a given time, your code will be executed single-threaded.
39 This approach is called "code locking".
[all …]
/tools/crypto/ccp/
Ddbc.py29 def handle_error(code): argument
30 raise OSError(code, os.strerror(code))
Ddbc_cli.py57 def pretty_error(code): argument
58 if code in ERRORS:
59 print(ERRORS[code])
61 print("failed with return code %d" % code)
/tools/perf/trace/beauty/
Darch_prctl.c32 unsigned long code = arg->val; in syscall_arg__scnprintf_x86_arch_prctl_code() local
34 return x86_arch_prctl__scnprintf_code(code, bf, size, arg->show_string_prefix); in syscall_arg__scnprintf_x86_arch_prctl_code()
/tools/testing/selftests/drivers/net/netdevsim/
Dethtool-common.sh24 local code=$1
31 if [ $code $cop 0 ]; then
/tools/testing/kunit/
Dkunit_printer.py29 def _color(self, code: str, text: str) -> str:
32 return code + text + _RESET
/tools/perf/util/
Dgenelf.c104 const void *code __maybe_unused, in gen_build_id()
128 const void *code, in gen_build_id() argument
134 SHA1(code, csize, (unsigned char *)note->build_id); in gen_build_id()
140 gen_build_id(struct buildid_note *note, unsigned long load_addr, const void *code, size_t csize) in gen_build_id() argument
153 EVP_DigestUpdate(mdctx, code, csize); in gen_build_id()
248 const void *code, int csize, in jit_write_elf() argument
321 d->d_buf = (void *)code; in jit_write_elf()
481 gen_build_id(&bnote, load_addr, code, csize); in jit_write_elf()
/tools/testing/selftests/powerpc/tm/
Dtm-unavailable.c40 #define pr_warn(code, format, ...) err_at_line(0, code, format, ##__VA_ARGS__) argument
41 #define pr_err(code, format, ...) err_at_line(1, code, format, ##__VA_ARGS__) argument
/tools/bpf/bpftool/
Dcfg.c141 if (cur->code != (BPF_JMP | BPF_CALL)) in cfg_partition_funcs()
160 static bool is_jmp_insn(__u8 code) in is_jmp_insn() argument
162 return BPF_CLASS(code) == BPF_JMP || BPF_CLASS(code) == BPF_JMP32; in is_jmp_insn()
178 if (is_jmp_insn(cur->code)) { in func_partition_bb_head()
179 __u8 opcode = BPF_OP(cur->code); in func_partition_bb_head()
304 if (!is_jmp_insn(insn->code) || in func_add_bb_edges()
305 BPF_OP(insn->code) == BPF_EXIT) { in func_add_bb_edges()
310 } else if (BPF_OP(insn->code) == BPF_JA) { in func_add_bb_edges()
/tools/testing/selftests/vDSO/
Dvdso_standalone_test_x86.c73 static inline void linux_exit(int code) in linux_exit() argument
75 x86_syscall3(__NR_exit, code, 0, 0); in linux_exit()
/tools/testing/selftests/bpf/
DREADME.rst72 .. code-block:: console
78 .. code-block:: console
99 .. code-block:: c
112 The verifier will reject such code with above error.
120 The corresponding C code
122 .. code-block:: c
141 .. code-block:: c
153 .. code-block:: c
178 .. code-block:: c
183 The reason is compiler generating the following code
[all …]

1234567