#!/bin/sh # common_tests - Shell script commonly used by pstore test scripts # # Copyright (C) Hitachi Ltd., 2015 # Written by Hiraku Toyooka # # Released under the terms of the GPL v2. # Utilities errexit() { # message echo "Error: $1" 1>&2 exit 1 } absdir() { # file_path (cd `dirname $1`; pwd) } show_result() { # result_value if [ $1 -eq 0 ]; then prlog "ok" else prlog "FAIL" rc=1 fi } check_files_exist() { # type of pstorefs file if [ -e ${1}-${backend}-0 ]; then prlog "ok" for f in `ls ${1}-${backend}-*`; do prlog -e "\t${f}" done else prlog "FAIL" rc=1 fi } operate_files() { # tested value, files, operation if [ $1 -eq 0 ]; then prlog for f in $2; do prlog -ne "\t${f} ... " # execute operation $3 $f show_result $? done else prlog " ... FAIL" rc=1 fi } # Parameters TEST_STRING_PATTERN="Testing pstore: uuid=" UUID=`cat /proc/sys/kernel/random/uuid` TOP_DIR=`absdir $0` LOG_DIR=$TOP_DIR/logs/`date +%Y%m%d-%H%M%S`_${UUID}/ REBOOT_FLAG=$TOP_DIR/reboot_flag # Preparing logs LOG_FILE=$LOG_DIR/`basename $0`.log mkdir -p $LOG_DIR || errexit "Failed to make a log directory: $LOG_DIR" date > $LOG_FILE prlog() { # messages /bin/echo "$@" | tee -a $LOG_FILE } # Starting tests rc=0 prlog "=== Pstore unit tests (`basename $0`) ===" prlog "UUID="$UUID prlog -n "Checking pstore backend is registered ... " backend=`cat /sys/module/pstore/parameters/backend` show_result $? prlog -e "\tbackend=${backend}" prlog -e "\tcmdline=`cat /proc/cmdline`" if [ $rc -ne 0 ]; then exit 1 fi href='/cgit.cgi/linux/net-next.git/log/include/uapi'>logtreecommitdiff
path: root/include/uapi
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2017-02-03 15:16:46 -0500
committerDavid S. Miller <davem@davemloft.net>2017-02-03 15:16:46 -0500
commit5a0fd98b7b5be8773c53c40c47451ec6cd11d1ff (patch)
tree56e1c64262e3ef4876e8d480555508d6a45358e7 /include/uapi
parent3541f9e8bdebce02458882b66b638d7302c1f616 (diff)
parent295a6e06d21e1f469c9f38b00125a13b60ad4e7c (diff)
Merge branch 'ife-to-module'
Yotam Gigi says: ==================== Extract IFE logic to module Extract ife logic from the tc_ife action into an independent module, and make the tc_ife action use it. This way, the ife encapsulation can be used by other modules other than tc_ife action. v1->v2: Fix duplicate symbol error by introducing a new patch that makes the original symbol static. The symbol ife_tlv_meta_extract is exported in act_ife, though not being used by any other module. As the symbol is being moved to the new ife module, introducing the new module creates duplicate symbol. To fix it, add a new patch (1/3) that makes the ife_tlv_meta_extract symbol static in act_ife, thus the symbol does not collide. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi')
-rw-r--r--include/uapi/linux/Kbuild1
-rw-r--r--include/uapi/linux/ife.h18
-rw-r--r--include/uapi/linux/tc_act/tc_ife.h10
3 files changed, 20 insertions, 9 deletions
diff --git a/include/uapi/linux/Kbuild b/include/uapi/linux/Kbuild