lttctl ltt-armall updated to new debugfs
[ltt-control.git] / trunk / ltt-control / lttctl / ltt-armall.sh
CommitLineData
3c037c17 1#excluding core markers (already connected)
2#excluding locking markers (high traffic)
c6bcebb0 3
80bb2806 4DEBUGFSROOT=$(grep ^debugfs /proc/mounts | head -1 | awk '{print $2}')
5MARKERSROOT=${DEBUGFSROOT}/ltt/markers
6
3c037c17 7echo Connecting all markers
c6bcebb0 8
80bb2806 9for c in ${MARKERSROOT}/*; do
10 case ${c} in
11 ${MARKERSROOT}/metadata)
12 ;;
13 ${MARKERSROOT}/locking)
14 ;;
15 ${MARKERSROOT}/lockdep)
16 ;;
17 *)
18 for m in ${c}/*; do
19 echo Connecting ${m}
20 echo 1 > ${m}/enable
21 done
22 ;;
23 esac
24done
d48e1c4f 25
98e12fa1 26
80bb2806 27# Connect the interesting high-speed markers to the marker tap.
28# Markers starting with "tap_" are considered high-speed.
29#echo Connecting high-rate markers to tap
30#MARKERS=`cat /proc/ltt|grep -v %k|awk '{print $2}'|sort -u |grep ^tap_`
31#
32##Uncomment the following to also record lockdep events.
33##MARKERS=`cat /proc/ltt|grep -v %k|awk '{print $2}'|sort -u|grep -e ^tap_ -e ^lockdep`
34#
35#IFS=${N}
36#for a in $MARKERS; do
37# echo Connecting $a
38#
43519792 39# #redirect markers carrying state information to dedicated channels
40# case $a in
43519792 41# *)
42# CHANNEL=
43# ;;
44# esac
80bb2806 45#
46# echo "connect $a ltt_tap_marker" > /proc/ltt
47#done
This page took 0.02351 seconds and 4 git commands to generate.