/tools/testing/selftests/mm/ |
A D | mseal_test.c | 26 int size = 0; in get_vma_size() local 234 unsigned long size = 4 * page_size; in test_seal_addseal() local 250 unsigned long size = 4 * page_size; in test_seal_unmapped_start() local 278 unsigned long size = 4 * page_size; in test_seal_unmapped_middle() local 310 unsigned long size = 4 * page_size; in test_seal_unmapped_end() local 339 unsigned long size = 4 * page_size; in test_seal_multiple_vmas() local 370 unsigned long size = 4 * page_size; in test_seal_split_start() local 395 unsigned long size = 4 * page_size; in test_seal_split_end() local 1231 unsigned long size = page_size; in test_seal_mremap_move() local 1264 unsigned long size = page_size; in test_seal_mmap_overwrite_prot() local [all …]
|
A D | cow.c | 44 static int sz2ord(size_t size) in sz2ord() 75 static bool range_is_swapped(void *addr, size_t size) in range_is_swapped() 112 static int child_memcmp_fn(char *mem, size_t size, in child_memcmp_fn() 130 static int child_vmsplice_memcmp_fn(char *mem, size_t size, in child_vmsplice_memcmp_fn() 279 static void do_test_vmsplice_in_parent(char *mem, size_t size, in do_test_vmsplice_in_parent() 404 static void do_test_iouring(char *mem, size_t size, bool use_fork) in do_test_iouring() 759 static void test_ro_pin_on_ro_exclusive(char *mem, size_t size, in test_ro_pin_on_ro_exclusive() 837 size_t size, mmap_size, mremap_size; in do_run_with_thp() local 1216 size_t size = thpsizes[i]; in run_anon_test_case() local 1269 static void do_test_anon_thp_collapse(char *mem, size_t size, in do_test_anon_thp_collapse() [all …]
|
A D | gup_longterm.c | 91 static void do_test(int fd, size_t size, enum test_type type, bool shared) in do_test() 393 static void test_shared_rw_pin(int fd, size_t size) in test_shared_rw_pin() 398 static void test_shared_rw_fast_pin(int fd, size_t size) in test_shared_rw_fast_pin() 403 static void test_shared_ro_pin(int fd, size_t size) in test_shared_ro_pin() 408 static void test_shared_ro_fast_pin(int fd, size_t size) in test_shared_ro_fast_pin() 413 static void test_private_rw_pin(int fd, size_t size) in test_private_rw_pin() 418 static void test_private_rw_fast_pin(int fd, size_t size) in test_private_rw_fast_pin() 423 static void test_private_ro_pin(int fd, size_t size) in test_private_ro_pin() 428 static void test_private_ro_fast_pin(int fd, size_t size) in test_private_ro_fast_pin() 434 static void test_shared_iouring(int fd, size_t size) in test_shared_iouring() [all …]
|
A D | hmm-tests.c | 40 unsigned long size; member 296 unsigned long size; in TEST_F() local 360 unsigned long size; in TEST_F() local 419 unsigned long size; in TEST_F() local 467 unsigned long size; in TEST_F() local 533 unsigned long size; in TEST_F() local 611 unsigned long size; in TEST_F() local 688 unsigned long size; in TEST_F() local 792 unsigned long size; in TEST_F() local 849 unsigned long size; in TEST_F() local [all …]
|
A D | ksm_functional_tests.c | 49 static bool range_maps_duplicates(char *addr, unsigned long size) in range_maps_duplicates() 158 static char *__mmap_and_merge_range(char val, unsigned long size, int prot, in __mmap_and_merge_range() 241 static char *mmap_and_merge_range(char val, unsigned long size, int prot, in mmap_and_merge_range() 260 const unsigned int size = 2 * MiB; in test_unmerge() local 282 const unsigned int size = 2 * MiB; in test_unmerge_zero_pages() local 346 const unsigned int size = 2 * MiB; in test_unmerge_discarded() local 376 const unsigned int size = 2 * MiB; in test_unmerge_uffd_wp() local 504 const unsigned int size = 2 * MiB; in test_child_ksm() local 630 const unsigned int size = 2 * MiB; in test_prctl_unmerge() local 652 const unsigned int size = 2 * MiB; in test_prot_none() local
|
/tools/perf/util/ |
A D | trace-event-read.c | 54 static int do_read(void *data, int size) in do_read() 71 static void skip(int size) in skip() 105 int size = 0; in read_string() local 147 unsigned int size; in read_proc_kallsyms() local 170 unsigned int size; in read_ftrace_printk() local 197 unsigned long long size; in read_header_files() local 272 unsigned long long size) in read_event_file() 297 unsigned long long size; in read_ftrace_files() local 315 unsigned long long size; in read_event_files() local 346 unsigned long long size; in read_saved_cmdline() local [all …]
|
A 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() 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() 215 static void __p_config_hw_cache_id(char *buf, size_t size, struct perf_pmu *pmu, u64 config) in __p_config_hw_cache_id() [all …]
|
A D | trace-event-parse.c | 18 int *offset, int *size, const char *type) in get_common_field() 43 static int size; in common_lock_depth() local 57 static int size; in common_flags() local 71 static int size; in common_pc() local 97 unsigned long long read_size(struct tep_event *event, void *ptr, int size) in read_size() 103 int cpu, void *data, int size, FILE *fp) in event_format__fprintf() 274 int parse_ftrace_file(struct tep_handle *pevent, char *buf, unsigned long size) in parse_ftrace_file() 280 char *buf, unsigned long size, char *sys) in parse_event_file()
|
/tools/perf/trace/beauty/ |
A D | mmap.c | 7 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()
|
A D | ioctl.c | 21 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() 175 size_t syscall_arg__scnprintf_ioctl_cmd(char *bf, size_t size, struct syscall_arg *arg) in syscall_arg__scnprintf_ioctl_cmd()
|
A D | fcntl.c | 12 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()
|
A D | sockaddr.c | 13 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() 36 static size_t af_local__scnprintf(struct sockaddr *sa, char *bf, size_t size) in af_local__scnprintf() 48 …ic size_t syscall_arg__scnprintf_augmented_sockaddr(struct syscall_arg *arg, char *bf, size_t size) 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()
|
A D | prctl.c | 16 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()
|
A D | socket.c | 14 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()
|
A D | fs_at_flags.c | 24 static size_t fs_at__scnprintf_flags(unsigned long flags, char *bf, size_t size, bool show_prefix) in fs_at__scnprintf_flags() 29 size_t syscall_arg__scnprintf_fs_at_flags(char *bf, size_t size, struct syscall_arg *arg) in syscall_arg__scnprintf_fs_at_flags() 37 static size_t faccessat2__scnprintf_flags(unsigned long flags, char *bf, size_t size, bool show_pre… in faccessat2__scnprintf_flags() 52 size_t syscall_arg__scnprintf_faccessat2_flags(char *bf, size_t size, struct syscall_arg *arg) in syscall_arg__scnprintf_faccessat2_flags()
|
A D | perf_event_open.c | 18 static size_t syscall_arg__scnprintf_perf_flags(char *bf, size_t size, in syscall_arg__scnprintf_perf_flags() 49 size_t size, printed; member 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 …_t syscall_arg__scnprintf_augmented_perf_event_attr(struct syscall_arg *arg, char *bf, size_t size) 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()
|
/tools/include/linux/ |
A D | find.h | 33 unsigned long find_next_bit(const unsigned long *addr, unsigned long size, in find_next_bit() 63 const unsigned long *addr2, unsigned long size, in find_next_and_bit() 91 unsigned long find_next_zero_bit(const unsigned long *addr, unsigned long size, in find_next_zero_bit() 118 unsigned long find_first_bit(const unsigned long *addr, unsigned long size) in find_first_bit() 143 unsigned long size) in find_first_and_bit() 165 unsigned long find_first_zero_bit(const unsigned long *addr, unsigned long size) in find_first_zero_bit()
|
/tools/testing/selftests/kvm/x86/ |
A D | private_mem_conversions_test.c | 30 #define memcmp_g(gpa, pattern, size) \ argument 41 static void memcmp_h(uint8_t *mem, uint64_t gpa, uint8_t pattern, size_t size) in memcmp_h() 73 static void guest_sync_shared(uint64_t gpa, uint64_t size, in guest_sync_shared() 79 static void guest_sync_private(uint64_t gpa, uint64_t size, uint8_t pattern) in guest_sync_private() 89 static void guest_map_mem(uint64_t gpa, uint64_t size, bool map_shared, in guest_map_mem() 113 uint64_t size; member 138 uint64_t size = test_ranges[i].size; in guest_test_explicit_conversion() local 217 static void guest_punch_hole(uint64_t gpa, uint64_t size) in guest_punch_hole() 243 uint64_t size = test_ranges[i].size; in guest_test_punch_hole() local 293 uint64_t size = run->hypercall.args[1] * PAGE_SIZE; in handle_exit_hypercall() local [all …]
|
/tools/testing/memblock/tests/ |
A D | alloc_exact_nid_api.c | 33 phys_addr_t size; in alloc_exact_nid_top_down_numa_simple_check() local 86 phys_addr_t size; in alloc_exact_nid_top_down_numa_part_reserved_check() local 146 phys_addr_t size = SZ_512; in alloc_exact_nid_top_down_numa_split_range_low_check() local 204 phys_addr_t size; in alloc_exact_nid_top_down_numa_no_overlap_split_check() local 263 phys_addr_t size = SZ_64; in alloc_exact_nid_top_down_numa_no_overlap_low_check() local 302 phys_addr_t size; in alloc_exact_nid_bottom_up_numa_simple_check() local 355 phys_addr_t size; in alloc_exact_nid_bottom_up_numa_part_reserved_check() local 475 phys_addr_t size; in alloc_exact_nid_bottom_up_numa_no_overlap_split_check() local 582 phys_addr_t size; in alloc_exact_nid_numa_small_node_generic_check() local 623 phys_addr_t size; in alloc_exact_nid_numa_node_reserved_generic_check() local [all …]
|
A D | alloc_nid_api.c | 1249 phys_addr_t size; in alloc_nid_top_down_numa_simple_check() local 1302 phys_addr_t size; in alloc_nid_top_down_numa_small_node_check() local 1355 phys_addr_t size; in alloc_nid_top_down_numa_node_reserved_check() local 1407 phys_addr_t size; in alloc_nid_top_down_numa_part_reserved_check() local 1467 phys_addr_t size; in alloc_nid_top_down_numa_part_reserved_fallback_check() local 1641 phys_addr_t size; in alloc_nid_top_down_numa_no_overlap_split_check() local 1793 phys_addr_t size; in alloc_nid_bottom_up_numa_simple_check() local 1846 phys_addr_t size; in alloc_nid_bottom_up_numa_small_node_check() local 1900 phys_addr_t size; in alloc_nid_bottom_up_numa_node_reserved_check() local 1952 phys_addr_t size; in alloc_nid_bottom_up_numa_part_reserved_check() local [all …]
|
/tools/lib/ |
A D | find_bit.c | 27 #define FIND_FIRST_BIT(FETCH, MUNGE, size) \ argument 49 #define FIND_NEXT_BIT(FETCH, MUNGE, size, start) \ argument 74 unsigned long _find_first_bit(const unsigned long *addr, unsigned long size) in _find_first_bit() 86 unsigned long size) in _find_first_and_bit() 96 unsigned long _find_first_zero_bit(const unsigned long *addr, unsigned long size) in _find_first_zero_bit()
|
/tools/testing/selftests/arm64/mte/ |
A D | mte_common_util.c | 128 void *mte_insert_tags(void *ptr, size_t size) in mte_insert_tags() 143 void mte_clear_tags(void *ptr, size_t size) in mte_clear_tags() 167 static void *__mte_allocate_memory_range(size_t size, int mem_type, int mapping, in __mte_allocate_memory_range() 212 void *mte_allocate_memory_tag_range(size_t size, int mem_type, int mapping, in mte_allocate_memory_tag_range() 219 void *mte_allocate_memory(size_t size, int mem_type, int mapping, bool tags) in mte_allocate_memory() 224 void *mte_allocate_file_memory(size_t size, int mem_type, int mapping, bool tags, int fd) in mte_allocate_file_memory() 249 void *mte_allocate_file_memory_tag_range(size_t size, int mem_type, int mapping, in mte_allocate_file_memory_tag_range() 276 static void __mte_free_memory_range(void *ptr, size_t size, int mem_type, in __mte_free_memory_range() 295 void mte_free_memory_tag_range(void *ptr, size_t size, int mem_type, in mte_free_memory_tag_range() 301 void mte_free_memory(void *ptr, size_t size, int mem_type, bool tags) in mte_free_memory()
|
/tools/testing/radix-tree/ |
A D | benchmark.c | 53 unsigned long size, unsigned long step) in benchmark_insert() 74 unsigned long size, unsigned long step) in benchmark_tagging() 95 unsigned long size, unsigned long step) in benchmark_delete() 115 static void benchmark_size(unsigned long size, unsigned long step) in benchmark_size() 139 unsigned long size[] = {1 << 10, 1 << 20, 0}; in benchmark() local
|
/tools/testing/selftests/lsm/ |
A D | lsm_list_modules_test.c | 34 __u32 size = page_size; in TEST() local 46 __u32 size = 1; in TEST() local 61 __u32 size = page_size; in TEST() local 75 __u32 size = page_size; in TEST() local
|
A D | lsm_get_self_attr_test.c | 43 __u32 size = page_size; in TEST() local 60 __u32 size = 1; in TEST() local 80 __u32 size; in TEST() local 120 __u32 size; in TEST() local 143 __u32 size = page_size; in TEST() local
|