Changeset View
Changeset View
Standalone View
Standalone View
sys/cddl/dev/profile/profile.c
Show First 20 Lines • Show All 98 Lines • ▼ Show 20 Lines | |||||
* allow for a manual override in case we get it completely wrong. | * allow for a manual override in case we get it completely wrong. | ||||
*/ | */ | ||||
#ifdef __amd64 | #ifdef __amd64 | ||||
#define PROF_ARTIFICIAL_FRAMES 10 | #define PROF_ARTIFICIAL_FRAMES 10 | ||||
#else | #else | ||||
#ifdef __i386 | #ifdef __i386 | ||||
#define PROF_ARTIFICIAL_FRAMES 6 | #define PROF_ARTIFICIAL_FRAMES 6 | ||||
#else | #else | ||||
#ifdef __sparc | #ifdef __sparc | ||||
emaste: I deleted this and the sparc comment above in 64a790d264808116469914c19265e905b3929e00… | |||||
#ifdef DEBUG | #ifdef DEBUG | ||||
#define PROF_ARTIFICIAL_FRAMES 4 | #define PROF_ARTIFICIAL_FRAMES 4 | ||||
#else | #else | ||||
#define PROF_ARTIFICIAL_FRAMES 3 | #define PROF_ARTIFICIAL_FRAMES 3 | ||||
#endif | #endif | ||||
#endif | #endif | ||||
#endif | #endif | ||||
#endif | #endif | ||||
#ifdef __mips | #ifdef __mips | ||||
Not Done Inline ActionsThere is also a duplicate __mips that could be removed after this has been committed andrew: There is also a duplicate `__mips` that could be removed after this has been committed | |||||
/* | /* | ||||
* This value is bogus just to make module compilable on mips | * This value is bogus just to make module compilable on mips | ||||
*/ | */ | ||||
#define PROF_ARTIFICIAL_FRAMES 3 | #define PROF_ARTIFICIAL_FRAMES 3 | ||||
#endif | #endif | ||||
#ifdef __powerpc__ | #ifdef __powerpc__ | ||||
/* | /* | ||||
* This value is bogus just to make module compilable on powerpc | * This value is bogus just to make module compilable on powerpc | ||||
*/ | */ | ||||
#define PROF_ARTIFICIAL_FRAMES 3 | #define PROF_ARTIFICIAL_FRAMES 3 | ||||
#endif | #endif | ||||
struct profile_probe_percpu; | struct profile_probe_percpu; | ||||
#ifdef __mips | #ifdef __mips | ||||
Not Done Inline ActionsHere andrew: Here | |||||
/* bogus */ | /* bogus */ | ||||
#define PROF_ARTIFICIAL_FRAMES 3 | #define PROF_ARTIFICIAL_FRAMES 3 | ||||
#endif | #endif | ||||
#ifdef __arm__ | #ifdef __arm__ | ||||
#define PROF_ARTIFICIAL_FRAMES 3 | #define PROF_ARTIFICIAL_FRAMES 3 | ||||
#endif | #endif | ||||
#ifdef __aarch64__ | #ifdef __aarch64__ | ||||
/* TODO: verify */ | #define PROF_ARTIFICIAL_FRAMES 12 | ||||
#define PROF_ARTIFICIAL_FRAMES 10 | |||||
#endif | #endif | ||||
#ifdef __riscv | #ifdef __riscv | ||||
/* TODO: verify */ | /* TODO: verify */ | ||||
#define PROF_ARTIFICIAL_FRAMES 10 | #define PROF_ARTIFICIAL_FRAMES 10 | ||||
#endif | #endif | ||||
typedef struct profile_probe { | typedef struct profile_probe { | ||||
▲ Show 20 Lines • Show All 567 Lines • Show Last 20 Lines |
I deleted this and the sparc comment above in 64a790d264808116469914c19265e905b3929e00, thinking that this change had already been committed. In any case this shouldn't be a conflict.