News for hackers. Stuff that matters.
Re:Apple's new Processor Trace instrument is incredible by astrange on Saturday August 16, 2025 @11:45PM (#44928674)
The most useful performance tool on macOS is spindump, which is just a straightforward whole-system CPU sampler. Second most useful is MallocStackLogging.

Other OSes have those too, but they're harder to use and the interfaces aren't as good.

Re:Apple's new Processor Trace instrument is incredible by viraptor on Sunday August 17, 2025 @01:58AM (#44929231)
The most useful tool was dtrace... Until Apple killed it with M2.
Re:Apple's new Processor Trace instrument is incredible by astrange on Sunday August 17, 2025 @03:51AM (#44929742)
That's overkill for most things since it relies on being able to patch running kernel code, which is also the definition of an RCE exploit.

I think it should work if you run `bputil -c`? Didn't try it though.

Re:Apple's new Processor Trace instrument is incredible by viraptor on Sunday August 17, 2025 @05:13AM (#44930099)
It just doesn't work at all since M2. I've got a bug report open and confirmed and Apple officially does not care anymore. If you try to run it, it will crash your whole system.
Re:Apple's new Processor Trace instrument is incredible by Someone on Sunday August 17, 2025 @07:20AM (#44930809)
> That's overkill for most things since it relies on being able to patch running kernel code, which is also the definition of an RCE exploit.

The idea of dtrace is that you can do that, yes, but to that, you need to be authorized, and the things you can do are (supposed to be) limited to looking to see what’s happening in the system. You can read arguments, but can’t, for example, change the arguments of a system call or disable authorization checks on system calls.

Re:Apple's new Processor Trace instrument is incredible by astrange on Sunday August 17, 2025 @02:26PM (#44933741)
The reason dtrace doesn't work by default is the kernel memory is locked down so nothing can write to it. There are no exceptions to this even if you're authorized.

(Or rather, the exception requires restarting the machine to turn the security off.)

Re:Apple's new Processor Trace instrument is incredible by dwattttt on Sunday August 17, 2025 @06:31AM (#44930525)
Windows Performance Analyser is pretty amazing. Not the simplest tool to use, but not particularly hard. Bruce Dawson's blog (https://randomascii.wordpress.com) has lots of articles using it.