Home
last modified time | relevance | path

Searched refs:size_t (Results 1 – 25 of 758) sorted by relevance

12345678910>>...31

/tools/perf/trace/beauty/
Dbeauty.h30 size_t strarray__scnprintf(struct strarray *sa, char *bf, size_t size, const char *intfmt, bool sho…
31 size_t strarray__scnprintf_suffix(struct strarray *sa, char *bf, size_t size, const char *intfmt, b…
32 size_t strarray__scnprintf_flags(struct strarray *sa, char *bf, size_t size, bool show_prefix, unsi…
34 bool strarray__strtoul(struct strarray *sa, char *bf, size_t size, u64 *ret);
35 bool strarray__strtoul_flags(struct strarray *sa, char *bf, size_t size, u64 *ret);
57 size_t strarrays__scnprintf(struct strarrays *sas, char *bf, size_t size, const char *intfmt, bool …
59 bool strarrays__strtoul(struct strarrays *sas, char *bf, size_t size, u64 *ret);
61 size_t pid__scnprintf_fd(struct trace *trace, pid_t pid, int fd, char *bf, size_t size);
124 size_t syscall_arg__scnprintf_strarray_flags(char *bf, size_t size, struct syscall_arg *arg);
127 bool syscall_arg__strtoul_strarray(char *bf, size_t size, struct syscall_arg *arg, u64 *ret);
[all …]
Dmmap.c7 static size_t mmap__scnprintf_prot(unsigned long prot, char *bf, size_t size, bool show_prefix) in mmap__scnprintf_prot()
12 static size_t syscall_arg__scnprintf_mmap_prot(char *bf, size_t size, struct syscall_arg *arg) in syscall_arg__scnprintf_mmap_prot()
27 static size_t mmap__scnprintf_flags(unsigned long flags, char *bf, size_t size, bool show_prefix) in mmap__scnprintf_flags()
32 static size_t syscall_arg__scnprintf_mmap_flags(char *bf, size_t size, in syscall_arg__scnprintf_mmap_flags()
48 static size_t mremap__scnprintf_flags(unsigned long flags, char *bf, size_t size, bool show_prefix) in mremap__scnprintf_flags()
53 static size_t syscall_arg__scnprintf_mremap_flags(char *bf, size_t size, struct syscall_arg *arg) in syscall_arg__scnprintf_mremap_flags()
65 static size_t madvise__scnprintf_behavior(int behavior, char *bf, size_t size) in madvise__scnprintf_behavior()
76 static size_t syscall_arg__scnprintf_madvise_behavior(char *bf, size_t size, in syscall_arg__scnprintf_madvise_behavior()
Dsockaddr.c13 static size_t af_inet__scnprintf(struct sockaddr *sa, char *bf, size_t size) in af_inet__scnprintf()
21 static size_t af_inet6__scnprintf(struct sockaddr *sa, char *bf, size_t size) in af_inet6__scnprintf()
26 size_t printed = scnprintf(bf, size, ", port: %d, addr: %s", ntohs(sin6->sin6_port), in af_inet6__scnprintf()
36 static size_t af_local__scnprintf(struct sockaddr *sa, char *bf, size_t size) in af_local__scnprintf()
42 static size_t (*af_scnprintfs[])(struct sockaddr *sa, char *bf, size_t size) = {
48 static size_t syscall_arg__scnprintf_augmented_sockaddr(struct syscall_arg *arg, char *bf, size_t s… in syscall_arg__scnprintf_augmented_sockaddr()
52 size_t printed; in syscall_arg__scnprintf_augmented_sockaddr()
63 size_t syscall_arg__scnprintf_sockaddr(char *bf, size_t size, struct syscall_arg *arg) in syscall_arg__scnprintf_sockaddr()
Dioctl.c21 static size_t ioctl__scnprintf_tty_cmd(int nr, int dir, char *bf, size_t size) in ioctl__scnprintf_tty_cmd()
47 static size_t ioctl__scnprintf_drm_cmd(int nr, int dir, char *bf, size_t size) in ioctl__scnprintf_drm_cmd()
58 static size_t ioctl__scnprintf_sndrv_pcm_cmd(int nr, int dir, char *bf, size_t size) in ioctl__scnprintf_sndrv_pcm_cmd()
69 static size_t ioctl__scnprintf_sndrv_ctl_cmd(int nr, int dir, char *bf, size_t size) in ioctl__scnprintf_sndrv_ctl_cmd()
80 static size_t ioctl__scnprintf_kvm_cmd(int nr, int dir, char *bf, size_t size) in ioctl__scnprintf_kvm_cmd()
91 static size_t ioctl__scnprintf_vhost_virtio_cmd(int nr, int dir, char *bf, size_t size) in ioctl__scnprintf_vhost_virtio_cmd()
104 static size_t ioctl__scnprintf_perf_cmd(int nr, int dir, char *bf, size_t size) in ioctl__scnprintf_perf_cmd()
115 static size_t ioctl__scnprintf_usbdevfs_cmd(int nr, int dir, char *bf, size_t size) in ioctl__scnprintf_usbdevfs_cmd()
126 static size_t ioctl__scnprintf_cmd(unsigned long cmd, char *bf, size_t size, bool show_prefix) in ioctl__scnprintf_cmd()
136 size_t (*scnprintf)(int nr, int dir, char *bf, size_t size); in ioctl__scnprintf_cmd()
[all …]
Dsocket.c14 static size_t socket__scnprintf_ipproto(int protocol, char *bf, size_t size, bool show_prefix) in socket__scnprintf_ipproto()
21 size_t syscall_arg__scnprintf_socket_protocol(char *bf, size_t size, struct syscall_arg *arg) in syscall_arg__scnprintf_socket_protocol()
31 static size_t socket__scnprintf_level(int level, char *bf, size_t size, bool show_prefix) in socket__scnprintf_level()
44 size_t syscall_arg__scnprintf_socket_level(char *bf, size_t size, struct syscall_arg *arg) in syscall_arg__scnprintf_socket_level()
Dfcntl.c12 static size_t fcntl__scnprintf_getfd(unsigned long val, char *bf, size_t size, bool show_prefix) in fcntl__scnprintf_getfd()
18 static size_t syscall_arg__scnprintf_fcntl_getfd(char *bf, size_t size, struct syscall_arg *arg) in syscall_arg__scnprintf_fcntl_getfd()
23 static size_t fcntl__scnprintf_getlease(unsigned long val, char *bf, size_t size, bool show_prefix) in fcntl__scnprintf_getlease()
31 static size_t syscall_arg__scnprintf_fcntl_getlease(char *bf, size_t size, struct syscall_arg *arg) in syscall_arg__scnprintf_fcntl_getlease()
36 size_t syscall_arg__scnprintf_fcntl_cmd(char *bf, size_t size, struct syscall_arg *arg) in syscall_arg__scnprintf_fcntl_cmd()
70 size_t syscall_arg__scnprintf_fcntl_arg(char *bf, size_t size, struct syscall_arg *arg) in syscall_arg__scnprintf_fcntl_arg()
Dprctl.c16 static size_t prctl__scnprintf_option(int option, char *bf, size_t size, bool show_prefix) in prctl__scnprintf_option()
21 static size_t prctl__scnprintf_set_mm(int option, char *bf, size_t size, bool show_prefix) in prctl__scnprintf_set_mm()
27 size_t syscall_arg__scnprintf_prctl_arg2(char *bf, size_t size, struct syscall_arg *arg) in syscall_arg__scnprintf_prctl_arg2()
43 size_t syscall_arg__scnprintf_prctl_arg3(char *bf, size_t size, struct syscall_arg *arg) in syscall_arg__scnprintf_prctl_arg3()
53 size_t syscall_arg__scnprintf_prctl_option(char *bf, size_t size, struct syscall_arg *arg) in syscall_arg__scnprintf_prctl_option()
Dperf_event_open.c18 static size_t syscall_arg__scnprintf_perf_flags(char *bf, size_t size, in syscall_arg__scnprintf_perf_flags()
49 size_t size, printed;
57size_t printed = scnprintf(args->bf + args->printed , args->size - args->printed, "%s%s: %s", args… in attr__fprintf()
64 static size_t perf_event_attr___scnprintf(struct perf_event_attr *attr, char *bf, size_t size, bool… in perf_event_attr___scnprintf()
77 static size_t syscall_arg__scnprintf_augmented_perf_event_attr(struct syscall_arg *arg, char *bf, s… in syscall_arg__scnprintf_augmented_perf_event_attr()
82 static size_t syscall_arg__scnprintf_perf_event_attr(char *bf, size_t size, struct syscall_arg *arg) in syscall_arg__scnprintf_perf_event_attr()
Dkcmp.c16 size_t syscall_arg__scnprintf_kcmp_idx(char *bf, size_t size, struct syscall_arg *arg) in syscall_arg__scnprintf_kcmp_idx()
29 static size_t kcmp__scnprintf_type(int type, char *bf, size_t size, bool show_prefix) in kcmp__scnprintf_type()
35 size_t syscall_arg__scnprintf_kcmp_type(char *bf, size_t size, struct syscall_arg *arg) in syscall_arg__scnprintf_kcmp_type()
/tools/testing/selftests/arm64/pauth/
Dhelper.h12 size_t keyia;
13 size_t keyib;
14 size_t keyda;
15 size_t keydb;
16 size_t keyg;
22 size_t keyia_sign(size_t val);
23 size_t keyib_sign(size_t val);
24 size_t keyda_sign(size_t val);
25 size_t keydb_sign(size_t val);
26 size_t keyg_sign(size_t val);
Dhelper.c6 size_t keyia_sign(size_t ptr) in keyia_sign()
12 size_t keyib_sign(size_t ptr) in keyib_sign()
18 size_t keyda_sign(size_t ptr) in keyda_sign()
24 size_t keydb_sign(size_t ptr) in keydb_sign()
30 size_t keyg_sign(size_t ptr) in keyg_sign()
33 size_t dest = 0; in keyg_sign()
34 size_t modifier = 0; in keyg_sign()
/tools/perf/util/
Dcompress.h32 size_t zstd_compress_stream_to_records(struct zstd_data *data, void *dst, size_t dst_size,
33 void *src, size_t src_size, size_t max_record_size,
34 size_t process_header(void *record, size_t increment));
36 size_t zstd_decompress_stream(struct zstd_data *data, void *src, size_t src_size,
37 void *dst, size_t dst_size);
51 size_t zstd_compress_stream_to_records(struct zstd_data *data __maybe_unused, in zstd_compress_stream_to_records()
52 void *dst __maybe_unused, size_t dst_size __maybe_unused, in zstd_compress_stream_to_records()
53 void *src __maybe_unused, size_t src_size __maybe_unused, in zstd_compress_stream_to_records()
54 size_t max_record_size __maybe_unused, in zstd_compress_stream_to_records()
55 size_t process_header(void *record, size_t increment) __maybe_unused) in zstd_compress_stream_to_records()
[all …]
Dsharded_mutex.c6 struct sharded_mutex *sharded_mutex__new(size_t num_shards) in sharded_mutex__new()
9 size_t size; in sharded_mutex__new()
12 for (bits = 0; ((size_t)1 << bits) < num_shards; bits++) in sharded_mutex__new()
21 for (size_t i = 0; i < ((size_t)1 << bits); i++) in sharded_mutex__new()
29 for (size_t i = 0; i < ((size_t)1 << sm->cap_bits); i++) in sharded_mutex__delete()
Dzstd.c10 size_t ret; in zstd_init()
57 size_t zstd_compress_stream_to_records(struct zstd_data *data, void *dst, size_t dst_size, in zstd_compress_stream_to_records()
58 void *src, size_t src_size, size_t max_record_size, in zstd_compress_stream_to_records()
59 size_t process_header(void *record, size_t increment)) in zstd_compress_stream_to_records()
61 size_t ret, size, compressed = 0; in zstd_compress_stream_to_records()
92 size_t zstd_decompress_stream(struct zstd_data *data, void *src, size_t src_size, in zstd_decompress_stream()
93 void *dst, size_t dst_size) in zstd_decompress_stream()
95 size_t ret; in zstd_decompress_stream()
Dsymbol_fprintf.c10 size_t symbol__fprintf(struct symbol *sym, FILE *fp) in symbol__fprintf()
19 size_t __symbol__fprintf_symname_offs(const struct symbol *sym, in __symbol__fprintf_symname_offs()
25 size_t length; in __symbol__fprintf_symname_offs()
43 size_t symbol__fprintf_symname_offs(const struct symbol *sym, in symbol__fprintf_symname_offs()
50 size_t __symbol__fprintf_symname(const struct symbol *sym, in __symbol__fprintf_symname()
57 size_t symbol__fprintf_symname(const struct symbol *sym, FILE *fp) in symbol__fprintf_symname()
62 size_t dso__fprintf_symbols_by_name(struct dso *dso, in dso__fprintf_symbols_by_name()
65 size_t ret = 0; in dso__fprintf_symbols_by_name()
67 for (size_t i = 0; i < dso->symbol_names_len; i++) { in dso__fprintf_symbols_by_name()
/tools/testing/selftests/arm64/mte/
Dmte_common_util.h45 void *mte_allocate_memory(size_t size, int mem_type, int mapping, bool tags);
46 void *mte_allocate_memory_tag_range(size_t size, int mem_type, int mapping,
47 size_t range_before, size_t range_after);
48 void *mte_allocate_file_memory(size_t size, int mem_type, int mapping,
50 void *mte_allocate_file_memory_tag_range(size_t size, int mem_type, int mapping,
51 size_t range_before, size_t range_after, int fd);
52 void mte_free_memory(void *ptr, size_t size, int mem_type, bool tags);
53 void mte_free_memory_tag_range(void *ptr, size_t size, int mem_type,
54 size_t range_before, size_t range_after);
55 void *mte_insert_tags(void *ptr, size_t size);
[all …]
/tools/include/nolibc/
Dstring.h12 static void *malloc(size_t len);
19 int memcmp(const void *s1, const void *s2, size_t n) in memcmp()
21 size_t ofs = 0; in memcmp()
31 void *_nolibc_memcpy_up(void *dst, const void *src, size_t len) in _nolibc_memcpy_up()
33 size_t pos = 0; 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()
58 size_t dir, pos; 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()
[all …]
/tools/include/linux/
Doverflow.h82 static inline __must_check size_t array_size(size_t a, size_t b) in array_size()
84 size_t bytes; in array_size()
104 static inline __must_check size_t array3_size(size_t a, size_t b, size_t c) in array3_size()
106 size_t bytes; in array3_size()
116 static inline __must_check size_t __ab_c_size(size_t n, size_t size, size_t c) in __ab_c_size()
118 size_t bytes; in __ab_c_size()
/tools/lib/bpf/
Dlibbpf.h52 LIBBPF_API int libbpf_strerror(int err, char *buf, size_t size);
114 size_t sz;
165 size_t kernel_log_size;
181 size_t :0;
219 bpf_object__open_mem(const void *obj_buf, size_t obj_buf_sz,
354 struct bpf_insn *new_insns, size_t new_insn_cnt);
365 LIBBPF_API size_t bpf_program__insn_cnt(const struct bpf_program *prog);
454 size_t sz;
459 size_t :0;
489 size_t sz;
[all …]
Dbpf.h38 LIBBPF_API int libbpf_set_memlock_rlim(size_t memlock_bytes);
41 size_t sz; /* size of this struct for forward/backward compatibility */
65 size_t sz; /* size of this struct for forward/backward compatibility */
105 size_t :0;
111 const struct bpf_insn *insns, size_t insn_cnt,
121 size_t sz; /* size of this struct for forward/backward compatibility */
133 size_t :0;
137 LIBBPF_API int bpf_btf_load(const void *btf_data, size_t btf_size,
156 size_t sz; /* size of this struct for forward/backward compatibility */
288 size_t sz; /* size of this struct for forward/backward compatibility */
[all …]
/tools/lib/perf/include/internal/
Dxyarray.h9 size_t row_size;
10 size_t entry_size;
11 size_t entries;
12 size_t max_x;
13 size_t max_y;
17 struct xyarray *xyarray__new(int xlen, int ylen, size_t entry_size);
26 static inline void *xyarray__entry(struct xyarray *xy, size_t x, size_t y) in xyarray__entry()
/tools/testing/selftests/resctrl/
Dfill_buf.c41 static void mem_flush(unsigned char *buf, size_t buf_size) in mem_flush()
44 size_t i = 0; in mem_flush()
54 static void *malloc_and_init_memory(size_t buf_size) in malloc_and_init_memory()
58 size_t s64; in malloc_and_init_memory()
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()
138 static int fill_cache(size_t buf_size, int memflush, int op, bool once) in fill_cache()
167 int run_fill_buf(size_t span, int memflush, int op, bool once) in run_fill_buf()
[all …]
/tools/lib/perf/
Dlib.c10 static ssize_t ion(bool is_read, int fd, void *buf, size_t n) in ion()
13 size_t left = n; in ion()
29 BUG_ON((size_t)(buf - buf_start) != 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()
43 size_t left = n; in preadn()
64 ssize_t writen(int fd, const void *buf, size_t n) in writen()
/tools/testing/selftests/arm64/signal/testcases/
Dtestcases.h88 bool validate_reserved(ucontext_t *uc, size_t resv_sz, char **err);
91 size_t resv_sz, size_t *offset);
94 size_t resv_sz, in get_terminator()
95 size_t *offset) in get_terminator()
109 size_t need_sz, size_t resv_sz,
110 size_t *offset);
/tools/testing/selftests/powerpc/include/
Dutils.h46 int parse_intmax(const char *buffer, size_t count, intmax_t *result, int base);
47 int parse_uintmax(const char *buffer, size_t count, uintmax_t *result, int base);
48 int parse_int(const char *buffer, size_t count, int *result, int base);
49 int parse_uint(const char *buffer, size_t count, unsigned int *result, int base);
50 int parse_long(const char *buffer, size_t count, long *result, int base);
51 int parse_ulong(const char *buffer, size_t count, unsigned long *result, int base);
53 int read_file(const char *path, char *buf, size_t count, size_t *len);
54 int write_file(const char *path, const char *buf, size_t count);
55 int read_file_alloc(const char *path, char **buf, size_t *len);
60 int read_debugfs_file(const char *debugfs_file, char *buf, size_t count);
[all …]

12345678910>>...31