Home
last modified time | relevance | path

Searched refs:T (Results 1 – 25 of 56) sorted by relevance

123

/tools/debugging/
Dkernel-chktaint48 T=$taint
55 if [ `expr $T % 2` -eq 0 ]; then
62 T=`expr $T / 2`
63 if [ `expr $T % 2` -eq 0 ]; then
70 T=`expr $T / 2`
71 if [ `expr $T % 2` -eq 0 ]; then
78 T=`expr $T / 2`
79 if [ `expr $T % 2` -eq 0 ]; then
86 T=`expr $T / 2`
87 if [ `expr $T % 2` -eq 0 ]; then
[all …]
/tools/perf/tests/
Dkmod-path.c44 #define T(path, an, k, c, n) \ macro
53 T("/xxxx/xxxx/x-x.ko", true , true, 0 , "[x_x]"); in test__kmod_path__parse()
54 T("/xxxx/xxxx/x-x.ko", false , true, 0 , NULL ); in test__kmod_path__parse()
55 T("/xxxx/xxxx/x-x.ko", true , true, 0 , "[x_x]"); in test__kmod_path__parse()
56 T("/xxxx/xxxx/x-x.ko", false , true, 0 , NULL ); in test__kmod_path__parse()
63 T("/xxxx/xxxx/x.ko.gz", true , true, 1 , "[x]"); in test__kmod_path__parse()
64 T("/xxxx/xxxx/x.ko.gz", false , true, 1 , NULL ); in test__kmod_path__parse()
65 T("/xxxx/xxxx/x.ko.gz", true , true, 1 , "[x]"); in test__kmod_path__parse()
66 T("/xxxx/xxxx/x.ko.gz", false , true, 1 , NULL ); in test__kmod_path__parse()
72 T("/xxxx/xxxx/x.gz", true , false, 1 , "x.gz"); in test__kmod_path__parse()
[all …]
Dmem2node.c22 #define T TEST_ASSERT_VAL macro
62 T("failed: alloc bitmap", in test__mem2node()
66 T("failed: mem2node__init", !mem2node__init(&map, &env)); in test__mem2node()
67 T("failed: mem2node__node", 0 == mem2node__node(&map, 0x50)); in test__mem2node()
68 T("failed: mem2node__node", 1 == mem2node__node(&map, 0x100)); in test__mem2node()
69 T("failed: mem2node__node", 1 == mem2node__node(&map, 0x250)); in test__mem2node()
70 T("failed: mem2node__node", 3 == mem2node__node(&map, 0x500)); in test__mem2node()
71 T("failed: mem2node__node", 3 == mem2node__node(&map, 0x650)); in test__mem2node()
72 T("failed: mem2node__node", -1 == mem2node__node(&map, 0x450)); in test__mem2node()
73 T("failed: mem2node__node", -1 == mem2node__node(&map, 0x1050)); in test__mem2node()
/tools/memory-model/scripts/
Dcheckghlitmus.sh15 T=/tmp/checkghlitmus.sh.$$
17 mkdir $T
40 xargs -r grep -L "^P${LKMM_PROCS}"> $T/list-C-already
44 find litmus -name '*.litmus' -print | mselect7 -arch C > $T/list-C
45 xargs < $T/list-C -r grep -E -l '^ \* Result: (Never|Sometimes|Always|DEADLOCK)' > $T/list-C-result
46 xargs < $T/list-C-result -r grep -L "^P${LKMM_PROCS}" > $T/list-C-result-short
49 sort $T/list-C-already $T/list-C-result-short | uniq -u > $T/list-C-needed
52 if scripts/runlitmushist.sh < $T/list-C-needed > $T/run.stdout 2> $T/run.stderr
59 sed < $T/list-C-result-short -e 's,^,scripts/judgelitmus.sh ,' |
60 sh > $T/judge.stdout 2> $T/judge.stderr
[all …]
Dnewlitmushist.sh19 T=/tmp/newlitmushist.sh.$$
21 mkdir $T
42 xargs -r grep -L "^P${LKMM_PROCS}"> $T/list-C-already
46 find litmus -name '*.litmus' -print | mselect7 -arch C > $T/list-C-all
47 xargs < $T/list-C-all -r grep -L "^P${LKMM_PROCS}" > $T/list-C-short
50 sort $T/list-C-already $T/list-C-short | uniq -u > $T/list-C-new
53 sed < $T/list-C-short -e 's,^.*$,if test & -nt '"$LKMM_DESTDIR"'/&.out; then echo &; fi,' > $T/list…
54 sh $T/list-C-script > $T/list-C-newer
57 sort -u $T/list-C-new $T/list-C-newer > $T/list-C-needed
59 scripts/runlitmushist.sh < $T/list-C-needed
Dcmplitmushist.sh10 T=/tmp/cmplitmushist.sh.$$
12 mkdir $T
58 grep -v 'maxresident)k\|minor)pagefaults\|^Time' $1 > $T/oldout
59 grep -v 'maxresident)k\|minor)pagefaults\|^Time' $2 > $T/newout
60 if cmp -s $T/oldout $T/newout && grep -q '^Observation' $1
67 grep '^Observation' $1 > $T/oldout
68 grep '^Observation' $2 > $T/newout
69 if test -s $T/oldout -o -s $T/newout
71 if cmp -s $T/oldout $T/newout
83 grep '^Observation' $1 | awk '{ print $3 }' > $T/oldout
[all …]
Dchecklitmushist.sh19 T=/tmp/checklitmushist.sh.$$
21 mkdir $T
34 mkdir $T/results
35 find litmus -type d -print | ( cd $T/results; sed -e 's/^/mkdir -p /' | sh )
41 xargs -r grep -L "^P${LKMM_PROCS}"> $T/list-C-already
42 xargs < $T/list-C-already -r grep -L "^P${LKMM_PROCS}" > $T/list-C-short
46 LKMM_DESTDIR=$T/results; export LKMM_DESTDIR
47 scripts/runlitmushist.sh < $T/list-C-short > $T/runlitmushist.sh.out 2>&1
55 ( cd $T/results; find litmus -type f -name '*.litmus.out' -print |
58 sed < $T/list-C-short -e 's,^,'"$LKMM_DESTDIR/"',' |
Drunlitmushist.sh20 T=/tmp/runlitmushist.sh.$$
22 mkdir $T
35 echo T=$T >> $T/$i.sh
36 cat << '___EOF___' >> $T/$i.sh
68 awk -v dq='"' -v hwfnseg="$hwfnseg" -v ncpu="$LKMM_JOBS" -v t="$T" '
83 cat $T/*.sh.out
84 if grep -q '!!!' $T/*.sh.out
87 grep '!!!' $T/*.sh.out 1>&2
88 nfail="`grep '!!!' $T/*.sh.out | wc -l`"
Dparseargs.sh14 T=/tmp/parseargs.sh.$$
15 mkdir $T
19 echo if test -z '"$'$1'"' > $T/s
20 echo then >> $T/s
21 echo $1='"'$2'"' >> $T/s
22 echo export $1 >> $T/s
23 echo fi >> $T/s
24 echo $1_DEF='$'$1 >> $T/s
25 . $T/s
147 rm -rf $T
Dinitlitmushist.sh41 T=/tmp/initlitmushist.sh.$$
43 mkdir $T
63 find litmus -name '*.litmus' -print | mselect7 -arch C > $T/list-C
64 xargs < $T/list-C -r grep -L "^P${LKMM_PROCS}" > $T/list-C-short
66 scripts/runlitmushist.sh < $T/list-C-short
Drunlitmus.sh52 trap 'rm -rf $T' 0 2
53 mkdir $T
57 themefile="$T/${LKMM_HW_MAP_FILE}.theme"
71 jingle7 -v -theme $themefile $litmus > $LKMM_DESTDIR/$hwlitmus 2> $T/$hwlitmusfile.jingle7.out
72 if grep -q "Generated 0 tests" $T/$hwlitmusfile.jingle7.out
75 cp $T/$hwlitmusfile.jingle7.out $LKMM_DESTDIR/$hwlitmus.err
/tools/testing/selftests/rcutorture/bin/
Dparse-build.sh18 T="`mktemp -d ${TMPDIR-/tmp}/parse-build.sh.XXXXXX`"
38 grep warning: < $F > $T/warnings
39 grep "include/linux/*rcu*\.h:" $T/warnings > $T/hwarnings
40 grep "kernel/rcu/[^/]*:" $T/warnings > $T/cwarnings
41 grep "^ld: .*undefined reference to" $T/warnings | head -1 > $T/ldwarnings
42 cat $T/hwarnings $T/cwarnings $T/ldwarnings > $T/rcuwarnings
43 if test -s $T/rcuwarnings
46 cat $T/rcuwarnings
Dconfigcheck.sh12 T="`mktemp -d ${TMPDIR-/tmp}/configcheck.sh.XXXXXX`"
17 if ! grep -q "^$1$" $T/.config
27 if grep -q "^$1=n$" $T/.config
31 if grep -q "^$1=" $T/.config
39 sed -e 's/"//g' < $1 > $T/.config
40 sed -e 's/^#CHECK#//' < $2 > $T/ConfigFragment
41 grep '^CONFIG_.*=n$' $T/ConfigFragment |
42 sed -e 's/^/test_kconfig_disabled /' -e 's/=n$//' > $T/kconfig-n.sh
43 . $T/kconfig-n.sh
44 grep -v '^CONFIG_.*=n$' $T/ConfigFragment | grep '^CONFIG_' |
[all …]
Dtorture.sh223 T="`mktemp -d ${TMPDIR-/tmp}/torture.sh.XXXXXX`"
226 echo " --- " $scriptname $args | tee -a $T/log
227 echo " --- Results directory: " $ds | tee -a $T/log
237 echo " --- Zero time for rcutorture, disabling" | tee -a $T/log
249 echo " --- Zero time for locktorture, disabling" | tee -a $T/log
261 echo " --- Zero time for scftorture, disabling" | tee -a $T/log
265 touch $T/failures
266 touch $T/successes
281 echo " --- $curflavor:" Start `date` | tee -a $T/log
287 "$@" $boottag "$cur_bootargs" --datestamp "$ds/results-$curflavor" > $T/$curflavor.out 2>&1
[all …]
Dkvm-remote.sh46 T="`mktemp -d ${TMPDIR-/tmp}/kvm-remote.sh.XXXXXX`"
48 TD="`basename "$T"`"
50 resdir="$T/res"
68 kvm.sh --remote "$@" $datestamp --buildonly > $T/kvm.sh.out 2>&1
73 cat $T/kvm.sh.out
76 oldrun="`grep -m 1 "^Results directory: " $T/kvm.sh.out | awk '{ print $3 }'`"
81 cat $T/kvm.sh.out | tee -a "$oldrun/remote-log"
84 kvm-again.sh $oldrun --dryrun --remote --rundir "$rundir" > $T/kvm-again.sh.out 2>&1
89 cat $T/kvm-again.sh.out | tee -a "$oldrun/remote-log"
102 kvm-again.sh "$oldrun" "$@" --dryrun --remote --rundir "$rundir" > $T/kvm-again.sh.out 2>&1
[all …]
Dconfig2csv.sh33 T=`mktemp -d /tmp/config2latex.sh.XXXXXX`
36 cat << '---EOF---' >> $T/p.awk
41 echo ' s["'$i'"] = 1;' >> $T/p.awk
42 grep -v '^#' < $i | grep -v '^ *$' > $T/p
45 tr -s ' ' '\012' < $i.boot | grep -v '^#' >> $T/p
47 sed -e 's/^[^=]*$/&=?/' < $T/p |
48 sed -e 's/^\([^=]*\)=\(.*\)$/\tp["\1:'"$i"'"] = "\2";\n\tc["\1"] = 1;/' >> $T/p.awk
50 cat << '---EOF---' >> $T/p.awk
65 awk -f $T/p.awk < /dev/null > $T/p.csv
66 cp $T/p.csv $csvout
Dkvm-test-1-run-batch.sh16 T="`mktemp -d ${TMPDIR-/tmp}/kvm-test-1-run-batch.sh.XXXXXX`"
45 grep '^#' $1/qemu-cmd | sed -e 's/^# //' > $T/qemu-cmd-settings
46 . $T/qemu-cmd-settings
52 kvm-assign-cpus.sh /sys/devices/system/node > $T/cpuarray.awk
58 kvm-get-cpus-script.sh $T/cpuarray.awk $T/cpubatches.awk $T/cpustate
59 cat << ' ___EOF___' >> $T/cpubatches.awk
78 affinity_export="`awk -f $T/cpubatches.awk -v cpu_count="$cpu_count" -v scenario=$i < /dev/null`"
Dkvm-assign-cpus.sh10 T="`mktemp -d ${TMPDIR-/tmp}/kvm-assign-cpus.sh.XXXXXX`"
14 if ! cd "$sysfsdir" > $T/msg 2>&1
16 sed -e 's/^/# /' < $T/msg
53 rm -f $T/cpulist
57 if ! cat $f > $T/msg 2>&1
59 sed -e 's/^/# /' < $T/msg
62 cat $f >> $T/cpulist
64 if grep -q '[-,]' $T/cpulist
Dconfiginit.sh18 T="`mktemp -d ${TMPDIR-/tmp}/configinit.sh.XXXXXX`"
26 sed -e 's/^\(CONFIG[0-9A-Z_]*\)=.*$/grep -v "^# \1" |/' < $c > $T/u.sh
27 sed -e 's/^\(CONFIG[0-9A-Z_]*=\).*$/grep -v \1 |/' < $c >> $T/u.sh
28 grep '^grep' < $T/u.sh > $T/upd.sh
29 echo "cat - $c" >> $T/upd.sh
36 sh $T/upd.sh < .config.sav > .config
Dkvm.sh17 T="`mktemp -d ${TMPDIR-/tmp}/kvm.sh.XXXXXX`"
302 touch $T/cfgcpu
313 echo 'BEGIN {' > $T/cfgcpu.awk
320 echo "$TORTURE_KCONFIG_ARG" | tr -s ' ' | tr ' ' '\012' > $T/KCONFIG_ARG
321 cpu_count=`configNR_CPUS.sh $T/KCONFIG_ARG`
327 echo 'scenariocpu["'"$CF1"'"] = '"$cpu_count"';' >> $T/cfgcpu.awk
333 cat << '___EOF___' >> $T/cfgcpu.awk
340 echo $configs_derep | awk -f $T/cfgcpu.awk > $T/cfgcpu
341 sort -k2nr $T/cfgcpu -T="$T" > $T/cfgcpu.sort
344 awk < $T/cfgcpu.sort > $T/cfgcpu.pack -v ncpus=$cpus '
[all …]
Dparse-console.sh14 T=${TMPDIR-/tmp}/parse-console.sh.$$
94 }' > $T.seq
98 if test -s $T.seq
100 print_warning $title `cat $T.seq`
107 print_warning HOTPLUG FAILURES $title `cat $T.seq`
112 if test -s $T.seq
114 print_warning $title `cat $T.seq`
120 console-badness.sh < $file > $T.diags
121 if test -s $T.diags
172 cat $T.diags >> $file.diags
Dkvm-transform.sh24 T=`mktemp -d /tmp/kvm-transform.sh.XXXXXXXXXX`
54 echo "BEGIN {" > $T/bootarg.awk
56 awk -v dq='"' '/./ { print "\tbootarg[" NR "] = " dq $1 dq ";" }' >> $T/bootarg.awk
58 awk -v dq='"' '/./ { print "\tbootpar[" NR "] = " dq $1 dq ";" }' >> $T/bootarg.awk
59 cat >> $T/bootarg.awk << '___EOF___'
139 -v seconds="$seconds" -f $T/bootarg.awk
Dkvm-again.sh15 T="`mktemp -d ${TMPDIR-/tmp}/kvm-again.sh.XXXXXX`"
31 if ! cp "$oldrun/scenarios" $T/scenarios.oldrun
192 cp "$i" $T
196 …kernel_dir/bzImage" "$qemu_cmd_dir/console.log" "$jitter_dir" "$dur" "$bootargs" < $T/qemu-cmd > $i
204 grep '^#' $i | sed -e 's/^# //' > $T/qemu-cmd-settings
205 . $T/qemu-cmd-settings
207 grep -v '^#' $T/scenarios.oldrun | awk '
213 }' > $T/runbatches.sh
219 ( cd "$rundir"; sh $T/runbatches.sh ) | tee -a "$rundir/log"
/tools/testing/selftests/bpf/
Dtest_cpp.cpp11 template <typename T>
14 T *skel;
18 ~Skeleton() { if (skel) T::destroy(skel); } in ~Skeleton()
27 skel = T::open(opts); in open()
37 int load() { return T::load(skel); } in load()
39 int attach() { return T::attach(skel); } in attach()
41 void detach() { return T::detach(skel); } in detach()
43 const T* operator->() const { return skel; } in operator ->()
45 T* operator->() { return skel; } in operator ->()
47 const T *get() const { return skel; } in get()
/tools/include/linux/
Doverflow.h33 #define type_max(T) ((T)((__type_half_max(T) - 1) + __type_half_max(T))) argument
34 #define type_min(T) ((T)((T)-type_max(T)-(T)1)) argument

123