Home
last modified time | relevance | path

Searched refs:code (Results 1 – 25 of 174) 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_X, \
[all …]
/tools/net/sunrpc/xdrgen/
DREADME1 xdrgen - Linux Kernel XDR code generator
12 code that implements the RPC portions of that protocol. This tool is
15 This RPC-level code is code that handles input directly from the
18 code can have significant impact on security and performance.
20 However, it is code that is repetitive and tedious to write by hand.
22 The C code generated by rpcgen makes extensive use of the facilities
24 of the generated code is very traditional K&R C.
33 2. rpcgen-generated code is believed to be less efficient than code
36 These days, gcc and its kin are capable of optimizing code better
38 XDR code by hand will make a measurable performance different.
[all …]
/tools/testing/selftests/sched_ext/
Dhotplug.c48 long kind, code; in test_hotplug() local
61 code = SCX_ECODE_VAL(SCX_ECODE_ACT_RESTART) | HOTPLUG_EXIT_RSN; in test_hotplug()
63 code |= HOTPLUG_ONLINING; in test_hotplug()
66 code = SCX_ECODE_VAL(SCX_ECODE_ACT_RESTART) | in test_hotplug()
87 SCX_EQ(UEI_REPORT(skel, uei), code); in test_hotplug()
103 long kind, code; in test_hotplug_attach() local
127 code = SCX_ECODE_VAL(SCX_ECODE_ACT_RESTART) | in test_hotplug_attach()
130 SCX_EQ(UEI_REPORT(skel, uei), code); in test_hotplug_attach()
Dhotplug.bpf.c28 s64 code = SCX_ECODE_ACT_RESTART | HOTPLUG_EXIT_RSN; in exit_from_hotplug() local
31 code |= HOTPLUG_ONLINING; in exit_from_hotplug()
33 scx_bpf_exit(code, "hotplug event detected (%d going %s)", cpu, in exit_from_hotplug()
/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()
/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
159 Display data type annotation instead of code. It infers data type of
/tools/lib/subcmd/
Drun-command.c174 int status, code; in wait_or_whine() local
197 code = WEXITSTATUS(status); in wait_or_whine()
198 switch (code) { in wait_or_whine()
206 result = -code; in wait_or_whine()
231 int code = start_command(cmd); in run_command() local
232 if (code) in run_command()
233 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/testing/selftests/filesystems/eventfd/
Deventfd_test.c19 int code; member
23 static int error_set(struct error *err, int code, const char *fmt, ...) in error_set() argument
28 if (code == 0 || !err || err->code != 0) in error_set()
29 return code; in error_set()
31 err->code = code; in error_set()
37 return code; in error_set()
/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/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/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/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/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.c99 const void *code __maybe_unused, in gen_build_id()
123 const void *code, in gen_build_id() argument
129 SHA1(code, csize, (unsigned char *)note->build_id); in gen_build_id()
135 gen_build_id(struct buildid_note *note, unsigned long load_addr, const void *code, size_t csize) in gen_build_id() argument
148 EVP_DigestUpdate(mdctx, code, csize); in gen_build_id()
243 const void *code, int csize, in jit_write_elf() argument
316 d->d_buf = (void *)code; in jit_write_elf()
476 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()

1234567