• Shawn Walker-Salas's avatar
    runtime/trace: fix tracing of blocking system calls · 001a75a7
    Shawn Walker-Salas authored
    The placement and invocation of traceGoSysCall when using
    entersyscallblock() instead of entersyscall() differs enough that the
    TestTraceSymbolize test can fail on some platforms.
    
    This change moves the invocation of traceGoSysCall for entersyscall() so
    that the same number of "frames to skip" are present in the trace as when
    entersyscallblock() is used ensuring system call traces remain identical
    regardless of internal implementation choices.
    
    Fixes golang/go#12056
    
    Change-Id: I8361e91aa3708f5053f98263dfe9feb8c5d1d969
    Reviewed-on: https://go-review.googlesource.com/13861
    Run-TryBot: Dmitry Vyukov <dvyukov@google.com>
    Reviewed-by: 's avatarDmitry Vyukov <dvyukov@google.com>
    001a75a7
trace.go 26.3 KB