From 675fd4eecd75a7156c83bb814ecfdbbcfbf27ea1 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Wed, 20 Apr 2016 00:32:15 +0200 Subject: Add kernel profiling through sampling * NEWS: Advertise feature. * configfrac.ac (--enable-kernsample): Add option. * kern/pc_sample.h (take_pc_sample): Add usermode and pc parameter. (take_pc_sample_macro): Take usermode and pc parameters, pass as such to take_pc_sample. * kern/pc_sample.c (take_pc_sample): Use pc parameter when usermode is 1. * kern/mach_clock.c (clock_interrupt): Add pc parameter. Pass usermode and pc to take_pc_sample_macro call. * i386/i386/hardclock.c (hardclock): Pass regs->eip to clock_interrupt call on normal interrupts, NULL on interrupt interrupt. * vm/vm_fault.c (vm_fault_cleanup): Set usermode to 1 and pc to NULL in take_pc_sample_macro call. --- NEWS | 2 ++ 1 file changed, 2 insertions(+) (limited to 'NEWS') diff --git a/NEWS b/NEWS index e80cf460..12394824 100644 --- a/NEWS +++ b/NEWS @@ -14,6 +14,8 @@ heap addressing important scalability issues. A synchronization mechanism was added, similar to the Linux futexes, to allow efficient and powerful userland synchronization. + +Support for profiling kernel code from userland through sampling was added. Version 1.6 (2015-10-31) -- cgit v1.2.3