1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-17 10:26:15 +00:00

Adjust PROF_ARTIFICIAL_FRAMES in the DTrace profile provider on ARM to

skip 10, rather than 9, frames.  This appears to work quite well in
practice on the BeagleBone Black, so remove a comment about the value
being bogus and replace it with a slightly less negative one.  However,
the number of frames to skip is quite sensitive to details of the timer
and interrupt handling paths, so this is necessarily fragile -- but no
more so than on x86.

Sponsored by:	DARPA, AFRL
This commit is contained in:
Robert Watson 2015-04-25 15:43:12 +00:00
parent cad3cc1310
commit a12df97ed2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=281983

View File

@ -134,8 +134,10 @@ struct profile_probe_percpu;
#endif
#ifdef __arm__
/* bogus */
#define PROF_ARTIFICIAL_FRAMES 9
/*
* At least on ARMv7, this appears to work quite well.
*/
#define PROF_ARTIFICIAL_FRAMES 10
#endif
typedef struct profile_probe {