Software

OSes

Hey Insiders! DTrace can now run riot in Windows 10, if you really want it to

Open-source debugger takes to the stage in OS's next release


Windows 10 has been tweaked to let devs enjoy the delights of DTrace while chasing down pesky bugs.

Microsoft's Hari Pulapaka took to Twitter to share the news, though he swiftly followed it up with a blog post explaining that when he said "Windows 10", he actually meant "Insider Builds from 18342" onwards.

The move is the latest to demonstrate that Microsoft is far from the anti-open-source beast of old.

The next release of Windows 10 also has a change aimed specifically at getting the thing up and running on Linux Kernel-based Virtual Machines (KVM).

Microsoft tweaks Windows 10 on Arm64 to play nicely with KVM

READ MORE

To make things work, the Windows team added a new kernel extension driver, Traceext.sys, to expose the functionality required by DTrace. Pulapaka explained: "The Windows kernel provides callouts during stackwalk or memory accesses which are then implemented by the trace extension."

At this point, security fans will be stroking their chins thoughtfully. Allowing DTrace to run riot in the kernel stomps on some of Windows' built-in security. As DTrace can effectively make changes in functions being analysed, Microsoft's PatchGuard must be disabled, which Pulapaka confirmed on Twitter.

PatchGuard, formerly known as Kernel Patch Protection (KPP), is designed to stop miscreants from tinkering with the Windows kernel and will also stop DTrace from doing its thing.

Pulapaka remarked that the team knew what was needed to be done to make the two co-exist, but that it was "a lot of work" and they were keen for developers to get their hands on the new toys.

As it stands, it is important to understand that booting with a kernel debugger attached will leave PatchGuard disabled. SecureBoot also needs to be disabled to actually set the necessary options.

DTrace has its roots in Sun Microsystems' Solaris operating system, allowing developers to troubleshoot problems in real time and see what processes are doing in the guts of the system, either in user or kernel mode. It also allows devs to dynamically add tracepoints, detect deadlocks and so on.

The journey to Windows from Solaris was a bumpy one. After Oracle acquired Sun, the tool floundered somewhat until Big Red eventually open-sourced the thing. At its Ignite event last year, Microsoft announced that it had ported DTrace to Windows.

"DTrace on Windows" lurks under OpenDTrace on GitHub, and Microsoft plans to merge its changes over the coming months. ®

Send us news
1 Comment

Microsoft to use Windows 11 Start menu as a billboard with app ads for Insiders

This wasn't what most had in mind when Redmond promised to make the feature 'great again'

Want to keep Windows 10 secure? This is how much Microsoft will charge you

Hint: It will keep going up

Microsoft claims it didn't mean to inject Copilot into Windows Server 2022 this week

AI assistant turns up via Edge update. It was an accident. This time...

Microsoft cannot keep its own security in order, so what hope for its add-ons customers?

Secure-by-default... if your pockets are deep enough

Microsoft lifts years-old compatibility hold for Windows 11

It probably wasn't only sound driver problems that kept users away

Open source versus Microsoft: The new rebellion begins

Neither side can afford to lose, but one surely must

Microsoft really does not want Windows 11 running on ancient PCs

Even tighter requirements, so it's time to put old hardware out to pasture... or find an alternative OS

Microsoft gets new Windows boss as Start Menu man Parakhin 'to explore new roles'

More MS moves just a week after new AI unit and other changes announced

German state ditches Windows, Microsoft Office for Linux and LibreOffice

'Complete digital sovereignty' ... sounds familiar

Now all Windows 11 users are getting adverts to 'make the Start menu great again'

And you thought the Bing begging was annoying

October 2025 will be a support massacre for a bunch of Microsoft products

Not just Windows 10. Don't forget about Exchange Server, Skype for Business, and all those Office installations

Wing Commander III changed how the copy hotkey works in Windows 95

No, boss, I'm not just playing a game. I'm testing compatibility. Honest