PID Provider dtrace script


 
Thread Tools Search this Thread
Operating Systems Solaris PID Provider dtrace script
# 1  
Old 10-26-2010
PID Provider dtrace script

I'm just starting to mess about with dtrace on Solaris. How do I configure a probe in a PID provider dtrace script to trigger when the process being traced exits?

I've tried
Code:
pid$1:::exit

where $1 is the PID but I get
Code:
'exit' is an invalid probe name

Login or Register to Ask a Question

Previous Thread | Next Thread

5 More Discussions You Might Find Interesting

1. IP Networking

Flood in the inner circle of provider's Internet

The hardware in the inner circle in the provider's network worked incorrectly and therefore there was flood for an hour. They said that it wouldn't repeat again anymore, and that that flood was not in our user network. Is this 100% correct? (As there was no Internet because of that flood we... (1 Reply)
Discussion started by: Xcislav
1 Replies

2. Shell Programming and Scripting

How to convert ip to DSL provider company name?

Hello, I am not sure this question is totally related to scripting. What I want to do is to match ip addresses with DSL provider company. It should extract ip addresses from log file (which is no problem) and ask the script to search each ip in regional internet registries source webpage.... (5 Replies)
Discussion started by: baris35
5 Replies

3. UNIX for Dummies Questions & Answers

Need to get pid of a process and have to store the pid in a variable

Hi, I need to get the pid of a process and have to store the pid in a variable and i want to use this value(pid) of the variable for some process. Please can anyone tell me how to get the pid of a process and store it in a variable. please help me on this. Thanks in advance, Amudha (7 Replies)
Discussion started by: samudha
7 Replies

4. UNIX for Dummies Questions & Answers

Session PID & socket connection pid

1. If I use an software application(which connects to the database in the server) in my local pc, how many PID should be registered? Would there be PID for the session and another PID for socket connection? 2. I noticed (through netstat) that when I logged in using the my software application,... (1 Reply)
Discussion started by: pcx26
1 Replies

5. Programming

printing ppid,child pid,pid

question: for the below program i just printed the value for pid, child pid and parent pid why does it give me 6 values? i assume ppid is 28086 but can't figure out why there are 5 values printed instead of just two! can someone comment on that! #include<stdio.h> #define DIM 8 int... (3 Replies)
Discussion started by: a25khan
3 Replies
Login or Register to Ask a Question
dtrace(7D)							      Devices								dtrace(7D)

NAME
dtrace - DTrace dynamic tracing facility DESCRIPTION
The dtrace driver provides the dynamic instrumentation and tracing facilities for the DTrace software, as well as the built-in dtrace provider. The dtrace driver is not a public interface and you access the instrumentation offered by this provider through DTrace tools such as dtrace(1M). Refer to the Solaris Dynamic Tracing Guide for a description of the public documented interfaces available for the DTrace facility and dtrace provider probes. ATTRIBUTES
See attributes(5) for a description of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWdtrp | +-----------------------------+-----------------------------+ |Interface Stability |Private | +-----------------------------+-----------------------------+ SEE ALSO
dtrace(1M), libdtrace(3LIB), attributes(5) Solaris Dynamic Tracing Guide SunOS 5.11 4 Sep 2003 dtrace(7D)