Welcome to Linux Knowledge Base and Tutorial
"The place where you learn linux"
Karen Lilly Creations

 Create an AccountHome | Submit News | Your Account  

Tutorial Menu
Linux Tutorial Home
Table of Contents

· Introduction to Operating Systems
· Linux Basics
· Working with the System
· Shells and Utilities
· Editing Files
· Basic Administration
· The Operating System
· The X Windowing System
· The Computer Itself
· Networking
· System Monitoring
· Solving Problems
· Security
· Installing and Upgrading
· Linux and Windows

Man Pages
Linux Topics
Test Your Knowledge

Site Menu
Site Map
Copyright Info
Terms of Use
Privacy Info
Masthead / Impressum
Your Account

Private Messages

News Archive
Submit News
User Articles
Web Links


The Web

Who's Online
There are currently, 71 guest(s) and 0 member(s) that are online.

You are an Anonymous user. You can register for free by clicking here




       dprobes {--help}

       dprobes {--version}

       dprobes {--insert|-i <probe-program-file>}
               [-D key = value]
               [--sym|-s <symbol-file>]
               [--group = <group_list>]
               [--type = <type_list>]
               [--merge | --replace]
               [--log|-l {[ PROCNAME [ PID [ UID [ SSESP
               [ CSEIP [ PSW [ UPSW [ TSC ]]]]]]]] | ALL} ]
               [--log-target { KLOG | COM1 | COM2 | LTT | EVL}]

       dprobes {--remove|-r}
               {--name <loadable_module_name>| --all|-a}

       dprobes {--getvars|-g}
               {--name <loadable_module_name>| --all|-a}
               [--local | --global] [--reset]

       dprobes {--query|-q}
               {--name <loadable_module_name>| --all|-a}

       dprobes {--build-ppdf|-b <rpn_file_name> }
               [--outfile|-o <ppdf_file_name> ]
               [-D key = value]
               [--sym|-s <symbol_file_name> ]

       dprobes {--apply-ppdf|-p <ppdf_file_name> }
               [--group = <group_list> ]
               [--type = <type_list> ]
               [--merge | --replace]
               [--log|-l <[ PROCNAME [ PID [ UID [ SSESP
               [ CSEIP [ PSW [ UPSW [ TSC ]]]]]]]] | ALL} ]
               [--log-target < KLOG | COM1 | COM2 | LTT | EVL>]


       The dprobes facility can be used to insert software probes
       dynamically into executing code modules. When a  probe  is
       fired,  a  user  written  probe-handler  is  executed. The
       probe-handler is a program  written  in  an  assembly-like
       language,  based  on  the  Reverse  Polish Notation (RPN).
       Instructions are provided to enable the  probe-handler  to
       access  all the hardware registers, system data structures
       can be specified to be fired on a specific type of  memory
       access  (execute|write|readwrite|io).  Watchpoints are not
       currently available for S/390.

        Another interesting aspect of the Dynamic Probes facility
       is  that the probes are effective globally and they inter-
       operate well with other debuggers. This means that  probes
       placed  in  an  executable  module  will be applied on all
       instances of that executable, under  the  context  of  all
       For eg.:
       - if probes are placed in an executable program, they will
         be active in all instances of that program
       - if probes are placed in a shared library, they will be
         active under the context of all processes using that
         shared library
       - the probes will be effective even on those instances of
         the processes that may be running under the control of a

       Some  of the unique aspects of the Dynamic Probes facility
       - Probes can be placed almost anywhere
       - Probes can be placed in any executable code, including
         the kernel, even in interrupt handlers, kernel modules
       - Read access to all the hardware registers and write
         access to most of them.
       - Read/write access to any area in the virtual address
         space that is currently resident in the physical memory.
       - Probes placed on an executable program or shared library
         are active globally under the context of all processes
         executing it
       - Probes can be placed on programs that are being run
         under a debugger
       - DProbes can be essentially used as an enabler of other
         debugging facilities like kernel debugger, trace
         facility and crash dump. Kernel debugger and crash
         dump facility can be invoked from DProbes by using
         exit n rpn instruction. Data collected from DProbes can
         be directed to trace buffer.
       - DProbes can be used to monitor specific type of memory
         accesses using the watchpoint probes.

       At the heart of the mechanism is an interpreter which exe-
       cutes  a  "probe program" when a probe fires. A probe pro-
       gram is registered per executable module and contains  the
       probe  handlers  to  be  run for each probe placed in that

       dprobes --remove [remove-options]

       dprobes --getvars [getvars-options]

       dprobes --query [query-options]

       building ppdf:
       dprobes --build-ppdf probe-program-file [ppdf-options]

       applying ppdf:
       dprobes --apply-ppdf probe-definition-file [apply-options]

       dprobes --help
       dprobes --version


       The general form of a dprobes insert command is:

       dprobes --insert <probe-program-file>
               [-D key = value]
               [--sym <symbol-file>]
               [--group = <group_list>]
               [--type = <type_list>]
               [--merge | --replace]
               [--log < PROCNAME [ PID [ UID [ SSESP
               [ CSEIP [ PSW [ UPSW [ TSC ]]]]]]]] | ALL} ]
               [--log-target <KLOG | COM1 | COM2 | LTT | EVL>]

       This command will insert the probes specified in the given
       probe program.  Probes can be placed in the  Linux  kernel
       and kernel modules too.
       Note  :  Probes cannot be inserted on a file which is cur-
       rently being written to and attempts to write  to  a  file
       which has probes inserted will fail.

       -D key = value
       This  sub-option can be used for command line substitution
       for the Probe Program file. The key specifies  the  string
       in  the  probe  program  file  which  is to be replaced by
       value.  Refer to the dprobes.lang(8) man page for  details
       of substitution.

       --group  = <group_name>[,<group_name>[,<group_name>, ...]]
       should  be  present in the typedef field in the Probe Pro-
       gram File Header (See dprobes.lang(8) )

       Both group and type are optional on the command  line.  If
       nothing  is  specified  then all the probes present in the
       ppdf file will be applied.  If both  --group  AND   --type
       are  present then only the probes belonging to both one of
       the groups <group_name>  as  well  as  one  of  the  types
       <type_name> will be applied.
       These  options  are used to selectively insert a subset of
       the probes present in the specified RPN file,

       --sym = symbol-file (full path-name should be given)
       If the probe locations are specified symbolically  in  the
       probe program file, this option can be used to specify the
       file used to resolve the symbols.  For  probes  placed  on
       the  kernel,  this  file must be the System.map file.  For
       all other module types, the symbols can be  resolved  from
       the  corresponding  object file, shared library object, or
       executable, provided that symbol information  hasn't  been
       stripped from those binaries.

       This  option  can  be  used to add new probe points to the
       module which already has some probe points in it,  without
       having  to remove and reinsert.  If there are any existing
       probes for the loadable module specified by the probe pro-
       gram  file, they will be merged with the new probes.  If a
       new probe point is specified at the same location where an
       old  one  is  present,  then  the  old probe point will be
       removed and the new one will be effective.  Since this  is
       done  internally  by  removing and reinserting, there is a
       possibility to miss probe hits  in  the  interval  between
       removing  the  old points and inserting the merged points.
       Also the existing probe points will have their  hit  count
       reset when merging is done.

       This option can be used to replace the set of probe points
       for a module by a new set of points by using a  new  probe
       program file.

       This  option  specifies that opcode= statement is optional
       for probe points when their location  is  specified  by  a
       symbol.  If  the  probe point is specified by a symbol, we
       can be sure that it is  on  an  instruction  boundary,  in
       which case opcode verification becomes optional.

       [Not supported in this version]
       PROCNAME - log the process name for each probe

       PID      - log the pid of the process for which the
                  probe was hit

       UID      - log the uid of the process for which the
                  probe was hit

       CSEIP    - log caller's CS:EIP (IA32)

       SSESP    - log caller's SS:ESP (IA32)

       PSW      - log caller's PSW (S/390)

       UPSW      - log caller's user mode PSW. If the probe point
       is in the
                  kernel, then the psw of the program  that  made
              the call is stored.
                  Otherwise acts the same as PSW (S/390)

       TSC       - log Pentium high resolution Time Stamp Counter
                  log the STCK value (S/390),
                  or ignore if not supported by the hardware

       ALL      - log all special data

       By default, none of these will be added to the log record.

       --log-target <KLOG | COM1 | COM2 | LTT | EVL>

       After a probe is successfully executed, the logs generated
       by the probe handler will be written to the target  speci-
       fied by this option.

       Log  records  will  be  written  to the kernel log buffer.
       This is equivalent to a printk() statement in the  kernel.
       This may show up on the console if console_loglevel is low
       enough. It may also get  saved  in  the  /var/log/messages
       file if syslogd is running.

       Log will be directed to the serial port COM1 (IA32)

       Log will be directed to the serial port COM2 (IA32)

       The serial port logging options can be used to collect the
       log generated by one  machine  in  another  machine  using
       serial connections.

       The general form of a dprobes  command  for  removing  the
       probes is:

       dprobes --remove
              {--name=loadable_module_name | --all}
       dprobes remove command.

       One of the following options must be specified.

       If  the  loadable  module  name is specified, this command
       will remove all the probes inserted for this module.

       This option removes all the probes in the system.


       The general form of this dprobes command is:

       dprobes --getvars {[--name <loadable_module_name>] |--all}
               [--index = index1-index2]
               [--local | global]

       dprobes command for displaying the value of variables.

       --name = loadable_module_name
       This  option  will  list  the  values  of variables of the
       dynamic probes inserted for the specified loadable module.

       --index = index1-index2
       This option will retrieve the dynamic probe variables from
       index1 to index2. If this  option  is  not  specified  the
       default is to retrieve all variables.

       This option will zero out the variables specified

       This option will retrieve the values of local variables.

       This option will return the values of global variables.

       This option will list all the dynamic  probe  definitions,
       including  those  that  are  not currently active. If this
       option is not specified, only those probes that  are  cur-
       rently active and inserted will be listed.

       --name = loadable_module_name
       This  option  will  list all the dynamic probe definitions
       inserted for the specified loadable  module  i.e.  a  exe-
       cutable, shared object,kernel module etc.

       Will  provide  the  following details for each probe point
              - probe point number with in the loadable module,
              - major and minor codes for the probe point,
              - address of the probe point location,
              - opcode at the probe point location,
              - probe point status,
              - local variables.

       The probe point states could be one of the following:

           not yet applied as the module is not in memory
           applied successfully and is active
           not applied due to opcode mismatch
           not  applied   due   to   reentrancy   considerations.
           not applied because the probe on the specified
           opcode is not allowed.
           not applied due to invalid offset.
           disabled as probe is hit max-hit number of times
          permanently, due to recursion or due to explicit remove
          RPN command
          probe couldn't be inserted due to non availability of
          hardware debug register.
          The range of memory specified for the watchpoint probe
          is inconsistent with the ranges allowed by the

       dprobes --build-ppdf | -b <rpn_file_name>
              [--outfile | -o <ppdf_file_name>]
              [--sym | -s <symbol_file>]
              [-D key = value]

       -b = rpn_filename
       --build-ppdf = rpn_filename
       The dprobes buildppdf command. This  command  generates  a
       file  called  pre-built  probe  definition file which is a
       binary file consisting of all the details of an  rpn  file
       and  the  group  and  type  definitions present in the rpn
       file. This file can be used to selectively apply probes of
       some particular group or type or both.

       -o = ppdf_file_name
       --outfile = ppdf_file_name
       This  option  is  used  to specify an output ppdf filename
       instead of the default which is rpn_filename.rpn.ppdf

       -s = symbol_file
       --sym = symbol_file
       Same as the --sym option in the dprobes --insert  command.

       -D key = value
       Same as the -D option in the dprobes --insert command.


       This  command  works in the same way as insert command and
       thus it accepts all the options  accepted  by  the  insert
       except -D and --sym suboptions.
       See INSERT OPTIONS for details of the command line options
       of the  dprobes  insert  command  which  can  be  used  in
       --apply-ppdf also.

       The general form of a dprobes applyppdf command is:

       dprobes --apply-ppdf | -p <ppdf_file_name>
              [--group = <group_list>]
              [--type = <type_list>]
              [--merge | --replace]
              [--log <[ PROCNAME [ PID [ UID [ SSESP
              [ CSEIP [ PSW [ UPSW [ TSC ]]]]]]]] | ALL >]
              [--log-target < KLOG | COM1 | COM2 | LTT | EVL>]

       --apply-ppdf ppdf_file_name
       The  dprobes  applyppdf  command. This command is used for
       applying the probe using a pre-built probe definition file
       rather than using an rpn file.  This can be used to selec-
       tively apply probes of some particular group or type using
       the --group and --type options.
              dprobes -qax is invalid
              dprobes -q -a -x is valid

       The following options are not supported:
              Insert Options: --stop-cpus

       If  the name of any file contains any character other than
       [a-z,A-Z] then the name should  be  specified  in  double-
       quotes  and  double-quotes  should  be  given  with escape
       sequence in the --name and --insert options.
       For Example:
       If the file name is 3c59x.o  then it should  be  specified
       in the following manner:
       \"3c59x.o\" on the command line.


       Send all the bug-reports to:
              DProbes mailing list dprobes@oss.software.ibm.com


       IBM Corporation


       DProbes version: 3.6.4
       man pages last modified on: 27 May 2002


       Dynamic  Probes  is  licensed  under  GNU  General  Public
       License version 2 or later.

       Copyright (c)  International Business Machines Corp., 2000

                          Dynamic Probes               DPROBES(8)

