1 Reply Latest reply: Jun 25, 2012 6:53 AM by Wil RSS

    dtrace script failed

    873670
      I have a script

      --------------------------------------
      -----------------------------------------------------------
      #!/usr/sbin/dtrace -s


      pid$target::__1c2n6FL_pv_:return
      {
      printf("--malloc stack------\n");
      ustack();
      printf("\n");
      printf("%s: %x\n", probefunc, arg1);
      printf("--end---------------\n");
      }

      pid$target::__1c2k6Fpv_v_:entry
      {
      printf("%s: %x\n", probefunc, arg0);
      }
      -----------------------------------------------------------


      When I start it ./script.d -p 19781 > /tmp/dump.txt it failes with error message

      dtrace: failed to compile script ./script.d: line 4: probe description pid19781::__1c2n6FL_pv_:return does not match any probes

      19781 is correct PID. Guy who provided a script says it works in his environment.
      Does anybody has an idea what is the problem

      Thanks a lot
      Mario