Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tools/rcu: Add rcu-updaters.sh script
This commit adds a tools/rcu/rcu-updaters.sh script that uses bpftrace to print a histogram of the RCU update-side primitives invoked during the specified time interval, or until manually terminated if no interval is specified. Sample output on an idle laptop: @CountS[poll_state_synchronize_rcu]: 6 @CountS[synchronize_srcu]: 13 @CountS[call_rcu_tasks_trace]: 25 @CountS[synchronize_rcu]: 54 @CountS[kvfree_call_rcu]: 428 @CountS[call_rcu]: 2134 Note that when run on a kernel missing one or more of the symbols, this script will issue a diagnostic for each that is not found, but continue normally for the rest of the functions. Signed-off-by: Paul E. McKenney <[email protected]>
- Loading branch information