Home
last modified time | relevance | path

Searched defs:len (Results 1 – 25 of 436) sorted by relevance

12345678910>>...18

/tools/perf/util/intel-pt-decoder/
Dintel-pt-pkt-decoder.c77 static int intel_pt_get_long_tnt(const unsigned char *buf, size_t len, in intel_pt_get_long_tnt()
100 static int intel_pt_get_pip(const unsigned char *buf, size_t len, in intel_pt_get_pip()
121 static int intel_pt_get_cbr(const unsigned char *buf, size_t len, in intel_pt_get_cbr()
131 static int intel_pt_get_vmcs(const unsigned char *buf, size_t len, in intel_pt_get_vmcs()
155 static int intel_pt_get_psb(const unsigned char *buf, size_t len, in intel_pt_get_psb()
178 static int intel_pt_get_tma(const unsigned char *buf, size_t len, in intel_pt_get_tma()
196 static int intel_pt_get_mnt(const unsigned char *buf, size_t len, in intel_pt_get_mnt()
206 static int intel_pt_get_3byte(const unsigned char *buf, size_t len, in intel_pt_get_3byte()
220 static int intel_pt_get_ptwrite(const unsigned char *buf, size_t len, in intel_pt_get_ptwrite()
255 static int intel_pt_get_mwait(const unsigned char *buf, size_t len, in intel_pt_get_mwait()
[all …]
/tools/include/nolibc/
Dstring.h31 void *_nolibc_memcpy_up(void *dst, const void *src, size_t len) in _nolibc_memcpy_up()
43 void *_nolibc_memcpy_down(void *dst, const void *src, size_t len) in _nolibc_memcpy_down()
56 void *memmove(void *dst, const void *src, size_t len) in memmove()
78 void *memcpy(void *dst, const void *src, size_t len) in memcpy()
87 void *memset(void *dst, int b, size_t len) in memset()
139 size_t len; in strlen() local
161 size_t len; in strnlen() local
170 size_t len; in strdup() local
184 size_t len; in strndup() local
200 size_t len; in strlcat() local
[all …]
/tools/testing/selftests/bpf/prog_tests/
Dsockmap_helpers.h33 #define xaccept_nonblock(fd, addr, len) \ argument
42 #define xbind(fd, addr, len) \ argument
58 #define xconnect(fd, addr, len) \ argument
66 #define xgetsockname(fd, addr, len) \ argument
74 #define xgetsockopt(fd, level, name, val, len) \ argument
90 #define xsetsockopt(fd, level, name, val, len) \ argument
98 #define xsend(fd, buf, len, flags) \ argument
106 #define xrecv_nonblock(fd, buf, len, flags) \ argument
224 static inline int accept_timeout(int fd, struct sockaddr *addr, socklen_t *len, in accept_timeout()
233 static inline int recv_timeout(int fd, void *buf, size_t len, int flags, in recv_timeout()
[all …]
/tools/net/ynl/generated/
Ddevlink-user.c170 unsigned int len; in devlink_dl_info_version_parse() local
181 unsigned int len; in devlink_dl_info_version_parse() local
452 unsigned int len; in devlink_get_rsp_parse() local
463 unsigned int len; in devlink_get_rsp_parse() local
600 unsigned int len; in devlink_port_get_rsp_parse() local
611 unsigned int len; in devlink_port_get_rsp_parse() local
680 unsigned int len; in devlink_port_get_rsp_dump_parse() local
691 unsigned int len; in devlink_port_get_rsp_dump_parse() local
787 unsigned int len; in devlink_sb_get_rsp_parse() local
798 unsigned int len; in devlink_sb_get_rsp_parse() local
[all …]
/tools/perf/util/arm-spe-decoder/
Darm-spe-pkt-decoder.c60 static int arm_spe_get_payload(const unsigned char *buf, size_t len, in arm_spe_get_payload()
88 static int arm_spe_get_alignment(const unsigned char *buf, size_t len, in arm_spe_get_alignment()
106 static int arm_spe_get_timestamp(const unsigned char *buf, size_t len, in arm_spe_get_timestamp()
113 static int arm_spe_get_events(const unsigned char *buf, size_t len, in arm_spe_get_events()
128 static int arm_spe_get_data_source(const unsigned char *buf, size_t len, in arm_spe_get_data_source()
135 static int arm_spe_get_context(const unsigned char *buf, size_t len, in arm_spe_get_context()
143 static int arm_spe_get_op_type(const unsigned char *buf, size_t len, in arm_spe_get_op_type()
151 static int arm_spe_get_counter(const unsigned char *buf, size_t len, in arm_spe_get_counter()
164 static int arm_spe_get_addr(const unsigned char *buf, size_t len, in arm_spe_get_addr()
177 static int arm_spe_do_get_packet(const unsigned char *buf, size_t len, in arm_spe_do_get_packet()
[all …]
/tools/testing/selftests/net/
Dcsum.c145 static uint32_t checksum_nofold(char *data, size_t len, uint32_t sum) in checksum_nofold()
159 static uint16_t checksum_fold(void *data, size_t len, uint32_t sum) in checksum_fold()
169 static uint16_t checksum(void *th, uint16_t proto, size_t len) in checksum()
187 static void *build_packet_ipv4(void *_iph, uint8_t proto, unsigned int len) in build_packet_ipv4()
207 static void *build_packet_ipv6(void *_ip6h, uint8_t proto, unsigned int len) in build_packet_ipv6()
295 static char *build_packet(char *buf, int max_len, int *len) in build_packet()
388 static void send_inet(int fd, const char *buf, int len) in send_inet()
406 static void send_packet(int fd, const char *buf, int len) in send_packet()
590 static int recv_verify_csum(void *th, int len, uint16_t sport, uint16_t csum_field) in recv_verify_csum()
616 static int recv_verify_packet_tcp(void *th, int len) in recv_verify_packet_tcp()
[all …]
Dsctp_hello.c11 static void set_addr(struct sockaddr_storage *ss, char *ip, char *port, int *len) in set_addr()
33 int csk, ret, len; in do_client() local
77 int lsk, csk, ret, len; in main() local
/tools/testing/selftests/powerpc/ptrace/
Dptrace-hwbreak.c65 static void write_var(int len) in write_var()
92 static void read_var(int len) in read_var()
119 int len = 0; in test_workload() local
213 unsigned long saddr, int len) in check_success()
281 int len; in test_set_debugreg() local
337 unsigned long addr, int len) in get_ppc_hw_breakpoint()
356 int len = 1; /* hardcoded in kernel */ in test_sethwdebug_exact() local
386 int len = 1; /* hardcoded in kernel */ in test_sethwdebug_exact_kernel_userspace() local
402 int len; in test_sethwdebug_range_aligned() local
501 int len; in test_sethwdebug_range_unaligned() local
[all …]
/tools/testing/selftests/bpf/progs/
Dfexit_bpf2bpf.c13 unsigned int len; member
20 int len; in BPF_PROG() local
35 int len; in BPF_PROG() local
70 int len; in test_subprog2() local
92 int len; in BPF_PROG() local
107 int len = skb->len; in new_get_skb_len() local
Dtest_varlen.c47 long len; in handler64_unsigned() local
77 long len; in handler64_signed() local
103 u32 len; in handler32_unsigned() local
131 long len; in handler32_signed() local
Dfexit_bpf2bpf_simple.c8 unsigned int len; member
16 int len; in BPF_PROG() local
/tools/testing/selftests/mm/
Dhugetlb-read-hwpoison.c42 static int setup_filemap(char *filemap, size_t len, size_t wr_chunk_size) in setup_filemap()
55 static bool verify_chunk(char *buf, size_t len, char val) in verify_chunk()
70 static bool seek_read_hugepage_filemap(int fd, size_t len, size_t wr_chunk_size, in seek_read_hugepage_filemap()
107 static bool read_hugepage_filemap(int fd, size_t len, in read_hugepage_filemap()
139 test_hugetlb_read(int fd, size_t len, size_t wr_chunk_size) in test_hugetlb_read()
173 test_hugetlb_read_hwpoison(int fd, size_t len, size_t wr_chunk_size, in test_hugetlb_read_hwpoison()
Dhugepage-mremap.c40 static void write_bytes(char *addr, size_t len) in write_bytes()
48 static int read_bytes(char *addr, size_t len) in read_bytes()
61 static void register_region_with_uffd(char *addr, size_t len) in register_region_with_uffd()
/tools/testing/selftests/proc/
Dproc-uptime-002.c35 static inline int sys_sched_getaffinity(pid_t pid, unsigned int len, unsigned long *m) in sys_sched_getaffinity()
40 static inline int sys_sched_setaffinity(pid_t pid, unsigned int len, unsigned long *m) in sys_sched_setaffinity()
48 unsigned int len; in main() local
/tools/perf/util/bpf_skel/
Daugmented_raw_syscalls.bpf.c146 static inline int augmented__output(void *ctx, struct augmented_args_payload *args, int len) in augmented__output()
198 unsigned int len = sizeof(augmented_args->args); in sys_enter_connect() local
217 unsigned int len = sizeof(augmented_args->args); in sys_enter_sendto() local
234 unsigned int len = sizeof(augmented_args->args); in sys_enter_open() local
249 unsigned int len = sizeof(augmented_args->args); in sys_enter_openat() local
265 unsigned int len = sizeof(augmented_args->args), oldpath_len; in sys_enter_rename() local
282 unsigned int len = sizeof(augmented_args->args), oldpath_len; in sys_enter_renameat() local
309 unsigned int len = sizeof(augmented_args->args); in sys_enter_perf_event_open() local
341 unsigned int len = sizeof(augmented_args->args); in sys_enter_clock_nanosleep() local
/tools/testing/selftests/breakpoints/
Dbreakpoint_test.c53 static void toggle_breakpoint(int n, int type, int len, in toggle_breakpoint()
147 static void write_var(int len) in write_var()
175 static void read_var(int len) in read_var()
205 int len, local, global, i; in trigger_tests() local
307 static void launch_watchpoints(char *buf, int mode, int len, in launch_watchpoints()
335 int len, local, global, i; in launch_tests() local
/tools/bpf/
Dbpf_jit_disasm.c39 ssize_t len; in get_exec_path() local
53 static void get_asm_insns(uint8_t *image, size_t len, int opcodes) in get_asm_insns()
108 int ret, len; in get_klog_buff() local
131 int fd, ret, len; in get_flog_buff() local
266 unsigned int len, klen, opt, opcodes = 0; in main() local
/tools/power/acpi/tools/acpidbg/
Dacpidbg.c126 int len; in acpi_aml_read() local
141 int len; in acpi_aml_read_batch_cmd() local
162 int len; in acpi_aml_read_batch_log() local
226 int len; in acpi_aml_write() local
241 int len; in acpi_aml_write_batch_log() local
257 int len; in acpi_aml_write_batch_cmd() local
383 int len; in main() local
/tools/testing/selftests/bpf/
Dtest_tcp_check_syncookie_user.c20 static int start_server(const struct sockaddr *addr, socklen_t len, bool dual) in start_server()
58 static int connect_to_server(const struct sockaddr *addr, socklen_t len) in connect_to_server()
121 const struct sockaddr *addr, socklen_t len) in run_test()
207 socklen_t len = sizeof(addr); in get_port() local
/tools/perf/util/
Ddemangle-rust.c79 size_t len, len_without_hash; in rust_is_mangled() local
129 static bool looks_like_rust(const char *str, size_t len) in looks_like_rust()
258 size_t len = strlen(seq); in unescape() local
/tools/bpf/bpftool/
Djit_disasm.c83 __maybe_unused unsigned char *image, __maybe_unused ssize_t len) in init_context()
112 disassemble_insn(disasm_ctx_t *ctx, unsigned char *image, ssize_t len, int pc) in disassemble_insn()
148 ssize_t len; in get_exec_path() local
218 unsigned char *image, ssize_t len) in init_context()
307 __maybe_unused ssize_t len, int pc) in disassemble_insn()
319 int disasm_print_insn(unsigned char *image, ssize_t len, int opcodes, in disasm_print_insn()
/tools/testing/selftests/nci/
Dnci_dev.c24 #define NLA_PAYLOAD(len) ((len) - NLA_HDRLEN) argument
186 int len; in get_family_id() local
282 int len; in get_dev_enable_state() local
325 int len; in virtual_dev_open() local
365 int len; in virtual_dev_open_v2() local
456 int len; in virtual_deinit() local
478 int len; in virtual_deinit_v2() local
541 int len; in virtual_poll_start() local
563 int len; in virtual_poll_stop() local
651 int len; in get_taginfo() local
[all …]
/tools/power/cpupower/lib/
Dcpufreq.c37 const char *value, size_t len) in sysfs_cpufreq_write_file()
92 unsigned int len; in cpufreq_get_sysfs_value_from_table() local
140 unsigned int len; in sysfs_cpufreq_get_one_string() local
179 const char *new_value, size_t len) in sysfs_cpufreq_write_one_value()
277 unsigned int len; in cpufreq_get_available_governors() local
352 unsigned int len; in cpufreq_get_available_frequencies() local
408 unsigned int len; in cpufreq_get_boost_frequencies() local
484 unsigned int len; in sysfs_get_cpu_list() local
715 unsigned int len; in cpufreq_get_stats() local
/tools/testing/selftests/powerpc/nx-gzip/
Dgunz_test.c73 #define fifo_free_bytes(used, len) ((len)-(used)) argument
75 #define fifo_free_first_bytes(cur, used, len) ((((cur)+(used)) <= (len)) \ argument
77 #define fifo_free_last_bytes(cur, used, len) ((((cur)+(used)) <= (len)) \ argument
80 #define fifo_used_first_bytes(cur, used, len) ((((cur)+(used)) <= (len)) \ argument
82 #define fifo_used_last_bytes(cur, used, len) ((((cur)+(used)) <= (len)) \ argument
86 #define fifo_free_last_offset(cur, used, len) \ argument
110 uint32_t len) in nx_append_dde()
/tools/testing/selftests/dmabuf-heaps/
Ddmabuf-heap.c104 static int dmabuf_heap_alloc_fdflags(int fd, size_t len, unsigned int fd_flags, in dmabuf_heap_alloc_fdflags()
125 static int dmabuf_heap_alloc(int fd, size_t len, unsigned int flags, in dmabuf_heap_alloc()
299 static int dmabuf_heap_alloc_older(int fd, size_t len, unsigned int flags, in dmabuf_heap_alloc_older()
305 __u64 len; in dmabuf_heap_alloc_older() member
327 static int dmabuf_heap_alloc_newer(int fd, size_t len, unsigned int flags, in dmabuf_heap_alloc_newer()
333 __u64 len; in dmabuf_heap_alloc_newer() member

12345678910>>...18