summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/include/profile.h
Commit message (Collapse)AuthorAgeFilesLines
* Add user-space profiling support. Kernel profiling still todo.grehan2005-12-291-8/+82
| | | | Obtained from: NetBSD
* Unbreak the PowerPC GENERIC build.jkoshy2005-06-111-2/+6
| | | | Reviewed by: delphij
* /* -> /*- for license, minor formatting changesimp2005-01-071-1/+1
|
* Move the kernel-specific logic to adjust frompc from MI to MD. Formarcel2004-08-271-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | these two reasons: 1. On ia64 a function pointer does not hold the address of the first instruction of a functions implementation. It holds the address of a function descriptor. Hence the user(), btrap(), eintr() and bintr() prototypes are wrong for getting the actual code address. 2. The logic forces interrupt, trap and exception entry points to be layed-out contiguously. This can not be achieved on ia64 and is generally just bad programming. The MCOUNT_FROMPC_USER macro is used to set the frompc argument to some kernel address which represents any frompc that falls outside the kernel text range. The macro can expand to ~0U to bail out in that case. The MCOUNT_FROMPC_INTR macro is used to set the frompc argument to some kernel address to represent a call to a trap or interrupt handler. This to avoid that the trap or interrupt handler appear to be called from everywhere in the call graph. The macro can expand to ~0U to prevent adjusting frompc. Note that the argument is selfpc, not frompc. This commit defines the macros on all architectures equivalently to the original code in sys/libkern/mcount.c. People can take it from here... Compile-tested on: alpha, amd64, i386, ia64 and sparc64 Boot-tested on: i386
* Moved most of the "MI" definitions and declarations from <machine/profile.h>bde2004-05-191-11/+0
| | | | | | to <sys/gmon.h>. Cleaned them up a little by not attempting to ifdef for incomplete and out of date support for GUPROF in userland, as in the sparc64 version.
* Stub profile.h, required for userland builds.grehan2003-01-181-0/+65
Approved by: Benno
OpenPOWER on IntegriCloud