Home
last modified time | relevance | path

Searched defs:buf (Results 1 – 25 of 585) sorted by relevance

12345678910>>...24

/tools/perf/util/intel-pt-decoder/
Dintel-pt-pkt-decoder.c73 static int intel_pt_get_long_tnt(const unsigned char *buf, size_t len, in intel_pt_get_long_tnt()
96 static int intel_pt_get_pip(const unsigned char *buf, size_t len, in intel_pt_get_pip()
117 static int intel_pt_get_cbr(const unsigned char *buf, size_t len, in intel_pt_get_cbr()
127 static int intel_pt_get_vmcs(const unsigned char *buf, size_t len, in intel_pt_get_vmcs()
146 static int intel_pt_get_psb(const unsigned char *buf, size_t len, in intel_pt_get_psb()
169 static int intel_pt_get_tma(const unsigned char *buf, size_t len, in intel_pt_get_tma()
187 static int intel_pt_get_mnt(const unsigned char *buf, size_t len, in intel_pt_get_mnt()
197 static int intel_pt_get_3byte(const unsigned char *buf, size_t len, in intel_pt_get_3byte()
211 static int intel_pt_get_ptwrite(const unsigned char *buf, size_t len, in intel_pt_get_ptwrite()
246 static int intel_pt_get_mwait(const unsigned char *buf, size_t len, in intel_pt_get_mwait()
[all …]
/tools/perf/util/arm-spe-decoder/
Darm-spe-pkt-decoder.c47 static int arm_spe_get_payload(const unsigned char *buf, size_t len, in arm_spe_get_payload()
75 static int arm_spe_get_alignment(const unsigned char *buf, size_t len, in arm_spe_get_alignment()
93 static int arm_spe_get_timestamp(const unsigned char *buf, size_t len, in arm_spe_get_timestamp()
100 static int arm_spe_get_events(const unsigned char *buf, size_t len, in arm_spe_get_events()
115 static int arm_spe_get_data_source(const unsigned char *buf, size_t len, in arm_spe_get_data_source()
122 static int arm_spe_get_context(const unsigned char *buf, size_t len, in arm_spe_get_context()
130 static int arm_spe_get_op_type(const unsigned char *buf, size_t len, in arm_spe_get_op_type()
138 static int arm_spe_get_counter(const unsigned char *buf, size_t len, in arm_spe_get_counter()
151 static int arm_spe_get_addr(const unsigned char *buf, size_t len, in arm_spe_get_addr()
164 static int arm_spe_do_get_packet(const unsigned char *buf, size_t len, in arm_spe_do_get_packet()
[all …]
/tools/testing/selftests/cgroup/
Dcgroup_util.c23 static ssize_t read_text(const char *path, char *buf, size_t max_len) in read_text()
42 static ssize_t write_text(const char *path, char *buf, ssize_t len) in write_text()
86 int cg_read(const char *cgroup, const char *control, char *buf, size_t len) in cg_read()
101 char *buf; in cg_read_strcmp() local
126 char buf[PAGE_SIZE]; in cg_read_strstr() local
136 char buf[128]; in cg_read_long() local
146 char buf[128]; in cg_read_long_fd() local
156 char buf[PAGE_SIZE]; in cg_read_key_long() local
171 char buf[PAGE_SIZE]; in cg_read_lc() local
186 int cg_write(const char *cgroup, const char *control, char *buf) in cg_write()
[all …]
/tools/testing/selftests/resctrl/
Dfill_buf.c41 void mem_flush(unsigned char *buf, size_t buf_size) in mem_flush()
65 static int fill_one_span_read(unsigned char *buf, size_t buf_size) in fill_one_span_read()
91 static void fill_one_span_write(unsigned char *buf, size_t buf_size) in fill_one_span_write()
103 void fill_cache_read(unsigned char *buf, size_t buf_size, bool once) in fill_cache_read()
117 static void fill_cache_write(unsigned char *buf, size_t buf_size, bool once) in fill_cache_write()
128 void *buf = NULL; in alloc_buffer() local
156 unsigned char *buf; in run_fill_buf() local
/tools/testing/selftests/hid/
Dhid_bpf.c183 __u8 buf[10] = {0}; in TEST_F() local
234 __u8 buf[10] = {0}; in TEST_F() local
292 __u8 buf[10] = {0}; in TEST_F() local
377 __u8 buf[10] = {0}; in TEST_F() local
410 __u8 buf[10] = {0}; in TEST_F() local
532 __u8 buf[10] = {0}; in TEST_F() local
585 __u8 buf[10] = {0}; in TEST_F() local
611 __u8 buf[10] = {0}; in TEST_F() local
634 __u8 buf[10] = {0}; in TEST_F() local
687 __u8 buf[10] = {0}; in TEST_F() local
[all …]
/tools/testing/selftests/net/
Dgro.c191 static uint16_t tcp_checksum(void *buf, int payload_len) in tcp_checksum()
238 static void fill_datalinklayer(void *buf) in fill_datalinklayer()
247 static void fill_networklayer(void *buf, int payload_len) in fill_networklayer()
281 static void fill_transportlayer(void *buf, int seq_offset, int ack_offset, in fill_transportlayer()
300 static void write_packet(int fd, char *buf, int len, struct sockaddr_ll *daddr) in write_packet()
311 static void create_packet(void *buf, int seq_offset, int ack_offset, in create_packet()
327 static char buf[MAX_HDR_LEN + PAYLOAD_LEN]; in send_flags() local
361 static char buf[ETH_HLEN + IP_MAXPACKET]; in send_data_pkts() local
393 static char buf[MAX_HDR_LEN]; in send_ack() local
402 static void recompute_packet(char *buf, char *no_ext, int extlen) in recompute_packet()
[all …]
Dtls.c235 char buf[10]; in TEST_F() local
418 char *buf; in TEST_F() local
437 char buf[TLS_PAYLOAD_MAX_LEN]; in chunked_sendfile() local
494 char buf[TLS_PAYLOAD_MAX_LEN]; in TEST_F() local
507 char buf[10]; in TEST_F() local
519 char buf[10 * 2]; in TEST_F() local
533 char buf[10]; in TEST_F() local
543 char buf[10]; in TEST_F() local
557 char buf[13]; in TEST_F() local
574 char buf[SEND_LEN * MAX_FRAGS]; in TEST_F() local
[all …]
Dtap.c196 char buf[256]; in opentap() local
221 size_t build_eth(uint8_t *buf, uint16_t proto) in build_eth()
232 static uint32_t add_csum(const uint8_t *buf, int len) in add_csum()
257 static uint16_t build_ip_csum(const uint8_t *buf, int len, in build_ip_csum()
264 static int build_ipv4_header(uint8_t *buf, int payload_len) in build_ipv4_header()
282 static int build_udp_packet(uint8_t *buf, int payload_len, bool csum_off) in build_udp_packet()
306 size_t build_test_packet_valid_udp_gso(uint8_t *buf, size_t payload_len) in build_test_packet_valid_udp_gso()
326 size_t build_test_packet_valid_udp_csum(uint8_t *buf, size_t payload_len) in build_test_packet_valid_udp_csum()
342 size_t build_test_packet_crash_tap_invalid_eth_proto(uint8_t *buf, in build_test_packet_crash_tap_invalid_eth_proto()
/tools/perf/util/
Dtrace-event-read.c28 static int __do_read(int fd, void *buf, int size) in __do_read()
73 char buf[BUFSIZ]; in skip() local
103 char buf[BUFSIZ]; in read_string() local
171 char *buf; in read_ftrace_printk() local
199 char buf[BUFSIZ]; in read_header_files() local
249 char *buf; in read_ftrace_file() local
275 char *buf; in read_event_file() local
347 char *buf; in read_saved_cmdline() local
377 char buf[BUFSIZ]; in trace_report() local
Dperf_event_attr_fprintf.c19 static void __p_bits(char *buf, size_t size, u64 value, struct bit_names *bits) in __p_bits()
32 static void __p_sample_type(char *buf, size_t size, u64 value) in __p_sample_type()
50 static void __p_branch_sample_type(char *buf, size_t size, u64 value) in __p_branch_sample_type()
67 static void __p_read_format(char *buf, size_t size, u64 value) in __p_read_format()
183 static void __p_type_id(struct perf_pmu *pmu, char *buf, size_t size, u64 value) in __p_type_id()
188 static void __p_config_hw_id(char *buf, size_t size, u64 value) in __p_config_hw_id()
193 static void __p_config_sw_id(char *buf, size_t size, u64 value) in __p_config_sw_id()
198 static void __p_config_hw_cache_id(char *buf, size_t size, u64 value) in __p_config_hw_cache_id()
216 static void __p_config_tracepoint_id(char *buf, size_t size, u64 value) in __p_config_tracepoint_id()
225 static void __p_config_id(struct perf_pmu *pmu, char *buf, size_t size, u32 type, u64 value) in __p_config_id()
[all …]
/tools/testing/nvdimm/test/
Dndtest.c245 struct nvdimm *nvdimm, unsigned int cmd, void *buf, in ndtest_ctl()
338 void *buf; in ndtest_alloc_resource() local
387 struct device_attribute *attr, char *buf) in range_index_show()
495 char *buf) in handle_show()
504 char *buf) in fail_cmd_show()
512 const char *buf, size_t size) in fail_cmd_store()
529 char *buf) in fail_cmd_code_show()
537 const char *buf, size_t size) in fail_cmd_code_store()
569 struct device_attribute *attr, char *buf) in phys_id_show()
579 struct device_attribute *attr, char *buf) in vendor_show()
[all …]
/tools/testing/selftests/sched_ext/
Dutil.c14 static ssize_t read_text(const char *path, char *buf, size_t max_len) in read_text()
33 static ssize_t write_text(const char *path, char *buf, ssize_t len) in write_text()
49 char buf[128]; in file_read_long() local
60 char buf[64]; in file_write_long() local
/tools/testing/selftests/bpf/progs/
Dasync_stack_depth.c21 volatile char buf[256] = {}; in timer_cb() local
28 volatile char buf[300] = {}; in bad_timer_cb() local
37 volatile char buf[256] = {}; in pseudo_call_check() local
52 volatile char buf[256] = {}; in async_call_root_check() local
Dtest_module_attach.c59 struct bin_attribute *bin_attr, char *buf, loff_t off, size_t len) in BPF_PROG()
70 struct bin_attribute *bin_attr, char *buf, loff_t off, size_t len) in BPF_PROG()
81 struct bin_attribute *bin_attr, char *buf, loff_t off, size_t len) in BPF_PROG()
93 struct bin_attribute *bin_attr, char *buf, loff_t off, size_t len) in BPF_PROG()
105 struct bin_attribute *bin_attr, char *buf, loff_t off, size_t len, in BPF_PROG()
116 long buf = 0; in BPF_PROG() local
130 struct bin_attribute *bin_attr, char *buf, loff_t off, size_t len) in BPF_PROG()
Dtest_global_func1.c21 volatile char buf[MAX_STACK] = {}; in f1() local
33 volatile char buf[MAX_STACK] = {}; in f2() local
43 volatile char buf[MAX_STACK] = {}; in f3() local
Dtest_overhead.c13 int BPF_KPROBE(prog1, struct task_struct *tsk, const char *buf, bool exec) in BPF_KPROBE()
31 int BPF_PROG(prog4, struct task_struct *tsk, const char *buf, bool exec) in BPF_PROG()
37 int BPF_PROG(prog5, struct task_struct *tsk, const char *buf, bool exec) in BPF_PROG()
/tools/lib/perf/
Dlib.c10 static ssize_t ion(bool is_read, int fd, void *buf, size_t n) in ion()
36 ssize_t readn(int fd, void *buf, size_t n) in readn()
41 ssize_t preadn(int fd, void *buf, size_t n, off_t offs) in preadn()
64 ssize_t writen(int fd, const void *buf, size_t n) in writen()
/tools/testing/selftests/bpf/prog_tests/
Dxdp_adjust_tail.c11 char buf[128]; in test_xdp_adjust_tail_shrink() local
44 char buf[4096]; /* avoid segfault: large buf to hold grow results */ in test_xdp_adjust_tail_grow() local
78 char buf[4096]; /* avoid segfault: large buf to hold grow results */ in test_xdp_adjust_tail_grow2() local
149 __u8 *buf; in test_xdp_adjust_frags_tail_shrink() local
216 __u8 *buf; in test_xdp_adjust_frags_tail_grow() local
Dlibbpf_str.c43 char buf[256]; in test_libbpf_bpf_attach_type_str() local
88 char buf[256]; in test_libbpf_bpf_link_type_str() local
133 char buf[256]; in test_libbpf_bpf_map_type_str() local
190 char buf[256]; in test_libbpf_bpf_prog_type_str() local
/tools/bootconfig/
Dmain.c134 static int load_xbc_fd(int fd, char **buf, int size) in load_xbc_fd()
151 static int load_xbc_file(const char *path, char **buf) in load_xbc_file()
176 static int load_xbc_from_initrd(int fd, char **buf) in load_xbc_from_initrd()
264 static int init_xbc_with_error(char *buf, int len) in init_xbc_with_error()
284 char *buf = NULL; in show_xbc() local
332 char *buf = NULL; in delete_xbc() local
362 char *buf, *data, *p; in apply_xbc() local
/tools/perf/util/hisi-ptt-decoder/
Dhisi-ptt-pkt-decoder.c90 static void hisi_ptt_print_pkt(const unsigned char *buf, int pos, const char *desc) in hisi_ptt_print_pkt()
104 static int hisi_ptt_8dw_kpt_desc(const unsigned char *buf, int pos) in hisi_ptt_8dw_kpt_desc()
122 static void hisi_ptt_4dw_print_dw0(const unsigned char *buf, int pos) in hisi_ptt_4dw_print_dw0()
143 static int hisi_ptt_4dw_kpt_desc(const unsigned char *buf, int pos) in hisi_ptt_4dw_kpt_desc()
158 int hisi_ptt_pkt_desc(const unsigned char *buf, int pos, enum hisi_ptt_pkt_type type) in hisi_ptt_pkt_desc()
/tools/lib/
Dvsprintf.c6 int vscnprintf(char *buf, size_t size, const char *fmt, va_list args) in vscnprintf()
14 int scnprintf(char * buf, size_t size, const char * fmt, ...) in scnprintf()
27 int scnprintf_pad(char * buf, size_t size, const char * fmt, ...) in scnprintf_pad()
/tools/testing/selftests/mm/
Dthp_settings.c46 int read_file(const char *path, char *buf, size_t buflen) in read_file()
67 int write_file(const char *path, const char *buf, size_t buflen) in write_file()
92 char buf[21]; in read_num() local
104 char buf[21]; in write_num() local
116 char buf[256]; in thp_read_string() local
354 char buf[256]; in __thp_supported_orders() local
/tools/testing/selftests/bpf/
Dcgroup_helpers.c38 #define format_cgroup_path_pid(buf, path, pid) \ argument
42 #define format_cgroup_path(buf, path) \ argument
45 #define format_parent_cgroup_path(buf, path) \ argument
48 #define format_classid_path_pid(buf, pid) \ argument
52 #define format_classid_path(buf) \ argument
129 const char *buf) in __write_cgroup_file()
161 const char *buf) in write_cgroup_file()
182 const char *buf) in write_cgroup_file_parent()
/tools/testing/selftests/proc/
Dread.c40 char buf[4096]; in f_reg() local
55 static void f_reg_write(DIR *d, const char *filename, const char *buf, size_t len) in f_reg_write()
70 char buf[4096]; in f_lnk() local

12345678910>>...24