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
pridist.d(1m)							   USER COMMANDS						     pridist.d(1m)

NAME
pridist.d - process priority distribution. Uses DTrace. SYNOPSIS
pridist.d DESCRIPTION
This is a simple DTrace script that samples at 1000 Hz which process is on the CPUs, and what the priority is. A distribution plot is printed. With priorities, the higher the priority the better chance the process (actually, thread) has of being scheduled. This idea came from the script /usr/demo/dtrace/profpri.d, which produces similar output for one particular PID. Since this uses DTrace, only users with root privileges can run this command. EXAMPLES
This samples until Ctrl-C is hit. # pridist.d FIELDS
CMD process name PID process ID value process priority count number of samples of at least this priority BASED ON
/usr/demo/dtrace/profpri.d DOCUMENTATION
DTrace Guide "profile Provider" chapter (docs.sun.com) See the DTraceToolkit for further documentation under the Docs directory. The DTraceToolkit docs may include full worked examples with ver- bose descriptions explaining the output. EXIT
pridist.d will sample until Ctrl-C is hit. SEE ALSO
dispadmin(1M), dtrace(1M) version 0.90 Jun 13, 2005 pridist.d(1m)