Debian Codegraph @

testsuite/systemtap.examples/memory/hw_watch_addr.meta

raw
1 title: Watch a Kernel Address Using Breakpoint Hardware
2 name: hw_watch_addr.stp
3 version: 1.0
4 author: William Cohen
5 keywords: memory watchpoint
6 subsystem: memory
7 status: production
8 exit: user-controlled
9 output: trace
10 scope: system-wide
11 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.
12 test_support: perf stat -a --event=mem:0x`grep "vm_dirty_ratio" /proc/kallsyms | awk '{print $1}'` /bin/true
13 test_check: stap --all-modules -p4 hw_watch_addr.stp 0x`grep "vm_dirty_ratio" /proc/kallsyms | awk '{print $1}'`
14 test_installcheck: stap --all-modules hw_watch_addr.stp 0x`grep "vm_dirty_ratio" /proc/kallsyms | awk '{print $1}'` -T 5