| /tools/perf/util/intel-pt-decoder/ |
| D | intel-pt-pkt-decoder.c | 77 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/perf/util/arm-spe-decoder/ |
| D | arm-spe-pkt-decoder.c | 60 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/cgroup/ |
| D | cgroup_util.c | 23 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[PAGE_SIZE]; in cg_read_key_long() local 161 char buf[PAGE_SIZE]; in cg_read_lc() local 176 int cg_write(const char *cgroup, const char *control, char *buf) in cg_write() 188 char buf[64]; in cg_write_numeric() local [all …]
|
| /tools/testing/selftests/net/ |
| D | gro.c | 165 static uint16_t tcp_checksum(void *buf, int payload_len) in tcp_checksum() 212 static void fill_datalinklayer(void *buf) in fill_datalinklayer() 221 static void fill_networklayer(void *buf, int payload_len) in fill_networklayer() 255 static void fill_transportlayer(void *buf, int seq_offset, int ack_offset, in fill_transportlayer() 274 static void write_packet(int fd, char *buf, int len, struct sockaddr_ll *daddr) in write_packet() 285 static void create_packet(void *buf, int seq_offset, int ack_offset, in create_packet() 301 static char buf[MAX_HDR_LEN + PAYLOAD_LEN]; in send_flags() local 335 static char buf[ETH_HLEN + IP_MAXPACKET]; in send_data_pkts() local 367 static char buf[MAX_HDR_LEN]; in send_ack() local 376 static void recompute_packet(char *buf, char *no_ext, int extlen) in recompute_packet() [all …]
|
| D | tls.c | 235 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 …]
|
| D | tap.c | 196 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/ |
| D | trace-event-read.c | 28 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
|
| D | perf_event_attr_fprintf.c | 19 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() 66 static void __p_read_format(char *buf, size_t size, u64 value) in __p_read_format() 182 static void __p_type_id(struct perf_pmu *pmu, char *buf, size_t size, u64 value) in __p_type_id() 187 static void __p_config_hw_id(char *buf, size_t size, u64 value) in __p_config_hw_id() 192 static void __p_config_sw_id(char *buf, size_t size, u64 value) in __p_config_sw_id() 197 static void __p_config_hw_cache_id(char *buf, size_t size, u64 value) in __p_config_hw_cache_id() 215 static void __p_config_tracepoint_id(char *buf, size_t size, u64 value) in __p_config_tracepoint_id() 224 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/ |
| D | ndtest.c | 239 struct nvdimm *nvdimm, unsigned int cmd, void *buf, in ndtest_ctl() 332 void *buf; in ndtest_alloc_resource() local 381 struct device_attribute *attr, char *buf) in range_index_show() 489 char *buf) in handle_show() 498 char *buf) in fail_cmd_show() 506 const char *buf, size_t size) in fail_cmd_store() 523 char *buf) in fail_cmd_code_show() 531 const char *buf, size_t size) in fail_cmd_code_store() 563 struct device_attribute *attr, char *buf) in phys_id_show() 573 struct device_attribute *attr, char *buf) in vendor_show() [all …]
|
| /tools/testing/selftests/resctrl/ |
| D | fill_buf.c | 41 static void mem_flush(unsigned char *buf, size_t buf_size) in mem_flush() 77 static int fill_one_span_read(unsigned char *buf, size_t buf_size) in fill_one_span_read() 92 static void fill_one_span_write(unsigned char *buf, size_t buf_size) in fill_one_span_write() 104 static int fill_cache_read(unsigned char *buf, size_t buf_size, bool once) in fill_cache_read() 127 static int fill_cache_write(unsigned char *buf, size_t buf_size, bool once) in fill_cache_write() 140 unsigned char *buf; in fill_cache() local
|
| /tools/testing/selftests/bpf/progs/ |
| D | async_stack_depth.c | 21 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
|
| D | test_overhead.c | 13 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()
|
| D | test_module_attach.c | 59 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() 82 struct bin_attribute *bin_attr, char *buf, loff_t off, size_t len, in BPF_PROG() 93 long buf = 0; in BPF_PROG() local 107 struct bin_attribute *bin_attr, char *buf, loff_t off, size_t len) in BPF_PROG()
|
| /tools/lib/perf/ |
| D | lib.c | 10 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/ |
| D | xdp_adjust_tail.c | 11 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
|
| D | libbpf_str.c | 43 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 183 char buf[256]; in test_libbpf_bpf_prog_type_str() local
|
| /tools/bootconfig/ |
| D | main.c | 134 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/ |
| D | hisi-ptt-pkt-decoder.c | 90 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/testing/selftests/mm/ |
| D | thp_settings.c | 45 int read_file(const char *path, char *buf, size_t buflen) in read_file() 66 int write_file(const char *path, const char *buf, size_t buflen) in write_file() 91 char buf[21]; in read_num() local 103 char buf[21]; in write_num() local 115 char buf[256]; in thp_read_string() local 331 char buf[256]; in thp_supported_orders() local
|
| /tools/lib/ |
| D | vsprintf.c | 6 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/bpf/ |
| D | cgroup_helpers.c | 38 #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(buf) \ argument 122 const char *buf) in __write_cgroup_file() 154 const char *buf) in write_cgroup_file() 175 const char *buf) in write_cgroup_file_parent()
|
| /tools/testing/selftests/proc/ |
| D | read.c | 40 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
|
| /tools/bpf/bpftool/ |
| D | perf.c | 28 char buf[256]; in has_perf_query_support() local 66 char *buf, __u64 probe_offset, __u64 probe_addr) in print_perf_json() 116 char *buf, __u64 probe_offset, __u64 probe_addr) in print_perf_plain() 160 char buf[4096]; in show_proc() local
|
| /tools/testing/selftests/timers/ |
| D | clocksource-switch.c | 44 char buf[512]; in get_clocksources() local 75 int get_cur_clocksource(char *buf, size_t size) in get_cur_clocksource() 109 char buf[255]; in run_tests() local
|
| /tools/perf/arch/arm64/util/ |
| D | header.c | 19 static int _get_cpuid(char *buf, size_t sz, struct perf_cpu_map *cpus) in _get_cpuid() 58 int get_cpuid(char *buf, size_t sz) in get_cpuid() 75 char *buf = NULL; in get_cpuid_str() local
|