From 4d12b0016700f01ead54dbac2a6a8d89534f7351 Mon Sep 17 00:00:00 2001 From: Martin Pieuchot Date: Mon, 19 Aug 2013 08:39:31 +0000 Subject: Mark all the C functions called in real mode as non instrumented and remove the check for address relocation from MCOUNT_ENTER. This fix kernel profiling on powerpc architectures, broken since the buffers are per cpu. ok miod@ --- sys/arch/powerpc/include/profile.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'sys/arch/powerpc/include') diff --git a/sys/arch/powerpc/include/profile.h b/sys/arch/powerpc/include/profile.h index 2c13cac5766..9c27d9d8ed5 100644 --- a/sys/arch/powerpc/include/profile.h +++ b/sys/arch/powerpc/include/profile.h @@ -1,4 +1,4 @@ -/* $OpenBSD: profile.h,v 1.6 2003/06/03 01:35:30 drahn Exp $ */ +/* $OpenBSD: profile.h,v 1.7 2013/08/19 08:39:30 mpi Exp $ */ /* * Copyright (c) 1998 Dale Rahn. @@ -70,8 +70,6 @@ #ifdef _KERNEL #define MCOUNT_ENTER \ __asm volatile("mfmsr %0" : "=r"(s)); \ - if ((s & (PSL_IR | PSL_DR)) != (PSL_IR | PSL_DR)) \ - return; /* prof not possible in real mode */ \ s &= ~PSL_POW; \ __asm volatile("mtmsr %0" :: "r"(s & ~PSL_EE)) -- cgit v1.2.3