Lines Matching +full:a +full:- +full:za +full:- +full:z0 +full:- +full:9 +full:-

2 # SPDX-License-Identifier: GPL-2.0-only
5 echo "Dump boot-time tracing bootconfig from ftrace"
6 echo "Usage: $0 [--debug] [ > BOOTCONFIG-FILE]"
13 "--debug")
15 -*)
23 set -x
26 TRACEFS=`grep -m 1 -w tracefs /proc/mounts | cut -f 2 -d " "`
27 if [ -z "$TRACEFS" ]; then
28 if ! grep -wq debugfs /proc/mounts; then
32 TRACEFS=`grep -m 1 -w debugfs /proc/mounts | cut -f 2 -d " "`/tracing
33 if [ ! -d $TRACEFS ]; then
41 set -e
50 if grep -qv "^#" $TRACEFS/set_graph_function $TRACEFS/set_graph_notrace ; then
62 # WARN: A return probe found but it is not supported by bootconfig. Skip it.
88 defined_vars() { # event-dir
89 grep "^hist" $1/trigger | grep -o ':[a-zA-Z0-9]*='
92 grep "^hist" $1/trigger | grep -o '$[a-zA-Z0-9]*'
95 event_is_enabled() { # enable-file
96 test -f $1 && grep -q "1" $1
99 per_event_options() { # event-dir
102 [ ! -f $evdir/filter ] && return
104 if grep -q "^hist:" $evdir/trigger; then
108 if echo $DEFINED_VARS $__vars | grep -vqw ${v#$}; then
116 grep -v "^#" $evdir/trigger | while read action active; do
120 if [ $GROUP_ENABLED -eq 0 ] && event_is_enabled $evdir/enable; then
152 [ ! -d $INSTANCE/events/$group ] && continue
154 if [ $ALL_ENABLED -eq 0 ] && \
160 [ ! -d $INSTANCE/events/$group/$event ] && continue
165 while [ $retry -lt 3 ]; do
177 grep -qw $1 << EOF
178 print-parent
179 nosym-offset
180 nosym-addr
189 nosym-userobj
190 noprintk-msg-only
191 context-info
192 nolatency-format
193 record-cmd
194 norecord-tgid
197 irq-info
199 noevent-fork
200 nopause-on-trace
201 function-trace
202 nofunction-fork
203 nodisplay-graph
210 instance_options() { # [instance-name]
211 if [ $# -eq 0 ]; then
231 if echo $val | grep -vq "expanded" ; then
234 if grep -q "is allocated" $INSTANCE/snapshot ; then
238 if [ `echo $val | sed -e s/f//g`x != x ]; then
248 if grep -qv "^#" $INSTANCE/set_ftrace_filter $INSTANCE/set_ftrace_notrace; then