Home
last modified time | relevance | path

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

12345678910>>...26

/tools/perf/util/intel-pt-decoder/
A Dintel-pt-pkt-decoder.c96 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()
276 static int intel_pt_get_bbp(const unsigned char *buf, size_t len, in intel_pt_get_bbp()
325 static int intel_pt_get_cfe(const unsigned char *buf, size_t len, in intel_pt_get_cfe()
336 static int intel_pt_get_evd(const unsigned char *buf, size_t len, in intel_pt_get_evd()
444 const unsigned char *buf, size_t len, in intel_pt_get_ip()
[all …]
/tools/perf/util/arm-spe-decoder/
A Darm-spe-pkt-decoder.c47 static int arm_spe_get_payload(const unsigned char *buf, size_t len, in arm_spe_get_payload()
100 static int arm_spe_get_events(const unsigned char *buf, size_t len, in arm_spe_get_events()
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()
224 int arm_spe_get_packet(const unsigned char *buf, size_t len, in arm_spe_get_packet()
280 char *buf, size_t buf_len) in arm_spe_pkt_desc_event()
322 char *buf, size_t buf_len) in arm_spe_pkt_desc_op_type()
423 char *buf, size_t buf_len) in arm_spe_pkt_desc_addr()
[all …]
/tools/include/nolibc/sys/
A Dstat.h26 int sys_statx(int fd, const char *path, int flags, unsigned int mask, struct statx *buf) in sys_statx()
36 int statx(int fd, const char *path, int flags, unsigned int mask, struct statx *buf) in statx()
43 int fstatat(int fd, const char *path, struct stat *buf, int flag) in fstatat()
77 int stat(const char *path, struct stat *buf) in stat()
83 int fstat(int fildes, struct stat *buf) in fstat()
89 int lstat(const char *path, struct stat *buf) in lstat()
/tools/perf/util/
A 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()
170 static void print_id_unsigned(char *buf, size_t size, u64 value, const char *s) in print_id_unsigned()
178 static void print_id_hex(char *buf, size_t size, u64 value, const char *s) in print_id_hex()
186 static void __p_type_id(char *buf, size_t size, struct perf_pmu *pmu, u32 type) in __p_type_id()
191 static void __p_config_hw_id(char *buf, size_t size, struct perf_pmu *pmu, u64 config) in __p_config_hw_id()
210 static void __p_config_sw_id(char *buf, size_t size, u64 id) in __p_config_sw_id()
241 static void __p_config_tracepoint_id(char *buf, size_t size, u64 id) in __p_config_tracepoint_id()
[all …]
A 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
/tools/testing/selftests/cgroup/lib/
A Dcgroup_util.c103 char *buf; in cg_read_strcmp() local
128 char buf[PAGE_SIZE]; in cg_read_strstr() local
138 char buf[128]; in cg_read_long() local
148 char buf[128]; in cg_read_long_fd() local
158 char buf[PAGE_SIZE]; in cg_read_key_long() local
173 char buf[PAGE_SIZE]; in cg_read_lc() local
212 char buf[64]; in cg_write_numeric() local
305 char buf[PAGE_SIZE]; in cg_killall() local
379 char buf[64]; in cg_run() local
502 char buf[64]; in cg_run_nowait() local
[all …]
/tools/testing/selftests/hid/
A Dhid_bpf.c160 __u8 buf[10] = {0}; in TEST_F() local
211 __u8 buf[10] = {0}; in TEST_F() local
269 __u8 buf[10] = {0}; in TEST_F() local
354 __u8 buf[10] = {0}; in TEST_F() local
387 __u8 buf[10] = {0}; in TEST_F() local
509 __u8 buf[10] = {0}; in TEST_F() local
562 __u8 buf[10] = {0}; in TEST_F() local
588 __u8 buf[10] = {0}; in TEST_F() local
611 __u8 buf[10] = {0}; in TEST_F() local
664 __u8 buf[10] = {0}; in TEST_F() local
[all …]
A Dhidraw.c60 __u8 buf[10] = {0}; in TEST_F() local
82 __u8 buf[10] = {0}; in TEST_F() local
138 __u8 buf[10] = {0}; in TEST_F() local
179 __u8 buf[10] = {0}; in TEST_F() local
/tools/testing/selftests/net/
A Dgro.c238 static void fill_datalinklayer(void *buf) in fill_datalinklayer()
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
497 static char buf[MAX_HDR_LEN + PAYLOAD_LEN]; in send_changed_checksum() local
512 static char buf[MAX_HDR_LEN + PAYLOAD_LEN]; in send_changed_seq() local
531 static char buf[MAX_HDR_LEN + PAYLOAD_LEN]; in send_changed_ts() local
559 static char buf[MAX_HDR_LEN + PAYLOAD_LEN]; in send_diff_opt() local
733 static char buf[MAX_HDR_LEN + PAYLOAD_LEN]; in send_ipv6_exthdr() local
748 static char buf[MAX_HDR_LEN + PAYLOAD_LEN]; in send_ip_options() local
[all …]
A Dtls.c237 char buf[10]; in TEST_F() local
439 char *buf; in TEST_F() local
528 char buf[10]; in TEST_F() local
554 char buf[10]; in TEST_F() local
564 char buf[10]; in TEST_F() local
578 char buf[13]; in TEST_F() local
656 char *buf; in TEST_F() local
772 char buf[10]; in TEST_F() local
808 char buf[10]; in TEST_F() local
831 char buf[10]; in TEST_F() local
[all …]
A 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/testing/nvdimm/test/
A Dndtest.c338 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()
611 struct device_attribute *attr, char *buf) in subsystem_vendor_show()
618 struct device_attribute *attr, char *buf) in dirty_shutdown_show()
[all …]
/tools/testing/selftests/sched_ext/
A 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/
A 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
A 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()
A 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
A 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/
A 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/
A Dxdp_adjust_tail.c11 char buf[128]; in test_xdp_adjust_tail_shrink() local
44 char buf[8192]; /* avoid segfault: large buf to hold grow results */ in test_xdp_adjust_tail_grow() local
83 char buf[4096]; /* avoid segfault: large buf to hold grow results */ in test_xdp_adjust_tail_grow2() local
156 __u8 *buf; in test_xdp_adjust_frags_tail_shrink() local
223 __u8 *buf; in test_xdp_adjust_frags_tail_grow_4k() local
294 __u8 *buf; in test_xdp_adjust_frags_tail_grow_64k() local
/tools/testing/selftests/resctrl/
A 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 void fill_cache_read(unsigned char *buf, size_t buf_size, bool once) in fill_cache_read()
107 void *buf = NULL; in alloc_buffer() local
/tools/perf/util/hisi-ptt-decoder/
A 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/bootconfig/
A Dmain.c139 static int load_xbc_fd(int fd, char **buf, int size) in load_xbc_fd()
156 static int load_xbc_file(const char *path, char **buf) in load_xbc_file()
181 static int load_xbc_from_initrd(int fd, char **buf) in load_xbc_from_initrd()
269 static int init_xbc_with_error(char *buf, int len) in init_xbc_with_error()
289 char *buf = NULL; in show_xbc() local
337 char *buf = NULL; in delete_xbc() local
372 char *buf, *data; in apply_xbc() local
/tools/lib/
A 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/
A 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/
A Dunpriv_helpers.c19 char buf[PATH_MAX]; in open_config() local
43 char buf[1024]; in config_contains() local
117 char buf[2]; in get_unpriv_disabled() local

Completed in 44 milliseconds

12345678910>>...26