summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorarr <arr@FreeBSD.org>2004-12-28 00:49:02 +0000
committerarr <arr@FreeBSD.org>2004-12-28 00:49:02 +0000
commit8de6777f0a21745507ae0179a82450331524b87f (patch)
treed4eea381197e9036c6d4a82acac7946c69cba64e /tools
parent43775c98bdbe446ff68bfc14cd23d9f53625b95e (diff)
downloadFreeBSD-src-8de6777f0a21745507ae0179a82450331524b87f.zip
FreeBSD-src-8de6777f0a21745507ae0179a82450331524b87f.tar.gz
- Add some notes on what is required to run schedgraph.py successfully.
This was pulled from Jeff Roberson's email to current@ "the other day." Approved by: jeff@
Diffstat (limited to 'tools')
-rw-r--r--tools/sched/schedgraph.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/sched/schedgraph.py b/tools/sched/schedgraph.py
index e56ee8a..e70d67d 100644
--- a/tools/sched/schedgraph.py
+++ b/tools/sched/schedgraph.py
@@ -30,6 +30,17 @@ import sys
import re
from Tkinter import *
+# To use:
+# - Install the ports/x11-toolkits/py-tkinter package.
+# - Add KTR_SCHED to KTR_COMPILE and KTR_MASK in your KERNCONF
+# - It is encouraged to increase KTR_ENTRIES size to 32768 to gather
+# enough information for analysis.
+# - Rebuild kernel with proper changes to KERNCONF.
+# - Run ktrace(1) with whatever workload you wish to use.
+# - Dump the trace to a file: 'ktrdump -ct > ktr.out'
+# - Run the python script: 'python schedgraph.py ktr.out'
+#
+# To do:
# 1) Add a per-thread summary display
# 2) Add bounding box style zoom.
# 3) Click to center.
OpenPOWER on IntegriCloud