Side note is that allocations sizes seem also out of whack, will be sorted out separately.
Duplication in creation of proc/thread0 will have to be sorted out as well but that's beyond the scope.
Differential D27311
dtrace: stop using eventhandlers for the part compiled into the kernel mjg on Nov 22 2020, 4:01 AM. Authored by Tags None Referenced Files
Subscribers
Details Side note is that allocations sizes seem also out of whack, will be sorted out separately. Duplication in creation of proc/thread0 will have to be sorted out as well but that's beyond the scope.
Diff Detail
Event TimelineComment Actions I am fine with conversion. What surprises me is that just the presence of the hooks implies mallocs. That said, why not piggy-back dtrace memory on struct thread, as we already have the scheduler data placed that way, see sched_sizeof_thread() and sched_sizeof_proc(). Just put one more addend into the zone creation size argument.
Comment Actions threads are NOFREE so this would add more memory which can't be reclaimed until reboot |