Lines Matching +full:a +full:- +full:za +full:- +full:z

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 per_event_options() { # event-dir
98 [ ! -f $evdir/filter ] && return
100 if grep -q "^hist:" $evdir/trigger; then
104 if echo $DEFINED_VARS $__vars | grep -vqw ${v#$}; then
112 grep -v "^#" $evdir/trigger | while read action active; do
141 [ ! -d $INSTANCE/events/$group ] && continue
143 [ ! -d $INSTANCE/events/$group/$event ] && continue
148 while [ $retry -lt 3 ]; do
160 grep -qw $1 << EOF
161 print-parent
162 nosym-offset
163 nosym-addr
172 nosym-userobj
173 noprintk-msg-only
174 context-info
175 nolatency-format
176 record-cmd
177 norecord-tgid
180 irq-info
182 noevent-fork
183 nopause-on-trace
184 function-trace
185 nofunction-fork
186 nodisplay-graph
193 instance_options() { # [instance-name]
194 if [ $# -eq 0 ]; then
214 if echo $val | grep -vq "expanded" ; then
217 if grep -q "is allocated" $INSTANCE/snapshot ; then
221 if [ `echo $val | sed -e s/f//g`x != x ]; then
232 if grep -qv "^#" $INSTANCE/set_ftrace_filter $INSTANCE/set_ftrace_notrace; then