...

Source file src/internal/fuzz/trace.go

Documentation: internal/fuzz

     1  // Copyright 2021 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  //go:build !libfuzzer
     6  
     7  package fuzz
     8  
     9  import _ "unsafe" // for go:linkname
    10  
    11  //go:linkname libfuzzerTraceCmp1 runtime.libfuzzerTraceCmp1
    12  //go:linkname libfuzzerTraceCmp2 runtime.libfuzzerTraceCmp2
    13  //go:linkname libfuzzerTraceCmp4 runtime.libfuzzerTraceCmp4
    14  //go:linkname libfuzzerTraceCmp8 runtime.libfuzzerTraceCmp8
    15  
    16  //go:linkname libfuzzerTraceConstCmp1 runtime.libfuzzerTraceConstCmp1
    17  //go:linkname libfuzzerTraceConstCmp2 runtime.libfuzzerTraceConstCmp2
    18  //go:linkname libfuzzerTraceConstCmp4 runtime.libfuzzerTraceConstCmp4
    19  //go:linkname libfuzzerTraceConstCmp8 runtime.libfuzzerTraceConstCmp8
    20  
    21  //go:linkname libfuzzerHookStrCmp runtime.libfuzzerHookStrCmp
    22  //go:linkname libfuzzerHookEqualFold runtime.libfuzzerHookEqualFold
    23  
    24  func libfuzzerTraceCmp1(arg0, arg1 uint8, fakePC uint)  {}
    25  func libfuzzerTraceCmp2(arg0, arg1 uint16, fakePC uint) {}
    26  func libfuzzerTraceCmp4(arg0, arg1 uint32, fakePC uint) {}
    27  func libfuzzerTraceCmp8(arg0, arg1 uint64, fakePC uint) {}
    28  
    29  func libfuzzerTraceConstCmp1(arg0, arg1 uint8, fakePC uint)  {}
    30  func libfuzzerTraceConstCmp2(arg0, arg1 uint16, fakePC uint) {}
    31  func libfuzzerTraceConstCmp4(arg0, arg1 uint32, fakePC uint) {}
    32  func libfuzzerTraceConstCmp8(arg0, arg1 uint64, fakePC uint) {}
    33  
    34  func libfuzzerHookStrCmp(arg0, arg1 string, fakePC uint)    {}
    35  func libfuzzerHookEqualFold(arg0, arg1 string, fakePC uint) {}
    36  

View as plain text