#!/bin/sh if [ $# -eq 1 ] ; then OUTPUT=$1 fi GVF=${OUTPUT}PERF-VERSION-FILE LF=' ' # # First check if there is a .git to get the version from git describe # otherwise try to get the version from the kernel Makefile # CID= TAG= if test -d ../../.git -o -f ../../.git then TAG=$(git describe --abbrev=0 --match "v[0-9].[0-9]*" 2>/dev/null ) CID=$(git log -1 --abbrev=4 --pretty=format:"%h" 2>/dev/null) && CID="-g$CID" elif test -f ../../PERF-VERSION-FILE then TAG=$(cut -d' ' -f3 ../../PERF-VERSION-FILE | sed -e 's/\"//g') fi if test -z "$TAG" then TAG=$(MAKEFLAGS= make -sC ../.. kernelversion) fi VN="$TAG$CID" if test -n "$CID" then # format version string, strip trailing zero of sublevel: VN=$(echo "$VN" | sed -e 's/-/./g;s/\([0-9]*[.][0-9]*\)[.]0/\1/') fi VN=$(expr "$VN" : v*'\(.*\)') if test -r $GVF then VC=$(sed -e 's/^#define PERF_VERSION "\(.*\)"/\1/' <$GVF) else VC=unset fi test "$VN" = "$VC" || { echo >&2 " PERF_VERSION = $VN" echo "#define PERF_VERSION \"$VN\"" >$GVF } on> net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
path: root/include/net/netlabel.h
ivate-remove&id=fd7c99142d77dc4a851879a66715abf12a3193fb'>asm/barrier.h
diff options
AgeCommit message (Expand)AuthorFilesLines
context:
space:
mode:
authorDave Martin <Dave.Martin@arm.com>2017-01-06 17:54:51 +0000
committerChris Metcalf <cmetcalf@mellanox.com>2017-01-06 15:14:08 -0500
commitfd7c99142d77dc4a851879a66715abf12a3193fb (patch)
tree5fe0d6f6b165d867bb76c296c0afbb5b22c52f47 /tools/virtio/asm/barrier.h
parent0c744ea4f77d72b3dcebb7a8f2684633ec79be88 (diff)
tile/ptrace: Preserve previous registers for short regset write
Ensure that if userspace supplies insufficient data to PTRACE_SETREGSET to fill all the registers, the thread's old registers are preserved. Cc: stable@vger.kernel.org Signed-off-by: Dave Martin <Dave.Martin@arm.com> Signed-off-by: Chris Metcalf <cmetcalf@mellanox.com>
Diffstat (limited to 'tools/virtio/asm/barrier.h')