aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2020-01-13 18:22:44 +0100
committerIngo Molnar <mingo@kernel.org>2020-01-20 08:14:29 +0100
commitf0ef6523475f18ccd213e22ee593dfd131a2c5ea (patch)
treea0f2df98870bb25830765bc735ef282c83fefc0a /tools/perf/scripts/python/event_analyzing_sample.py
parentefi: Add tracking for dynamically allocated memmaps (diff)
downloadlinux-f0ef6523475f18ccd213e22ee593dfd131a2c5ea.tar.gz
linux-f0ef6523475f18ccd213e22ee593dfd131a2c5ea.zip
efi: Fix efi_memmap_alloc() leaks
With efi_fake_memmap() and efi_arch_mem_reserve() the efi table may be updated and replaced multiple times. When that happens a previous dynamically allocated efi memory map can be garbage collected. Use the new EFI_MEMMAP_{SLAB,MEMBLOCK} flags to detect when a dynamically allocated memory map is being replaced. Debug statements in efi_memmap_free() reveal: efi: __efi_memmap_free:37: phys: 0x23ffdd580 size: 2688 flags: 0x2 efi: __efi_memmap_free:37: phys: 0x9db00 size: 2640 flags: 0x2 efi: __efi_memmap_free:37: phys: 0x9e580 size: 2640 flags: 0x2 ...a savings of 7968 bytes on a qemu boot with 2 entries specified to efi_fake_mem=. [ ardb: added a comment to clarify that efi_memmap_free() does nothing when called from efi_clean_memmap(), i.e., with data->flags == 0x0 ] Signed-off-by: Dan Williams <dan.j.williams@intel.com> Signed-off-by: Ard Biesheuvel <ardb@kernel.org> Signed-off-by: Ingo Molnar <mingo@kernel.org> Link: https://lore.kernel.org/r/20200113172245.27925-13-ardb@kernel.org
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions
10-16 11:21:31 -0700'>2008-10-16initramfs: add option to preserve mtime from initramfs cpio imagesNye Liu1-0/+53 2008-10-16Kconfig: eliminate "def_bool n" constructsJan Beulich7-41/+19 2008-10-16wait: kill is_sync_wait()Tejun Heo2-21/+2 2008-10-16vsprintf: use new vsprintf symbolic function pointer formatBjorn Helgaas3-10/+14 2008-10-16fix random typosDanny ter Haar3-6/+7 2008-10-16identify_ramdisk_image(): correct typo about return value in commentGeert Uytterhoeven1-1/+1 2008-10-16nubus: fix mis-indented statementIlpo Järvinen1-1/+1 2008-10-16Fix Documentation/filesystems/ramfs-rootfs-initramfs.txtfrans1-1/+1 2008-10-16eeepc: depends on RFKILLRandy Dunlap1-0/+1 2008-10-16drivers/misc: Use DIV_ROUND_UPJulia Lawall1-1/+1 2008-10-16init.h: remove long-dead __setup_null_param() macroRobert P. J. Day1-4/+0 2008-10-16kernel/dma.c: remove a CVS keywordAdrian Bunk1-1/+1 2008-10-16include/linux/mount.h: remove CVS keywordAdrian Bunk1-2/+0 2008-10-16misc: replace __FUNCTION__ with __func__Harvey Harrison6-8/+8 2008-10-16include: replace __FUNCTION__ with __func__Harvey Harrison21-35/+35 2008-10-16olpc: olpc_battery.c sparse endian annotationsHarvey Harrison1-12/+8 2008-10-16uml: remove the dead TTY_LOG codeAdrian Bunk3-232/+0 2008-10-16pm: document use of RTC in pm_traceFrans Pop1-0/+18 2008-10-16pm: rework disabling of user mode helpers during suspend/hibernationRafael J. Wysocki5-38/+58 2008-10-16alpha: notify_cpu_starting() compile fixletAlexey Dobriyan1-0/+1 2008-10-16Alpha Miata: remove dead URLAdrian Bunk1-2/+1 2008-10-16asm-h8300/md.h: remove CVS keywordAdrian Bunk1-1/+1 2008-10-16h8300: GENERIC_BUG supportYoshinori Sato6-10/+25 2008-10-16h8300: update timer handler - misc updateYoshinori Sato4-83/+97 2008-10-16h8300: update timer handler - new filesYoshinori Sato6-0/+397 2008-10-16h8300: update timer handler - delete filesYoshinori Sato10-310/+0 2008-10-16uclinux: fix gzip header parsing in binfmt_flat.cVolodymyr G. Lukiianyk1-3/+3 2008-10-16mm: do_generic_file_read() never gets a NULL 'filp' argumentKrishna Kumar1-2/+1 2008-10-16hugetlb: handle updating of ACCESSED and DIRTY in hugetlb_fault()David Gibson1-5/+18 2008-10-16mm/page_alloc.c:free_area_init_nodes() fix inappropriate use of enumAndrew Morton1-1/+1 2008-10-16memrlimit: cgroup mm owner callback changes to add task infoBalbir Singh3-7/+9