Just to make sure - there is no way to profile cpu inside DriverKit process?
What's the actual issue you're having? My immediate thought is that having a DEXT use significant CPU is more than a little strange.
Hello. I'm trying to use this feature with DriverKit and currently it seems like a dead end:
https://developer.apple.com/documentation/xcode/analyzing-cpu-usage-with-processor-trace
I've never actually tried, but I'm not surprised that it doesn't work. To start with, I don't know how well DriverKit's platform has been integrated into Xcode, so it's possible that Instruments might immediately stop at that point. Further complicating things, by design, DEXTs are "cut off" from the rest of the system to a degree that no other component is, which is why they're built as their own platform. Beyond that, most of a DEXT's core function calls are actually direct calls into the kernel, which makes normal CPU profiling somewhat misleading. If you really need to do this kind of analysis, you probably need to be thinking of this in terms of kernel level profiling using tools like DTrace.
__
Kevin Elliott
DTS Engineer, CoreOS/Hardware