elfparser

package
v0.0.0-...-76a4e66 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the License. A copy of the License is located at

http://aws.amazon.com/apache2.0/

or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMapNameFromBPFPinPath

func GetMapNameFromBPFPinPath(pinPath string) (string, string)

func IsMapGlobal

func IsMapGlobal(pinPath string) bool

func New

func New(customizedPinPath string) *bpfSDK

Types

type AWSEbpfSdkAPIs

type AWSEbpfSdkAPIs interface {
	IncreaseRlimit() error
	LoadBpfFile(path string) (map[string]BpfData, map[string]ebpf_maps.BpfMap, error)
	RecoverGlobalMaps() (map[string]ebpf_maps.BpfMap, error)
	RecoverAllBpfProgramsAndMaps() (map[string]BpfData, error)
}

type BpfData

type BpfData struct {
	Program ebpf_progs.BpfProgram       // Return the program
	Maps    map[string]ebpf_maps.BpfMap // List of associated maps
}

Directories

Path Synopsis
Package mock_elfparser is a generated GoMock package.
Package mock_elfparser is a generated GoMock package.

Jump to

Keyboard shortcuts

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