question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Mac: Write scripts\guide for capturing file system events when problems occur

See original GitHub issue

On Windows we can ask users to run procmon to capture the I/O that’s happening on their system when errors occur.

It sounds like dtrace might be able to get us something similar on Mac, but work needs to be done to determine how we should configure\run dtrace to get the information we’re interested in.

The issue encompasses:

  • Researching dtrace and determining what useful information can be captured and how to capture it
  • Creating script(s) to start\stop dtrace with the options we need
  • Writing up a guide on how to collect\analyze data from dtrace

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
wilbakercommented, Dec 5, 2018

@pmj, I think there’s actually one more item to call out as being within the scope of this task:

  • If the amount of useful information we can get from dtrace depends on whether SIP is enabled\disabled, write scripts that can take advantage of the extra information available when SIP is disabled. This can be either a separate script, or as an option for a single script (that can run in both SIP modes). This will be helpful for diagnosing issues that we can reproduce on machines where SIP is disabled.

/ cc: @jrbriggs, @nickgra

0reactions
jrbriggscommented, Feb 12, 2019

Thanks @pmj. I’m going to consider this issue closed now, and if we find that we want more data when investigating support issues we’ll create other issues to track that work.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Mac Automation Scripting Guide: Using Handlers/Functions
Handlers provide a way to organize your code by breaking it up into smaller, manageable, modular chunks. This can be useful when troubleshooting...
Read more >
System Events file list - AppleScript | Mac OS X
Hi, Trying to use System Events seems to be harder than using Finder, but its a little faster I think. Properties in System...
Read more >
macOS Incident Response | Part 1: Collecting Device, File ...
We'll get started today, in Part 1, by explaining how to quickly gather up vital data about file events, system configuration and the ......
Read more >
OSX: Hook file read event - api
Notably this tool is used by things like Spotlight to watch activity on the filesystem for new, interesting files.
Read more >
Brendan's blog » Top 10 DTrace scripts for Mac OS X
In this post, I'll cover the top ten Mac OS X DTrace scripts that I ... and minor numbers iosnoop -m / #...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found