Home
last modified time | relevance | path

Searched refs:psize (Results 1 – 11 of 11) sorted by relevance

/tools/testing/selftests/mm/
Dmrelease_test.c27 buf = (char *)mmap(NULL, nr_pages * psize(), PROT_READ | PROT_WRITE, in alloc_noexit()
35 *((unsigned long *)(buf + (i * psize()))) = i; in alloc_noexit()
49 munmap(buf, nr_pages * psize()); in alloc_noexit()
82 res = alloc_noexit(MB(size) / psize(), pipefd[1]); in child_main()
Dtranshuge-stress.c38 if (ram > SIZE_MAX / psize() / 4) in main()
41 ram *= psize(); in main()
116 if (madvise(p, HPAGE_SIZE - psize(), MADV_DONTNEED)) in main()
Dvm_util.h20 static inline unsigned int psize(void) in psize() function
30 __page_shift = (ffsl(psize()) - 1); in pshift()
Dhugepage-vmemmap.c109 pagesize = psize(); in main()
Dgup_test.c254 for (; (unsigned long)p < gup.addr + size; p += psize()) in main()
Duffd-unit-tests.c197 page_size = psize(); in uffd_setup_environment()
/tools/lib/api/fd/
Darray.c25 size_t psize = sizeof(fda->priv[0]) * nr_alloc; in fdarray__grow() local
32 priv = realloc(fda->priv, psize); in fdarray__grow()
/tools/tracing/latency/
Dlatency-collector.c574 int psize; in read_file() local
578 r = tracefs_instance_file_read(NULL, file, &psize); in read_file()
588 if (r && r[psize - 1] == '\n') in read_file()
589 r[psize - 1] = '\0'; in read_file()
1326 int psize; in save_trace_opts() local
1329 allopt = tracefs_instance_file_read(NULL, TR_OPTIONS, &psize); in save_trace_opts()
/tools/lib/bpf/
Dlibbpf.h983 LIBBPF_API void *bpf_map__initial_value(struct bpf_map *map, size_t *psize);
Dlibbpf.c9685 void *bpf_map__initial_value(struct bpf_map *map, size_t *psize) in bpf_map__initial_value() argument
9689 *psize = map->def.value_size; in bpf_map__initial_value()
/tools/perf/util/
Dheader.c278 static int do_read_bitmap(struct feat_fd *ff, unsigned long **pset, u64 *psize) in do_read_bitmap() argument
303 *psize = size; in do_read_bitmap()