Home
last modified time | relevance | path

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

/tools/perf/
Dbuiltin-mem.c29 struct perf_mem *mem = *(struct perf_mem **)opt->value; in parse_record_events() local
34 mem->operation = 0; in parse_record_events()
60 static int __cmd_record(int argc, const char **argv, struct perf_mem *mem) in __cmd_record() argument
67 OPT_CALLBACK('e', "event", &mem, "event", in __cmd_record()
88 if (mem->operation & MEM_OPERATION_LOAD) in __cmd_record()
91 if (mem->operation & MEM_OPERATION_STORE) in __cmd_record()
143 struct perf_mem *mem = container_of(tool, struct perf_mem, tool); in dump_raw_samples() local
153 if (al.filtered || (mem->hide_unresolved && al.sym == NULL)) in dump_raw_samples()
197 static int report_raw_events(struct perf_mem *mem) in report_raw_events() argument
202 .force = mem->force, in report_raw_events()
[all …]
Dcommand-list.txt19 perf-mem mainporcelain common
DBuild21 perf-y += builtin-mem.o
Dperf-completion.sh168 if [[ $prev_skip_opts == @(kvm|kmem|mem|lock|sched|
/tools/testing/selftests/memory-hotplug/
DMakefile5 TEST_PROGS := mem-on-off-test.sh
6 override RUN_TESTS := ./mem-on-off-test.sh -r 2 || echo "selftests: memory-hotplug [FAIL]"
10 @/bin/bash ./mem-on-off-test.sh || echo "memory-hotplug selftests: [FAIL]"
/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/perf/bench/
DBuild3 perf-y += mem-functions.o
10 perf-$(CONFIG_X86_64) += mem-memcpy-x86-64-asm.o
11 perf-$(CONFIG_X86_64) += mem-memset-x86-64-asm.o
/tools/virtio/
Dvirtio_test.c42 struct vhost_memory *mem; member
125 dev->mem = malloc(offsetof(struct vhost_memory, regions) + in vdev_info_init()
126 sizeof dev->mem->regions[0]); in vdev_info_init()
127 assert(dev->mem); in vdev_info_init()
128 memset(dev->mem, 0, offsetof(struct vhost_memory, regions) + in vdev_info_init()
129 sizeof dev->mem->regions[0]); in vdev_info_init()
130 dev->mem->nregions = 1; in vdev_info_init()
131 dev->mem->regions[0].guest_phys_addr = (long)dev->buf; in vdev_info_init()
132 dev->mem->regions[0].userspace_addr = (long)dev->buf; in vdev_info_init()
133 dev->mem->regions[0].memory_size = dev->buf_size; in vdev_info_init()
[all …]
/tools/testing/selftests/powerpc/pmu/ebb/
Debb_lmr.c28 void ldmx_full_section(unsigned long *mem, int section) in ldmx_full_section() argument
34 ptr = &mem[(SECTION_LONGS * section) + i]; in ldmx_full_section()
50 int ebb_lmr_section_test(unsigned long *mem) in ebb_lmr_section_test() argument
61 ldmx_full_section(mem, i); in ebb_lmr_section_test()
/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
Dperf-bench.txt52 'mem'::
134 SUITES FOR 'mem'
186 *mem*::
Dtips.txt22 For memory address profiling, try: perf mem record / perf mem report
Dperf-report.txt121 If the --mem-mode option is used, the following sort keys are also available
123 symbol_daddr, dso_daddr, locked, tlb, mem, snoop, dcacheline.
130 - mem: type of memory access for the data at the time of the sample
134 And the default sort keys are changed to local_weight, mem, sym, dso,
135 symbol_daddr, dso_daddr, snoop, tlb, locked, see '--mem-mode'.
353 --mem-mode::
357 special event -e cpu/mem-loads/ or -e cpu/mem-stores/. See
358 'perf mem' for simpler access.
378 various information like hostname, OS and perf version, cpu/mem
Dperf-record.txt75 - a hardware breakpoint event in the form of '\mem:addr[/len][:access]'
78 be passed as follows: '\mem:addr[:[r][w][x]]'. len is the range,
81 'mem:0x1000:rw'.
83 'mem:0x1000/8:w'.
/tools/power/acpi/os_specific/service_layers/
Dosunixxf.c544 void *mem; in acpi_os_allocate() local
546 mem = (void *)malloc((size_t) size); in acpi_os_allocate()
547 return (mem); in acpi_os_allocate()
565 void *mem; in acpi_os_allocate_zeroed() local
567 mem = (void *)calloc(1, (size_t) size); in acpi_os_allocate_zeroed()
568 return (mem); in acpi_os_allocate_zeroed()
584 void acpi_os_free(void *mem) in acpi_os_free() argument
587 free(mem); in acpi_os_free()
/tools/perf/util/
Dparse-events.l131 %x mem
236 <mem>{
285 mem-loads { return str(yyscanner, PE_KERNEL_PMU_EVENT); }
286 mem-stores { return str(yyscanner, PE_KERNEL_PMU_EVENT); }
304 mem: { BEGIN(mem); return PE_PREFIX_MEM; }
Dcpumap.c541 unsigned int cpu, mem; in cpu__setup_cpunode_map() local
567 if (dent1->d_type != DT_DIR || sscanf(dent1->d_name, "node%u", &mem) < 1) in cpu__setup_cpunode_map()
582 cpunode_map[cpu] = mem; in cpu__setup_cpunode_map()
Dheader.c602 uint64_t mem; in write_total_mem() local
614 n = sscanf(buf, "%*s %"PRIu64, &mem); in write_total_mem()
616 ret = do_write(fd, &mem, sizeof(mem)); in write_total_mem()
631 u64 mem_total, mem_free, mem; in write_topo_node() local
643 if (sscanf(buf, "%*s %*d %31s %"PRIu64, field, &mem) != 2) in write_topo_node()
646 mem_total = mem; in write_topo_node()
648 mem_free = mem; in write_topo_node()
1671 uint64_t mem; in process_total_mem() local
1674 ret = readn(fd, &mem, sizeof(mem)); in process_total_mem()
1675 if (ret != sizeof(mem)) in process_total_mem()
[all …]
DBuild87 libperf-y += mem-events.o
Dprobe-finder.c1511 GElf_Shdr mem, *shdr; in debuginfo__get_text_offset() local
1530 shdr = gelf_getshdr(scn, &mem); in debuginfo__get_text_offset()
/tools/usb/usbip/libsrc/
Dnames.c162 void *mem; member
175 p->mem = calloc(1, size); in my_malloc()
176 if (!p->mem) { in my_malloc()
184 return p->mem; in my_malloc()
197 if (pool->mem) in names_free()
198 free(pool->mem); in names_free()
/tools/lguest/
Dlguest.c559 static unsigned long load_initrd(const char *name, unsigned long mem) in load_initrd() argument
575 map_at(ifd, from_guest_phys(mem - len), 0, st.st_size); in load_initrd()
581 verbose("mapped initrd %s size=%lu @ %p\n", name, len, (void*)mem-len); in load_initrd()
3220 unsigned long mem = 0, start, initrd_size = 0; in main() local
3254 mem = atoi(argv[i]) * 1024 * 1024; in main()
3261 guest_base = map_zeroed_pages(mem / getpagesize() in main()
3263 guest_limit = mem; in main()
3264 guest_max = guest_mmio = mem + DEVICE_PAGES*getpagesize(); in main()
3326 initrd_size = load_initrd(initrd_name, mem); in main()
3331 boot->hdr.ramdisk_image = mem - initrd_size; in main()
[all …]
/tools/testing/selftests/x86/
Dmpx-mini-test.c836 static __always_inline void mpx_movbnd2mem_helper(uint8_t *mem) in mpx_movbnd2mem_helper() argument
841 : : "c" (mem) in mpx_movbnd2mem_helper()
845 static __always_inline void mpx_movbnd_from_mem_helper(uint8_t *mem) in mpx_movbnd_from_mem_helper() argument
850 : : "c" (mem) in mpx_movbnd_from_mem_helper()