diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2013-08-19 08:39:31 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2013-08-19 08:39:31 +0000 |
commit | 4d12b0016700f01ead54dbac2a6a8d89534f7351 (patch) | |
tree | ffbbd419791c9b58952e6b202d889ba616981506 /sys/arch/powerpc/include | |
parent | fe8c64bdb8bedc45a8b2cdd91c6f573e6ed394c3 (diff) |
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@
Diffstat (limited to 'sys/arch/powerpc/include')
-rw-r--r-- | sys/arch/powerpc/include/profile.h | 4 |
1 files changed, 1 insertions, 3 deletions
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)) |