/openbmc/linux/tools/testing/selftests/netfilter/ |
H A D | nft_nat.sh | 6 # Kselftest framework requirement - SKIP code is 4. 11 sfx=$(mktemp -u "XXXXXXXX") 12 ns0="ns0-$sfx" 13 ns1="ns1-$sfx" 14 ns2="ns2-$sfx" 18 for i in 0 1 2; do ip netns del ns$i-"$sfx";done 21 nft --version > /dev/null 2>&1 22 if [ $? -ne 0 ];then 27 ip -Version > /dev/null 2>&1 28 if [ $? -ne 0 ];then [all …]
|
H A D | nft_conntrack_helper.sh | 5 # 2. auto-assign still works. 7 # Kselftest framework requirement - SKIP code is 4. 11 sfx=$(mktemp -u "XXXXXXXX") 12 ns1="ns1-$sfx" 13 ns2="ns2-$sfx" 22 nft --version > /dev/null 2>&1 23 if [ $? -ne 0 ];then 28 ip -Version > /dev/null 2>&1 29 if [ $? -ne 0 ];then 34 conntrack -V > /dev/null 2>&1 [all …]
|
H A D | conntrack_icmp_related.sh | 3 # check that ICMP df-needed/pkttoobig icmp are set are set as related 8 # nsclient1 -> nsrouter1 -> nsrouter2 -> nsclient2 9 # MTU 1500, except for nsrouter2 <-> nsclient2 link (1280). 15 # nat of "established" icmp-echo "connection". 17 # Kselftest framework requirement - SKIP code is 4. 21 nft --version > /dev/null 2>&1 22 if [ $? -ne 0 ];then 27 ip -Version > /dev/null 2>&1 28 if [ $? -ne 0 ];then 41 echo -n 192.168.$1.2 [all …]
|
H A D | bridge_brouter.sh | 8 # setup is: ns1 <-> ns0 <-> ns2 10 # Kselftest framework requirement - SKIP code is 4. 14 ebtables -V > /dev/null 2>&1 15 if [ $? -ne 0 ];then 20 ip -Version > /dev/null 2>&1 21 if [ $? -ne 0 ];then 31 if [ $? -ne 0 ]; then 37 ip -net ns0 link set lo up 38 ip -net ns0 link set veth0 up 39 ip -net ns0 link set veth1 up [all …]
|
H A D | xt_string.sh | 2 # SPDX-License-Identifier: GPL-2.0 8 if ! iptables --version >/dev/null 2>&1; then 12 if ! ip -V >/dev/null 2>&1; then 16 if ! nc -h >/dev/null 2>&1; then 24 ns="ns-$(mktemp -u XXXXXXXX)" 27 ip -net "$ns" link add d0 type dummy 28 ip -net "$ns" link set d0 up 29 ip -net "$ns" addr add 10.1.2.1/24 dev d0 31 #ip netns exec "$ns" tcpdump -npXi d0 & 37 iptables -A OUTPUT -o d0 -m string \ [all …]
|
H A D | nft_nat_zones.sh | 6 # Kselftest framework requirement - SKIP code is 4. 17 # client1---. 18 # veth1-. 20 # NAT Gateway --veth0--> Server 22 # veth2-' | 23 # client2---' | 25 # clientX----vethX---' 30 # clientsaddr:10000 -> serveraddr:dport 34 sfx=$(mktemp -u "XXXXXXXX") 35 gw="ns-gw-$sfx" [all …]
|
H A D | nft_trans_stress.sh | 3 # This test is for stress-testing the nf_tables config plane path vs. 7 # set -e 9 # Kselftest framework requirement - SKIP code is 4. 12 testns=testns-$(mktemp -u "XXXXXXXX") 24 rm -f "$tmp" 32 if [ $r -ne 0 ] ;then 42 nft --version > /dev/null 2>&1 43 if [ $? -ne 0 ];then 48 ip -Version > /dev/null 2>&1 49 if [ $? -ne 0 ];then [all …]
|
/openbmc/bmcweb/test/redfish-core/include/ |
H A D | filter_expr_executor_test.cpp | 1 // SPDX-License-Identifier: Apache-2.0 2 // SPDX-FileCopyrightText: Copyright OpenBMC Authors 48 filterTrue("Count ne 3", members); in TEST() 56 filterTrue("3 ne Count", members); in TEST() 64 filterFalse("Count ne 2", members); in TEST() 72 filterFalse("2 ne Count", members); in TEST() 84 filterTrue("Count ne 3", members); in TEST() 92 filterTrue("3 ne Count", members); in TEST() 100 filterFalse("Count ne 2", members); in TEST() 108 filterFalse("2 ne Count", members); in TEST() [all …]
|
/openbmc/linux/tools/testing/selftests/net/ |
H A D | rtnetlink.sh | 5 # set -e 33 devdummy="test-dummy0" 35 # Kselftest framework requirement - SKIP code is 4. 41 if [ $ret -eq 0 ]; then 46 # same but inverted -- used when command must fail for test to pass 49 if [ $1 -eq 0 ]; then 77 ip -$f netconf show dev "$dev" > /dev/null 81 if [ $ret -ne 0 ] ;then 83 test $r -eq 0 && ret=0 91 devbr="test-br0" [all …]
|
H A D | netdevice.sh | 2 # SPDX-License-Identifier: GPL-2.0 11 # Kselftest framework requirement - SKIP code is 4. 21 ip link show "$netdev" |grep -q UP 22 if [ $? -eq 0 ];then 28 if [ $? -ne 0 ];then 46 if [ $NETDEV_STARTED -eq 0 ];then 52 if [ $? -ne 0 ];then 55 ip link show $netdev |grep -q "$MACADDR" 56 if [ $? -eq 0 ];then 65 if [ $? -eq 0 ];then [all …]
|
/openbmc/linux/arch/arm64/lib/ |
H A D | mte.S | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 7 #include <asm/asm-uaccess.h> 13 .arch armv8.5-a+memtag 16 * multitag_transfer_size - set \reg to the block size that is accessed by the 28 * x0 - address of the page to be cleared 34 tst x0, #(PAGE_SIZE - 1) 35 b.ne 1b 43 * x0 - address to the beginning of the page 46 and x0, x0, #(1 << MTE_TAG_SHIFT) - 1 // clear the tag 55 tst x0, #(PAGE_SIZE - 1) [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/pinctrl/ |
H A D | cirrus,madera.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - patches@opensource.cirrus.com 30 Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt 33 pin-settings: 40 '-pins$': 43 - $ref: pincfg-node.yaml# 44 - $ref: pinmux-node.yaml# 63 dmic6, io, dsp-gpio, irq1, irq2, fll1-clk, [all …]
|
/openbmc/openbmc/poky/meta/files/common-licenses/ |
H A D | CC-BY-NC-SA-2.0-FR | 1 Creative Commons Paternité - Pas d'Utilisation Commerciale - Partage Des Conditions Initiales A l'I… 3 …ne fournit pas de services de conseil juridique. La distribution de la présente version de ce cont… 7 L'Oeuvre (telle que définie ci-dessous) est mise à disposition selon les termes du présent contrat … 9 …-ci. Selon les termes et les obligations du présent contrat, la partie Offrante propose à la parti… 15 …-mêmes des oeuvres séparées et indépendantes. Constituent notamment des Oeuvres dites Collectives … 17 …euvre qui constitue une Oeuvre dite Collective. Une Oeuvre dite Collective ne sera pas considérée … 25 …Offrant et indiqués dans le titre de ce Contrat : Paternité - Pas d'Utilisation Commerciale - Part… 41 …-dessus peuvent être exercés sur tous les supports, médias, procédés techniques et formats. Les dr… 46 …ne peut pas offrir ou imposer de conditions d'utilisation de l'Oeuvre qui altèrent ou restreignent… 48 …- Pas d'Utilisation Commerciale - Partage Des Conditions Initiales A l'Identique 2.0 Japon). L'Acc… [all …]
|
/openbmc/linux/Documentation/virt/ |
H A D | ne_overview.rst | 1 .. SPDX-License-Identifier: GPL-2.0 10 Nitro Enclaves (NE) is a new Amazon Elastic Compute Cloud (EC2) capability 20 The current supported architectures for the NE kernel driver, available in the 25 primary VM, that communicates with the NE kernel driver via an ioctl interface. 29 1. An enclave abstraction process - a user space process running in the primary 30 VM guest that uses the provided ioctl interface of the NE driver to spawn an 33 There is a NE emulated PCI device exposed to the primary VM. The driver for this 34 new PCI device is included in the NE driver. 42 2. The enclave itself - a VM running on the same host as the primary VM that 53 available for the primary VM. A CPU pool has to be set for NE purposes by an [all …]
|
/openbmc/linux/samples/bpf/ |
H A D | test_cgrp2_sock.sh | 2 # SPDX-License-Identifier: GPL-2.0 8 CGRP_MNT="/tmp/cgroupv2-test_cgrp2_sock" 17 [ $rc -ne 0 ] && status="FAIL" 19 printf "%-50s [%4s]\n" "$2" "$status" 25 echo $out | grep -q "$1" 26 if [ $? -ne 0 ]; then 38 out=$($TEST -6) 39 echo $out | grep -q "$1" 40 if [ $? -ne 0 ]; then 64 [ -n "$msg" ] && echo "ERROR: $msg" [all …]
|
/openbmc/openbmc/poky/meta/recipes-extended/zip/zip-3.0/ |
H A D | 0001-configure-Specify-correct-function-signatures-and-de.patch | 3 Date: Wed, 10 Aug 2022 17:16:23 -0700 9 -Wimplicit-function-declaration into hard error e.g. clang-15+ 11 Upstream-Status: Inactive-Upstream 12 Signed-off-by: Khem Raj <raj.khem@gmail.com> 13 --- 14 unix/configure | 79 +++++++++++++++++++++++++++++++++++++++++--------- 15 1 file changed, 66 insertions(+), 13 deletions(-) 17 diff --git a/unix/configure b/unix/configure 19 --- a/unix/configure 21 @@ -513,21 +513,70 @@ $CC $CFLAGS -c conftest.c >/dev/null 2>/dev/null [all …]
|
/openbmc/openbmc/meta-openembedded/meta-networking/recipes-daemons/iscsi-initiator-utils/files/ |
H A D | initd.debian | 4 # Required-Start: 5 # Required-Stop: 6 # Default-Start: 7 # Default-Stop: 8 # Short-Description: Starts and stops the iSCSI initiator services and logins to default targets 10 #set -x 16 [ -x "$DAEMON" ] || exit 0 18 if [ ! -d /sys/class/ ]; then 29 modprobe -q iscsi_tcp 2>/dev/null || : 30 modprobe -q ib_iser 2>/dev/null || : [all …]
|
/openbmc/linux/tools/testing/selftests/ftrace/test.d/ftrace/ |
H A D | func_traceonoff_triggers.tc | 2 # SPDX-License-Identifier: GPL-2.0 3 # description: ftrace - test for function traceon/off triggers 26 grep -v '^#' trace | wc -l 34 if [ $cnt -ne 0 ]; then 47 if [ $cnt -eq 0 ]; then 54 if [ -d ../../instances -a -f ../../available_filter_functions ]; then 57 x=`grep '^\.schedule$' available_filter_functions | wc -l` 58 if [ "$x" -eq 1 ]; then 65 if [ -d ../../instances ]; then # Check instances 75 cnt=`grep schedule set_ftrace_filter | wc -l` [all …]
|
/openbmc/openbmc/meta-fii/meta-kudo/recipes-kudo/kudo-fw-utility/kudo-fw/ |
H A D | kudo-fw.sh | 4 # shellcheck source=meta-fii/meta-kudo/recipes-kudo/kudo-fw-utility/kudo-fw/kudo-lib.sh 7 source /usr/libexec/kudo-fw/kudo-lib.sh 11 KERNEL_SYSFS_FIU="/sys/bus/platform/drivers/NPCM-FIU" 14 i2cset -y -f -a ${I2C_BMC_CPLD[0]} 0x${I2C_BMC_CPLD[1]} 0x10 0x01 17 if [ -d "${KERNEL_SYSFS_FIU}/${KERNEL_FIU_ID}" ]; then 24 BIOS_MTD=$(grep "bios" /proc/mtd | sed -n 's/^\(.*\):.*/\1/p') 26 if [ ! -f "$1" ]; then 32 if [ "$(flashcp -v $1 /dev/${BIOS_MTD})" -ne 0 ]; then 39 if [ -d "${KERNEL_SYSFS_FIU}/${KERNEL_FIU_ID}" ]; then 42 i2cset -y -f -a ${I2C_BMC_CPLD[0]} 0x${I2C_BMC_CPLD[1]} 0x10 0x00 [all …]
|
/openbmc/linux/include/uapi/linux/ |
H A D | nitro_enclaves.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 3 * Copyright 2020-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. 12 * DOC: Nitro Enclaves (NE) Kernel Driver Interface 16 * NE_CREATE_VM - The command is used to create a slot that is associated with 22 * A NE CPU pool has to be set before calling this function. The 23 * pool can be set after the NE driver load, using 25 * Its format is the detailed in the cpu-lists section: 26 * https://www.kernel.org/doc/html/latest/admin-guide/kernel-parameters.html 34 * * Enclave file descriptor - Enclave file descriptor used with 37 * * -1 - There was a failure in the ioctl logic. [all …]
|
/openbmc/openbmc/meta-security/recipes-mac/smack/tcp-smack-test/ |
H A D | test_smack_tcp_sockets.sh | 7 echo -n "label1 label2 -----" > $SMACK_PATH/load 10 if [ -z $tcp_server ]; then 11 if [ -f "/tmp/tcp_server" ]; then 19 if [ -z $tcp_client ]; then 20 if [ -f "/tmp/tcp_client" ]; then 40 if [ $server_rv -eq 0 -o $client_rv -eq 0 ]; then 47 echo -n "label1 label2 rw---" > $SMACK_PATH/load 58 if [ $server_rv -ne 0 -o $client_rv -ne 0 ]; then 73 if [ $server_rv -ne 0 -o $client_rv -ne 0 ]; then 89 if [ $server_rv -ne 0 -o $client_rv -ne 0 ]; then [all …]
|
/openbmc/openbmc/meta-security/recipes-mac/smack/udp-smack-test/ |
H A D | test_smack_udp_sockets.sh | 7 if [ -z $udp_server ]; then 8 if [ -f "/tmp/udp_server" ]; then 16 if [ -z $udp_client ]; then 17 if [ -f "/tmp/udp_client" ]; then 27 echo -n "label1 label2 -----" > $SMACK_PATH/load 39 if [ $server_rv -eq 0 ]; then 46 echo -n "label1 label2 rw---" > $SMACK_PATH/load 57 if [ $server_rv -ne 0 -o $client_rv -ne 0 ]; then 72 if [ $server_rv -ne 0 -o $client_rv -ne 0 ]; then 88 if [ $server_rv -ne 0 -o $client_rv -ne 0 ]; then [all …]
|
/openbmc/linux/tools/testing/selftests/rcutorture/bin/ |
H A D | parse-console.sh | 2 # SPDX-License-Identifier: GPL-2.0+ 6 # a text string for error-message purposes. 8 # Usage: parse-console.sh file title 14 T=${TMPDIR-/tmp}/parse-console.sh.$$ 18 trap 'rm -f $T.seq $T.diags' 0 23 if test -f "$file" -a -r "$file" 30 if grep -Pq '\x00' < $file 41 if grep -q FAILURE $file || grep -q -e '-torture.*!!!' $file 43 nerrs=`grep --binary-files=text '!!!' $file | 44 tail -1 | [all …]
|
/openbmc/linux/tools/memory-model/scripts/ |
H A D | cmplitmushist.sh | 2 # SPDX-License-Identifier: GPL-2.0+ 11 trap 'rm -rf $T' 0 23 if grep -q ': Unknown macro ' $1 || grep -q ': Unknown macro ' $2 25 if grep -q ': Unknown macro ' $1 28 sed -e 's/^.*: Unknown macro //' | 29 sed -e 's/ (User error).*$//'` 32 if grep -q ': Unknown macro ' $2 35 sed -e 's/^.*: Unknown macro //' | 36 sed -e 's/ (User error).*$//'` 41 elif grep -q '^Command exited with non-zero status 124' $1 || [all …]
|
/openbmc/linux/tools/testing/selftests/net/mptcp/ |
H A D | mptcp_sockopt.sh | 2 # SPDX-License-Identifier: GPL-2.0 19 rndh=$(printf %x $sec)-$(mktemp -u XXXXXX) 20 ns1="ns1-$rndh" 21 ns2="ns2-$rndh" 22 ns_sbox="ns_sbox-$rndh" 32 ip netns exec $ns $t -A OUTPUT -p tcp --syn -m mark --mark $m -j ACCEPT 35 ip netns exec $ns $t -A OUTPUT -p tcp --tcp-flags RST RST -m mark --mark 0 -j ACCEPT 37 ip netns exec $ns $t -A OUTPUT -p tcp -m mark --mark $m -j ACCEPT 38 ip netns exec $ns $t -A OUTPUT -p tcp -m mark --mark 0 -j DROP 47 ip -net $netns link set lo up [all …]
|