Skip to content

Instantly share code, notes, and snippets.

View satoru-takeuchi's full-sized avatar

Satoru Takeuchi satoru-takeuchi

View GitHub Profile
ffffffff8159a7b0 <raid6_avx21_gen_syndrome>:
ffffffff8159a7b0: 8d 47 fd lea -0x3(%rdi),%eax
ffffffff8159a7b3: 55 push %rbp
ffffffff8159a7b4: 48 98 cltq
ffffffff8159a7b6: 48 89 e5 mov %rsp,%rbp
ffffffff8159a7b9: 41 57 push %r15
ffffffff8159a7bb: 48 83 c0 01 add $0x1,%rax
ffffffff8159a7bf: 41 56 push %r14
ffffffff8159a7c1: 41 55 push %r13
ffffffff8159a7c3: 41 54 push %r12
...
0000000000400510 <main>:
400510: 55 push %rbp
400511: 53 push %rbx
400512: bb 80 10 60 00 mov $0x601080,%ebx
400517: 48 83 ec 08 sub $0x8,%rsp
40051b: e8 90 ff ff ff callq 4004b0 <__errno_location@plt>
400520: 48 89 c5 mov %rax,%rbp
400523: ba 00 10 00 00 mov $0x1000,%edx
400528: be 00 10 00 00 mov $0x1000,%esi
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <err.h>
#define PAGESIZE 4096
#define DISKS 4
typedef unsigned char u8;
typedef unsigned long u64;
...
[ 0.227720] raid6: sse2x1 gen() 7985 MB/s
[ 0.295709] raid6: sse2x1 xor() 8181 MB/s
[ 0.363706] raid6: sse2x2 gen() 17531 MB/s
[ 0.431699] raid6: sse2x2 xor() 11098 MB/s
[ 0.499693] raid6: sse2x4 gen() 18509 MB/s
[ 0.567688] raid6: sse2x4 xor() 10177 MB/s
[ 0.571692] invalid opcode: 0000 [#1] SMP
[ 0.572312] Modules linked in:
[ 0.572822] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.11.0-rc8-ktest #1