Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8205407
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T08:13:39+00:00 2026-06-07T08:13:39+00:00

I have a mid-2009 MacBook Pro and a new 2012 MacBook Pro and I

  • 0

I have a mid-2009 MacBook Pro and a new 2012 MacBook Pro and I am in the process of learning DTrace ( a pretty amazing tool). When I calculate aggregates on the new 2012 MBP, the aggregates don’t print out.

sudo dtrace -n 'syscall:::entry { @[execname] = count() }'

On my mid-2009 MBP, it shows something like:

  usbmuxd                                                           1
  GrowlHelperApp                                                    2
  imklaunchagent                                                    2
  installd                                                          2
  stackshot                                                         2
  ...

The 2012 MBP doesn’t show anything.

I added a printf in a BEING and END probe to see if the END probe would even fire like so:

BEGIN
{
    printf("Hi!");
}

syscall:::entry
{
   @[execname] = count();
}

END
{
    printf("Bye!")
}

On the mid-2009 MBP both probes fired and printed and on the 2012 MBP only the BEGIN probe fired. The END never fired.

Both MBPs are running Lion 10.7.3. I’m not sure what to try next. The only difference that comes to mind right now is that I haven’t installed the developer command line tools on the 2012 MBP. That just doesn’t make sense to me though and is a shot in the dark.

Any help or ideas would be appreciated. Thanks.

=============[ Enabled Root Account ]====================

So I enabled the root account and re-ran the command

sudo dtrace -n 'syscall:::entry { @[execname] = count() }'

with no success but if I do

su
dtrace -n 'syscall:::entry { @[execname] = count() }'

it works!

=============[ kill -s INT ]=============================

I did a little more experimenting. If I run:

sudo kill -s INT [pid of dtrace]

everything works and the output is displayed.

If I run:

sudo kill -s INT [pid of sudo running dtrace]

this also works!

But if I use control-c in the terminal, it doesn’t
show the output.

What is the difference between control-c and kill -s INT?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T08:13:40+00:00Added an answer on June 7, 2026 at 8:13 am

    I noticed that on linux too.

    Ctrl-C doesn’t work if dtrace is spawned by sudo.

    If you sudo -i to get a root shell and then invoke dtrace it works.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a page that has pretty heavy (mid-weight rather) canvas operations going on.
I have been slowing learning and building my first android app. I'm VERY new
We have a table like this: id mid mult tr result ---------------------------- 1 1
I have a collection of .html files created in the mid-90s, which include a
I have background music for some songs available in both .MID and .KAR formats,
I have a class with members: std::string mName; boost::uuids::uuid mId; In the constructor I
We have a mid-size SQL Server based application that has no indexes defined. Not
I have some mid-large project that is actively using boost libraries and, hence, suffers
I have a mid-size Spring application and I want to insert key/value pairs into
I have just created a mid-sized web-application using Java, a custom MVC framework, javascript.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.