Sophie

Sophie

distrib > CentOS > 5 > x86_64 > by-pkgid > 2b12d0199a2bbc4a02ef3834d926ac4a > files > 132

systemtap-client-1.8-6.el5.x86_64.rpm

title: Watch a Kernel Address Using Breakpoint Hardware
name: hw_watch_addr.stp
version: 1.0
author: William Cohen
keywords: memory watchpoint
subsystem: memory
status: production
exit: user-controlled
output: trace
scope: system-wide
description: The script will watch accesses to a single kernel address and prints a traceback each time the address is accessed. This script needs to be run as root to allow access to the breakpoint hardware.
test_support: perf stat --event=mem:0xc000000 /bin/true
test_check: stap --all-modules -p4 hw_watch_addr.stp 0x`grep "pid_max$" /proc/kallsyms`
test_installcheck: stap --all-modules hw_watch_addr.stp 0x`grep "pid_max$" /proc/kallsyms` -c "sleep 1"