Home
last modified time | relevance | path

Searched refs:mem (Results 1 – 25 of 61) sorted by relevance

123

/tools/perf/
Dbuiltin-mem.c44 struct perf_mem *mem = *(struct perf_mem **)opt->value; in parse_record_events() local
53 mem->operation = 0; in parse_record_events()
65 static int __cmd_record(int argc, const char **argv, struct perf_mem *mem) in __cmd_record() argument
75 OPT_CALLBACK('e', "event", &mem, "event", in __cmd_record()
121 (mem->operation & MEM_OPERATION_LOAD) && in __cmd_record()
122 (mem->operation & MEM_OPERATION_STORE)) { in __cmd_record()
125 if (mem->operation & MEM_OPERATION_LOAD) { in __cmd_record()
130 if (mem->operation & MEM_OPERATION_STORE) { in __cmd_record()
142 if (mem->phys_addr) in __cmd_record()
145 if (mem->data_page_size) in __cmd_record()
[all …]
/tools/testing/selftests/vm/
Dmemfd_secret.c62 char *mem; in test_mlock_limit() local
68 mem = mmap(NULL, len, prot, mode, fd, 0); in test_mlock_limit()
69 if (mem == MAP_FAILED) { in test_mlock_limit()
73 munmap(mem, len); in test_mlock_limit()
76 mem = mmap(NULL, len, prot, mode, fd, 0); in test_mlock_limit()
77 if (mem != MAP_FAILED) { in test_mlock_limit()
79 munmap(mem, len); in test_mlock_limit()
90 char *mem; in try_process_vm_read() local
92 if (read(pipefd[0], &mem, sizeof(mem)) < 0) { in try_process_vm_read()
99 riov.iov_base = mem; in try_process_vm_read()
[all …]
/tools/power/cpupower/debug/i386/
Ddump_psb.c154 char *mem = NULL; in main() local
184 mem = mmap(mem, 0x100000 - 0xc0000, PROT_READ, MAP_SHARED, fd, 0xc0000); in main()
187 for (p = mem; p - mem < LEN; p+=16) { in main()
194 munmap(mem, LEN); in main()
/tools/testing/selftests/memory-hotplug/
DMakefile6 TEST_PROGS := mem-on-off-test.sh
9 …@/bin/bash ./mem-on-off-test.sh -r 10 && echo "memory-hotplug selftests: [PASS]" || echo "memory-h…
/tools/perf/bench/
DBuild4 perf-y += mem-functions.o
18 perf-$(CONFIG_X86_64) += mem-memcpy-x86-64-asm.o
19 perf-$(CONFIG_X86_64) += mem-memset-x86-64-asm.o
/tools/virtio/
Dvirtio_test.c46 struct vhost_memory *mem; member
141 dev->mem = malloc(offsetof(struct vhost_memory, regions) + in vdev_info_init()
142 sizeof dev->mem->regions[0]); in vdev_info_init()
143 assert(dev->mem); in vdev_info_init()
144 memset(dev->mem, 0, offsetof(struct vhost_memory, regions) + in vdev_info_init()
145 sizeof dev->mem->regions[0]); in vdev_info_init()
146 dev->mem->nregions = 1; in vdev_info_init()
147 dev->mem->regions[0].guest_phys_addr = (long)dev->buf; in vdev_info_init()
148 dev->mem->regions[0].userspace_addr = (long)dev->buf; in vdev_info_init()
149 dev->mem->regions[0].memory_size = dev->buf_size; in vdev_info_init()
[all …]
/tools/perf/Documentation/
Dperf-mem.txt1 perf-mem(1)
6 perf-mem - Profile memory accesses
11 'perf mem' [<options>] (record [<command>] | report)
15 "perf mem record" runs a command and gathers memory operation data
18 "perf mem report" displays the result. It invokes perf report with the
73 Event selector. Use 'perf mem record -e list' to list available events.
/tools/testing/selftests/kvm/
Dset_memory_region_test.c332 static int test_memory_region_add(struct kvm_vm *vm, void *mem, uint32_t slot, in test_memory_region_add() argument
342 region.userspace_addr = (uintptr_t) mem; in test_memory_region_add()
358 void *mem, *mem_aligned, *mem_extra; in test_add_max_memory_regions() local
379 mem = mmap(NULL, (size_t)max_mem_slots * MEM_REGION_SIZE + alignment, in test_add_max_memory_regions()
382 TEST_ASSERT(mem != MAP_FAILED, "Failed to mmap() host"); in test_add_max_memory_regions()
383 mem_aligned = (void *)(((size_t) mem + alignment - 1) & ~(alignment - 1)); in test_add_max_memory_regions()
405 munmap(mem, (size_t)max_mem_slots * MEM_REGION_SIZE + alignment); in test_add_max_memory_regions()
/tools/power/acpi/os_specific/service_layers/
Dosunixxf.c532 void *mem; in acpi_os_allocate() local
534 mem = (void *)malloc((size_t) size); in acpi_os_allocate()
535 return (mem); in acpi_os_allocate()
553 void *mem; in acpi_os_allocate_zeroed() local
555 mem = (void *)calloc(1, (size_t) size); in acpi_os_allocate_zeroed()
556 return (mem); in acpi_os_allocate_zeroed()
572 void acpi_os_free(void *mem) in acpi_os_free() argument
575 free(mem); in acpi_os_free()
/tools/testing/selftests/bpf/progs/
Dtest_xdp_meta.c9 #define ctx_ptr(ctx, mem) (void *)(unsigned long)ctx->mem argument
/tools/power/pm-graph/config/
Dsuspend-x2-proc.cfg21 # e.g. standby, mem, freeze, disk (default: mem)
22 mode: mem
43 # command: echo mem > /sys/power/state
Dsuspend.cfg21 # e.g. standby, mem, freeze, disk (default: mem)
22 mode: mem
43 # command: echo mem > /sys/power/state
Dsuspend-dev.cfg21 # e.g. standby, mem, freeze, disk (default: mem)
22 mode: mem
43 # command: echo mem > /sys/power/state
Dsuspend-callgraph.cfg22 # e.g. standby, mem, freeze, disk (default: mem)
23 mode: mem
44 # command: echo mem > /sys/power/state
Dexample.cfg21 # e.g. standby, mem, freeze, disk (default: mem)
22 mode: mem
67 # command: echo mem > /sys/power/state
Dfreeze.cfg21 # e.g. standby, mem, freeze, disk (default: mem)
Dstandby.cfg21 # e.g. standby, mem, freeze, disk (default: mem)
/tools/perf/scripts/python/bin/
Dmem-phys-addr-report3 perf script $@ -s "$PERF_EXEC_PATH"/scripts/python/mem-phys-addr.py
/tools/perf/util/
Dparse-events.l194 %x mem
308 <mem>{
359 mem-loads |
360 mem-loads-aux |
361 mem-stores |
381 mem: { BEGIN(mem); return PE_PREFIX_MEM; }
Dcputopo.c242 u64 mem; in load_numa_node() local
256 if (sscanf(buf, "%*s %*d %31s %"PRIu64, field, &mem) != 2) in load_numa_node()
259 node->mem_total = mem; in load_numa_node()
261 node->mem_free = mem; in load_numa_node()
/tools/usb/usbip/libsrc/
Dnames.c144 void *mem; member
157 p->mem = calloc(1, size); in my_malloc()
158 if (!p->mem) { in my_malloc()
166 return p->mem; in my_malloc()
179 if (pool->mem) in names_free()
180 free(pool->mem); in names_free()
/tools/power/pm-graph/
DREADME129 ['freeze', 'mem', 'disk']
131 Execute a test using one of the available power modes, e.g. mem (S3):
133 %> sudo ./sleepgraph.py -m mem -rtcwake 15
169 %> sudo ./sleepgraph.py -m mem -rtcwake 15 -mindev 1 -dev
193 %> sudo ./sleepgraph.py -m mem -rtcwake 15 -x2 -x2delay 1000 -predelay 1000 -postdelay 1000 -proc
230 Mode to initiate for suspend e.g. mem, freeze, standby (default: mem).
277 %> sudo ./sleepgraph.py -m mem -rtcwake 10 -dev -gzip -multi 2000 0
281 %> sudo ./sleepgraph.py -m mem -rtcwake 10 -dev -gzip -multi 2000 0 -skiphtml
306 Simple suspend/resume with basic timeline (mem/freeze/standby)
311 Dev mode suspend/resume with dev timeline (mem/freeze/standby)
[all …]
/tools/perf/arch/powerpc/util/
DBuild4 perf-y += mem-events.o
/tools/perf/arch/arm64/util/
DBuild13 arm-spe.o mem-events.o
/tools/perf/arch/x86/util/
DBuild10 perf-y += mem-events.o

123