From: Frank Ch. Eigler Date: Sat, 19 Jun 2010 03:01:13 +0000 (-0400) Subject: new example: noptrace.stp X-Git-Tag: release-1.3~213 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=5481d677c7f542f6235a925de12fad4ed8b51c42;p=systemtap.git new example: noptrace.stp --- diff --git a/testsuite/systemtap.examples/index.html b/testsuite/systemtap.examples/index.html index 09b576904..e215bad09 100644 --- a/testsuite/systemtap.examples/index.html +++ b/testsuite/systemtap.examples/index.html @@ -193,6 +193,9 @@ keywords: SYSCALL process/migrate.stp - Track the Migration of Specific Executables
keywords: SCHEDULER

The migrate.stp script takes an argument which is the executable name of the task it should monitor. Each time a task with that executable name migrates between processors an entry is printed with the process id (pid), the executable name, the processor off loading the task, and the process taking the task. Note that the task may or may not be executing at the time of the migration.

+
  • process/noptrace.stp - disable ptrace(2) from hierarchies of processes
    +keywords: PROCESS SECURITY
    +

    noptrace.stp blocks ptrace(2) attempts from processes identified by stap -c/-x, as also specifiable from /proc/systemtap/stap_XXX/ control files. Processes may be added or removed from the blocked list.

  • process/pf2.stp - Profile kernel functions
    keywords: PROFILING

    The pf2.stp script sets up time-based sampling. Every five seconds it prints out a sorted list with the top ten kernel functions with samples.

  • diff --git a/testsuite/systemtap.examples/index.txt b/testsuite/systemtap.examples/index.txt index 995a27088..147638817 100644 --- a/testsuite/systemtap.examples/index.txt +++ b/testsuite/systemtap.examples/index.txt @@ -484,6 +484,15 @@ keywords: scheduler executing at the time of the migration. +process/noptrace.stp - disable ptrace(2) from hierarchies of processes +keywords: process security + + noptrace.stp blocks ptrace(2) attempts from processes identified by + stap -c/-x, as also specifiable from /proc/systemtap/stap_XXX/ + control files. Processes may be added or removed from the blocked + list. + + process/pf2.stp - Profile kernel functions keywords: profiling diff --git a/testsuite/systemtap.examples/keyword-index.html b/testsuite/systemtap.examples/keyword-index.html index 69b75671c..2ca79f2d7 100644 --- a/testsuite/systemtap.examples/keyword-index.html +++ b/testsuite/systemtap.examples/keyword-index.html @@ -39,7 +39,7 @@

    Examples by Keyword

    -

    ALLOCATOR AUTOFS BACKTRACE BUFFER CALLGRAPH CPU DEVICE DISK FILES FILESYSTEM FORMAT FREE FUNCTIONS FUTEX GRAPH HACK INTERRUPT IO LOCKING MEMORY MONITORING NETWORK NFS NUMA PER-PROCESS PROCESS PROFILING READ SCHEDULER SCSI SIGNALS SIMPLE SLAB SLEEP SOCKET STATISTICS SYSCALL TCP TIME TRACE TRACEPOINT TRAFFIC TTY USE WAIT4 WRITE

    +

    ALLOCATOR AUTOFS BACKTRACE BUFFER CALLGRAPH CPU DEVICE DISK FILES FILESYSTEM FORMAT FREE FUNCTIONS FUTEX GRAPH HACK INTERRUPT IO LOCKING MEMORY MONITORING NETWORK NFS NUMA PER-PROCESS PROCESS PROFILING READ SCHEDULER SCSI SECURITY SIGNALS SIMPLE SLAB SLEEP SOCKET STATISTICS SYSCALL TCP TIME TRACE TRACEPOINT TRAFFIC TTY USE WAIT4 WRITE

    ALLOCATOR

    +

    SECURITY

    +

    SIGNALS