mirror of
https://github.com/golang/go
synced 2024-10-04 22:31:22 -06:00
49e0300854
vs tip: BenchmarkTCP4OneShot 172994 40485 -76.60% BenchmarkTCP4OneShot-2 96581 30028 -68.91% BenchmarkTCP4OneShot-4 52615 18454 -64.93% BenchmarkTCP4OneShot-8 26351 12289 -53.36% BenchmarkTCP4OneShot-16 12258 16093 +31.29% BenchmarkTCP4OneShot-32 13200 17045 +29.13% BenchmarkTCP4OneShotTimeout 124814 42932 -65.60% BenchmarkTCP4OneShotTimeout-2 99090 29040 -70.69% BenchmarkTCP4OneShotTimeout-4 51860 18455 -64.41% BenchmarkTCP4OneShotTimeout-8 26100 12073 -53.74% BenchmarkTCP4OneShotTimeout-16 12198 16654 +36.53% BenchmarkTCP4OneShotTimeout-32 13438 17143 +27.57% BenchmarkTCP4Persistent 115647 7782 -93.27% BenchmarkTCP4Persistent-2 58024 4808 -91.71% BenchmarkTCP4Persistent-4 24715 3674 -85.13% BenchmarkTCP4Persistent-8 16431 2407 -85.35% BenchmarkTCP4Persistent-16 2336 1875 -19.73% BenchmarkTCP4Persistent-32 1689 1637 -3.08% BenchmarkTCP4PersistentTimeout 79754 7859 -90.15% BenchmarkTCP4PersistentTimeout-2 57708 5952 -89.69% BenchmarkTCP4PersistentTimeout-4 26907 3823 -85.79% BenchmarkTCP4PersistentTimeout-8 15036 2567 -82.93% BenchmarkTCP4PersistentTimeout-16 2507 1903 -24.09% BenchmarkTCP4PersistentTimeout-32 1717 1627 -5.24% vs old scheduler: benchmark old ns/op new ns/op delta BenchmarkTCPOneShot 192244 40485 -78.94% BenchmarkTCPOneShot-2 63835 30028 -52.96% BenchmarkTCPOneShot-4 35443 18454 -47.93% BenchmarkTCPOneShot-8 22140 12289 -44.49% BenchmarkTCPOneShot-16 16930 16093 -4.94% BenchmarkTCPOneShot-32 16719 17045 +1.95% BenchmarkTCPOneShotTimeout 190495 42932 -77.46% BenchmarkTCPOneShotTimeout-2 64828 29040 -55.20% BenchmarkTCPOneShotTimeout-4 34591 18455 -46.65% BenchmarkTCPOneShotTimeout-8 21989 12073 -45.10% BenchmarkTCPOneShotTimeout-16 16848 16654 -1.15% BenchmarkTCPOneShotTimeout-32 16796 17143 +2.07% BenchmarkTCPPersistent 81670 7782 -90.47% BenchmarkTCPPersistent-2 26598 4808 -81.92% BenchmarkTCPPersistent-4 15633 3674 -76.50% BenchmarkTCPPersistent-8 18093 2407 -86.70% BenchmarkTCPPersistent-16 17472 1875 -89.27% BenchmarkTCPPersistent-32 7679 1637 -78.68% BenchmarkTCPPersistentTimeout 83186 7859 -90.55% BenchmarkTCPPersistentTimeout-2 26883 5952 -77.86% BenchmarkTCPPersistentTimeout-4 15776 3823 -75.77% BenchmarkTCPPersistentTimeout-8 18180 2567 -85.88% BenchmarkTCPPersistentTimeout-16 17454 1903 -89.10% BenchmarkTCPPersistentTimeout-32 7798 1627 -79.14% R=golang-dev, iant, bradfitz, dave, rsc CC=golang-dev https://golang.org/cl/7579044
212 lines
3.4 KiB
C
212 lines
3.4 KiB
C
// Created by cgo -cdefs - DO NOT EDIT
|
|
// cgo -cdefs defs2_linux.go
|
|
|
|
|
|
enum {
|
|
EINTR = 0x4,
|
|
EAGAIN = 0xb,
|
|
ENOMEM = 0xc,
|
|
|
|
PROT_NONE = 0x0,
|
|
PROT_READ = 0x1,
|
|
PROT_WRITE = 0x2,
|
|
PROT_EXEC = 0x4,
|
|
|
|
MAP_ANON = 0x20,
|
|
MAP_PRIVATE = 0x2,
|
|
MAP_FIXED = 0x10,
|
|
|
|
MADV_DONTNEED = 0x4,
|
|
|
|
SA_RESTART = 0x10000000,
|
|
SA_ONSTACK = 0x8000000,
|
|
SA_RESTORER = 0x4000000,
|
|
SA_SIGINFO = 0x4,
|
|
|
|
SIGHUP = 0x1,
|
|
SIGINT = 0x2,
|
|
SIGQUIT = 0x3,
|
|
SIGILL = 0x4,
|
|
SIGTRAP = 0x5,
|
|
SIGABRT = 0x6,
|
|
SIGBUS = 0x7,
|
|
SIGFPE = 0x8,
|
|
SIGKILL = 0x9,
|
|
SIGUSR1 = 0xa,
|
|
SIGSEGV = 0xb,
|
|
SIGUSR2 = 0xc,
|
|
SIGPIPE = 0xd,
|
|
SIGALRM = 0xe,
|
|
SIGSTKFLT = 0x10,
|
|
SIGCHLD = 0x11,
|
|
SIGCONT = 0x12,
|
|
SIGSTOP = 0x13,
|
|
SIGTSTP = 0x14,
|
|
SIGTTIN = 0x15,
|
|
SIGTTOU = 0x16,
|
|
SIGURG = 0x17,
|
|
SIGXCPU = 0x18,
|
|
SIGXFSZ = 0x19,
|
|
SIGVTALRM = 0x1a,
|
|
SIGPROF = 0x1b,
|
|
SIGWINCH = 0x1c,
|
|
SIGIO = 0x1d,
|
|
SIGPWR = 0x1e,
|
|
SIGSYS = 0x1f,
|
|
|
|
FPE_INTDIV = 0x1,
|
|
FPE_INTOVF = 0x2,
|
|
FPE_FLTDIV = 0x3,
|
|
FPE_FLTOVF = 0x4,
|
|
FPE_FLTUND = 0x5,
|
|
FPE_FLTRES = 0x6,
|
|
FPE_FLTINV = 0x7,
|
|
FPE_FLTSUB = 0x8,
|
|
|
|
BUS_ADRALN = 0x1,
|
|
BUS_ADRERR = 0x2,
|
|
BUS_OBJERR = 0x3,
|
|
|
|
SEGV_MAPERR = 0x1,
|
|
SEGV_ACCERR = 0x2,
|
|
|
|
ITIMER_REAL = 0x0,
|
|
ITIMER_VIRTUAL = 0x1,
|
|
ITIMER_PROF = 0x2,
|
|
|
|
O_RDONLY = 0x0,
|
|
O_CLOEXEC = 0x80000,
|
|
|
|
EPOLLIN = 0x1,
|
|
EPOLLOUT = 0x4,
|
|
EPOLLERR = 0x8,
|
|
EPOLLHUP = 0x10,
|
|
EPOLLRDHUP = 0x2000,
|
|
EPOLLET = -0x80000000,
|
|
EPOLL_CLOEXEC = 0x80000,
|
|
EPOLL_CTL_ADD = 0x1,
|
|
EPOLL_CTL_DEL = 0x2,
|
|
EPOLL_CTL_MOD = 0x3,
|
|
};
|
|
|
|
typedef struct Fpreg Fpreg;
|
|
typedef struct Fpxreg Fpxreg;
|
|
typedef struct Xmmreg Xmmreg;
|
|
typedef struct Fpstate Fpstate;
|
|
typedef struct Timespec Timespec;
|
|
typedef struct Timeval Timeval;
|
|
typedef struct Sigaction Sigaction;
|
|
typedef struct Siginfo Siginfo;
|
|
typedef struct Sigaltstack Sigaltstack;
|
|
typedef struct Sigcontext Sigcontext;
|
|
typedef struct Ucontext Ucontext;
|
|
typedef struct Itimerval Itimerval;
|
|
typedef struct EpollEvent EpollEvent;
|
|
|
|
#pragma pack on
|
|
|
|
struct Fpreg {
|
|
uint16 significand[4];
|
|
uint16 exponent;
|
|
};
|
|
struct Fpxreg {
|
|
uint16 significand[4];
|
|
uint16 exponent;
|
|
uint16 padding[3];
|
|
};
|
|
struct Xmmreg {
|
|
uint32 element[4];
|
|
};
|
|
struct Fpstate {
|
|
uint32 cw;
|
|
uint32 sw;
|
|
uint32 tag;
|
|
uint32 ipoff;
|
|
uint32 cssel;
|
|
uint32 dataoff;
|
|
uint32 datasel;
|
|
Fpreg _st[8];
|
|
uint16 status;
|
|
uint16 magic;
|
|
uint32 _fxsr_env[6];
|
|
uint32 mxcsr;
|
|
uint32 reserved;
|
|
Fpxreg _fxsr_st[8];
|
|
Xmmreg _xmm[8];
|
|
uint32 padding1[44];
|
|
byte anon0[48];
|
|
};
|
|
struct Timespec {
|
|
int32 tv_sec;
|
|
int32 tv_nsec;
|
|
};
|
|
struct Timeval {
|
|
int32 tv_sec;
|
|
int32 tv_usec;
|
|
};
|
|
struct Sigaction {
|
|
void *k_sa_handler;
|
|
uint32 sa_flags;
|
|
void *sa_restorer;
|
|
uint64 sa_mask;
|
|
};
|
|
struct Siginfo {
|
|
int32 si_signo;
|
|
int32 si_errno;
|
|
int32 si_code;
|
|
byte _sifields[116];
|
|
};
|
|
struct Sigaltstack {
|
|
byte *ss_sp;
|
|
int32 ss_flags;
|
|
uint32 ss_size;
|
|
};
|
|
struct Sigcontext {
|
|
uint16 gs;
|
|
uint16 __gsh;
|
|
uint16 fs;
|
|
uint16 __fsh;
|
|
uint16 es;
|
|
uint16 __esh;
|
|
uint16 ds;
|
|
uint16 __dsh;
|
|
uint32 edi;
|
|
uint32 esi;
|
|
uint32 ebp;
|
|
uint32 esp;
|
|
uint32 ebx;
|
|
uint32 edx;
|
|
uint32 ecx;
|
|
uint32 eax;
|
|
uint32 trapno;
|
|
uint32 err;
|
|
uint32 eip;
|
|
uint16 cs;
|
|
uint16 __csh;
|
|
uint32 eflags;
|
|
uint32 esp_at_signal;
|
|
uint16 ss;
|
|
uint16 __ssh;
|
|
Fpstate *fpstate;
|
|
uint32 oldmask;
|
|
uint32 cr2;
|
|
};
|
|
struct Ucontext {
|
|
uint32 uc_flags;
|
|
Ucontext *uc_link;
|
|
Sigaltstack uc_stack;
|
|
Sigcontext uc_mcontext;
|
|
uint32 uc_sigmask;
|
|
};
|
|
struct Itimerval {
|
|
Timeval it_interval;
|
|
Timeval it_value;
|
|
};
|
|
struct EpollEvent {
|
|
uint32 events;
|
|
uint64 data;
|
|
};
|
|
|
|
|
|
#pragma pack off
|