This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -euo pipefail | |
MYNAME=$(basename "${0}") | |
opts=$(getopt --name "$MYNAME" --options 'hVsEnu:g:D:' \ | |
--longoptions 'help,version,shell,preserve-env,non-interactive,user:,group:,chdir:' -- "${@}") | |
eval set -- "${opts}" | |
U=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -euo pipefail | |
if [ $# -lt 1 ] || [ "$1" = "-h" ] || [ "$1" = "--help" ]; then | |
echo "Usage: $0 ALIAS" | |
echo "To be executed on the Flatcar instance" | |
exit 1 | |
fi | |
ALIAS="$1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define NETMAP_WITH_LIBS | |
#include <net/netmap_user.h> | |
#include <sys/poll.h> | |
void sender(int tx_sync) { | |
struct nm_desc *d; | |
struct pollfd fds; | |
printf("Using %s\n", tx_sync ? "TXSYNC ioctl" : "TX_POLL POLLIN poll"); | |
d = nm_open("netmap:pipe}0", NULL, 0, 0); | |
fds.fd = NETMAP_FD(d); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TRACE:smoltcp::socket::set: [0]: adding | |
connecting | |
TRACE:smoltcp::socket::tcp: #0:0.0.0.0:50180:78.46.93.45:80: state=CLOSED=>SYN-SENT | |
TRACE:smoltcp::socket::tcp: #0:0.0.0.0:50180:78.46.93.45:80: outgoing segment will update window | |
TRACE:smoltcp::socket::tcp: #0:0.0.0.0:50180:78.46.93.45:80: sending SYN | |
DEBUG:smoltcp::iface::ethernet: address 143.248.197.1 not in neighbor cache, sending ARP request | |
TRACE:smoltcp::socket::meta: #0: neighbor 78.46.93.45 missing, silencing until t+3000ms | |
TRACE:smoltcp::iface::neighbor: filled 143.248.197.1 => 00-1a-1e-00-41-a0 (was empty) | |
TRACE:smoltcp::socket::meta: #0: neighbor 78.46.93.45 discovered, unsilencing | |
TRACE:smoltcp::socket::tcp: #0:0.0.0.0:50180:78.46.93.45:80: outgoing segment will update window |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/arch/x86/include/asm/pf_in.h b/arch/x86/include/asm/pf_in.h | |
new file mode 100644 | |
index 0000000..e05341a | |
--- /dev/null | |
+++ b/arch/x86/include/asm/pf_in.h | |
@@ -0,0 +1,39 @@ | |
+/* | |
+ * Fault Injection Test harness (FI) | |
+ * Copyright (C) Intel Crop. | |
+ * |