An undefined database error occurred. SELECT distinct pages.pagepath,pages.pageid FROM pages, page2command WHERE pages.pageid = page2command.pageid AND commandid =

Show your Support for the Linux Tutorial

Purchase one of the products from our new online shop. For each product you purchase, the Linux Tutorial gets a portion of the proceeds to help keep us going.



Security Code
Security Code
Type Security Code

Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.

Help if you can!

Amazon Wish List

Did You Know?
You can get all the latest Site and Linux news by checking out our news page.


Tell a Friend About Us

Bookmark and Share

Web site powered by PHP-Nuke

Is this information useful? At the very least you can help by spreading the word to your favorite newsgroups, mailing lists and forums.
All logos and trademarks in this site are property of their respective owner. The comments are property of their posters. Articles are the property of their respective owners. Unless otherwise stated in the body of the article, article content (C) 1994-2013 by James Mohr. All rights reserved. The stylized page/paper, as well as the terms "The Linux Tutorial", "The Linux Server Tutorial", "The Linux Knowledge Base and Tutorial" and "The place where you learn Linux" are service marks of James Mohr. All rights reserved.
The Linux Knowledge Base and Tutorial may contain links to sites on the Internet, which are owned and operated by third parties. The Linux Tutorial is not responsible for the content of any such third-party site. By viewing/utilizing this web site, you have agreed to our disclaimer, terms of use and privacy policy. Use of automated download software ("harvesters") such as wget, httrack, etc. causes the site to quickly exceed its bandwidth limitation and are therefore expressly prohibited. For more details on this, take a look here

PHP-Nuke Copyright © 2004 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.10 Seconds