diff options
author | Gleb Smirnoff <glebius@FreeBSD.org> | 2019-11-21 23:55:43 +0000 |
---|---|---|
committer | Gleb Smirnoff <glebius@FreeBSD.org> | 2019-11-21 23:55:43 +0000 |
commit | 329377f44b01fc1ea35bb71e473ee83ed8cab1b6 (patch) | |
tree | da162a7ec72b5274dc6eaa70b5008d9cc2321096 /sys/kern/kern_timeout.c | |
parent | 8e11e76e124180dd6b7669a55bd92288ee89e84d (diff) | |
download | src-329377f44b01fc1ea35bb71e473ee83ed8cab1b6.tar.gz src-329377f44b01fc1ea35bb71e473ee83ed8cab1b6.zip |
cc_ktr_event_name is used only with KTR
Notes
Notes:
svn path=/head/; revision=354988
Diffstat (limited to 'sys/kern/kern_timeout.c')
-rw-r--r-- | sys/kern/kern_timeout.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/kern/kern_timeout.c b/sys/kern/kern_timeout.c index b1fb59159e28..5ee390f3fce9 100644 --- a/sys/kern/kern_timeout.c +++ b/sys/kern/kern_timeout.c @@ -175,7 +175,9 @@ struct callout_cpu { void *cc_cookie; u_int cc_bucket; u_int cc_inited; +#ifdef KTR char cc_ktr_event_name[20]; +#endif }; #define callout_migrating(c) ((c)->c_iflags & CALLOUT_DFRMIGRATION) @@ -335,8 +337,10 @@ callout_cpu_init(struct callout_cpu *cc, int cpu) cc->cc_firstevent = SBT_MAX; for (i = 0; i < 2; i++) cc_cce_cleanup(cc, i); +#ifdef KTR snprintf(cc->cc_ktr_event_name, sizeof(cc->cc_ktr_event_name), "callwheel cpu %d", cpu); +#endif if (cc->cc_callout == NULL) /* Only BSP handles timeout(9) */ return; for (i = 0; i < ncallout; i++) { |