Berkeley Packet Filter (BPF) assembler.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

vm_debug.go 361B

123456789101112131415161718
  1. // Copyright (c) 2019 Wijnand Modderman-Lenstra. 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. package bpf
  5. import (
  6. "fmt"
  7. "os"
  8. )
  9. var debug = os.Getenv("BPF_VM_DEBUG") != ""
  10. func debugf(format string, v ...interface{}) {
  11. if debug {
  12. fmt.Fprintf(os.Stderr, format, v...)
  13. }
  14. }