Skip to content

Commit

Permalink
Replace the completely arbitrary '3' with '9' for the number of frame…
Browse files Browse the repository at this point in the history
…s to

skip using the DTrace 'profile' provider on ARM.  This causes stack traces
to skip various driver-and callout-related things as they do on x86, where
the likewise arbitrary values are '6' (32-bit) and '10' (64-bit) for
similar sorts of reasons.

MFC after:	3 days
Sponsored by:	DARPA, AFRL
  • Loading branch information
rwatson committed Mar 15, 2015
1 parent 2fdf486 commit ec1dafc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sys/cddl/dev/profile/profile.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ struct profile_probe_percpu;

#ifdef __arm__
/* bogus */
#define PROF_ARTIFICIAL_FRAMES 3
#define PROF_ARTIFICIAL_FRAMES 9
#endif

typedef struct profile_probe {
Expand Down

0 comments on commit ec1dafc

Please sign in to comment.