#! /bin/sh set -e PREFIX=$1 shift trap 'rm -r $TMPDIR' 0 TMPDIR=`mktemp -d` exec 3>/dev/null for f; do while IFS=" " read -r LINE; do case "$LINE" in *$PREFIX:[0-9]*:\**) NUM=`echo "$LINE" | sed "s/.*$PREFIX:\([0-9]*\).*/\1/"` if [ -f $TMPDIR/$NUM ]; then echo "$TMPDIR/$NUM already exits prior to $f" exit 1 fi exec 3>>$TMPDIR/$NUM echo $f | sed 's,\.\./,,g' > $TMPDIR/.$NUM /bin/echo "$LINE" | sed -e "s/$PREFIX:[0-9]*//" -e "s/:\*/*/" >&3 ;; *$PREFIX:[0-9]*) NUM=`echo "$LINE" | sed "s/.*$PREFIX:\([0-9]*\).*/\1/"` if [ -f $TMPDIR/$NUM ]; then echo "$TMPDIR/$NUM already exits prior to $f" exit 1 fi exec 3>>$TMPDIR/$NUM echo $f | sed 's,\.\./,,g' > $TMPDIR/.$NUM /bin/echo "$LINE" | sed "s/$PREFIX:[0-9]*//" >&3 ;; *:\**) /bin/echo "$LINE" | sed -e "s/:\*/*/" -e "s,/\*\*/,," >&3 echo >&3 exec 3>/dev/null ;; *) /bin/echo "$LINE" >&3 ;; esac done < $f echo >&3 exec 3>/dev/null done LASTFILE="" for f in $TMPDIR/*; do if [ "$LASTFILE" != $(cat $TMPDIR/.$(basename $f) ) ]; then LASTFILE=$(cat $TMPDIR/.$(basename $f) ) echo "[ $LASTFILE ]" fi cat $f done ption> net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
path: root/tools/perf/bench/futex-wake.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2017-02-07 16:29:30 -0500
committerDavid S. Miller <davem@davemloft.net>2017-02-07 16:29:30 -0500
commit3efa70d78f218e4c9276b0bac0545e5184c1c47b (patch)
treef4abe2f05e173023d2a262afd4aebb1e89fe6985 /tools/perf/bench/futex-wake.c
parent76e0e70e6452b971a69cc9794ff4a6715c11f7f2 (diff)
parent926af6273fc683cd98cd0ce7bf0d04a02eed6742 (diff)
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
The conflict was an interaction between a bug fix in the netvsc driver in 'net' and an optimization of the RX path in 'net-next'. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/bench/futex-wake.c')