ebpfhelpers

package module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 27, 2022 License: MIT Imports: 7 Imported by: 0

README

ebpf-helpers

This is a copy/fork of https://github.com/cilium/ebpf/tree/master/internal/sys

Documentation

Overview

Forked from https://github.com/cilium/ebpf/blob/master/internal/output.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Identifier

func Identifier(str string) string

Identifier turns a C style type or field name into an exportable Go equivalent.

func WriteFormatted

func WriteFormatted(src []byte, out io.Writer) error

WriteFormatted outputs a formatted src into out.

If formatting fails it returns an informative error message.

Types

This section is empty.

Directories

Path Synopsis
cmd
gentypes
Program gentypes reads a compressed vmlinux .BTF section and generates syscall bindings from it.
Program gentypes reads a compressed vmlinux .BTF section and generates syscall bindings from it.
Package sys contains bindings for the BPF syscall.
Package sys contains bindings for the BPF syscall.
Package unix re-exports Linux specific parts of golang.org/x/sys/unix.
Package unix re-exports Linux specific parts of golang.org/x/sys/unix.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL