Skip to content

Instantly share code, notes, and snippets.

home/vsrinivas/tmp -ferror-limit 19 -fgnuc-version=4.2.1 -fcolor-diagnostics -faddrsig -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o /tmp/attr-7dad78.o -x c attr.c
1. attr.c:4:10: current parser token ';'
2. attr.c:3:34: parsing function body 'main'
3. attr.c:3:34: in compound statement ('{}')
#0 0x00007f7bc85043b1 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/usr/lib/llvm-15/bin/../lib/libLLVM-15.so.1+0xf043b1)
#1 0x00007f7bc85020fe llvm::sys::RunSignalHandlers() (/usr/lib/llvm-15/bin/../lib/libLLVM-15.so.1+0xf020fe)
#2 0x00007f7bc85048d6 (/usr/lib/llvm-15/bin/../lib/libLLVM-15.so.1+0xf048d6)
#3 0x00007f7bc6e42520 (/lib/x86_64-linux-gnu/libc.so.6+0x42520)
#4 0x00007f7bcfa88777 clang::Sema::DiagnoseAssignmentResult(clang::Sema::AssignConvertType, clang::SourceLocation, clang::QualType, clang::QualType, clang::Expr*, clang::Sema::AssignmentAction, bool*) (/usr/lib/llvm-15/bin/../lib/libclang-cpp.so.15+0x1488777)
#5 0x00007f7bcfa87645 clang::Sema::CheckAssignmentOperands(clang::Expr*, clang::Act
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 6.4.0-rc2 Kernel Configuration
#
CONFIG_CC_VERSION_TEXT="gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0"
CONFIG_CC_IS_GCC=y
CONFIG_GCC_VERSION=90400
CONFIG_CLANG_VERSION=0
CONFIG_AS_IS_GNU=y
CONFIG_AS_VERSION=23400
diff --git a/arch/x86/kvm/Kconfig b/arch/x86/kvm/Kconfig
index 129f66fe7a11..87ff1e5f354d 100644
--- a/arch/x86/kvm/Kconfig
+++ b/arch/x86/kvm/Kconfig
@@ -140,4 +140,7 @@ config KVM_XEN
config KVM_EXTERNAL_WRITE_TRACKING
bool
+config KVM_MODULE_VERSION
+ int
qemu-system-x86_64 --enable-kvm -kernel vmlinux -append "console=ttyS0 root=/dev/nvme0n1 init=/sbin/sh" -cpu host -smp 2 -m 2G -display none -serial stdio -drive file=/tmp/testdisk.img,if=none,id=nvme -device nvme,drive=nvme,serial=disk -drive file=/tmp/vac.img,if=none,id=nvme1 -device nvme,drive=nvme1,serial=disk1 -drive file=/tmp/disk.img,if=none,id=nvme2 -device nvme,drive=nvme2,serial=disk2 -no-reboot
/tmp/q/qemu-system-x86_64 --no-reboot -nodefaults -device pc-testdev -device isa-debug-exit,iobase=0xf4,iosize=0x4 -vnc none -serial stdio -device pci-testdev -machine accel=kvm -L /tmp/q/share/qemu -kernel x86/msr.flat
for i in *.flat; do /tmp/q/qemu-system-x86_64 --no-reboot -nodefaults -device pc-testdev -device isa-debug-exit,iobase=0xf4,iosize=0x4 -vnc none -serial stdio -device pci-testdev -machine accel=kvm -L /tmp/q/share/qemu -kernel $i; done
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 6.4.0-rc2 Kernel Configuration
#
CONFIG_CC_VERSION_TEXT="gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0"
CONFIG_CC_IS_GCC=y
CONFIG_GCC_VERSION=90400
CONFIG_CLANG_VERSION=0
CONFIG_AS_IS_GNU=y
CONFIG_AS_VERSION=23400
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 6.4.0-rc2 Kernel Configuration
#
CONFIG_CC_VERSION_TEXT="gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0"
CONFIG_CC_IS_GCC=y
CONFIG_GCC_VERSION=90400
CONFIG_CLANG_VERSION=0
CONFIG_AS_IS_GNU=y
CONFIG_AS_VERSION=23400
#include <pthread.h>
static int go;
static int should_exit;
void *ctr(void *p) {
int *counter = p;
for (;;) {
if (__atomic_load_n(&go, __ATOMIC_RELAXED))
always [madvise] never
mode: always
[always] madvise never
Initializing array made of 33554432 64-bit words (256.00 MiB).
Source pages allocated with transparent hugepages: 100.0% (65536 pages, 100.0% flagged)
Legend:
BandW: Implied bandwidth (assuming 64-byte cache line) in MB/s
% Eff: Effectiness of this lane count compared to the prior, as a % of ideal
Speedup: Speedup factor for this many lanes versus one lane
Applying Sattolo's algorithm... chain total: 33554432
1
> f5ab40da
167772150 steps in 14312734 uS
715.446776 MB/s
2
> 3d86c6d0
167772140 steps in 7332881 uS
1396.449605 MB/s
3
> 6c41197b
ffffffff801c2500: 55 push %rbp
ffffffff801c2501: 48 89 e5 mov %rsp,%rbp
ffffffff801c2504: 8b 05 66 18 1a 00 mov 0x1a1866(%rip),%eax # ffffffff80363d70 <wall_clock>
ffffffff801c250a: 83 f8 01 cmp $0x1,%eax
ffffffff801c250d: 7f 08 jg ffffffff801c2517 <arch_current_ticks()+0x17>
ffffffff801c250f: 85 c0 test %eax,%eax
ffffffff801c2511: 75 0f jne ffffffff801c2522 <arch_current_ticks()+0x22>
ffffffff801c2513: 31 c0 xor %eax,%eax
ffffffff801c2515: 5d pop %rbp
ffffffff801c2516: c3 retq