-
Notifications
You must be signed in to change notification settings - Fork 586
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ebpf: per target configuration with labels (#2977)
- Loading branch information
1 parent
5f808d3
commit 3713fae
Showing
17 changed files
with
458 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package demangle | ||
|
||
import "github.com/ianlancetaylor/demangle" | ||
|
||
var DemangleUnspecified []demangle.Option = nil | ||
var DemangleNoneSpecified []demangle.Option = make([]demangle.Option, 0) | ||
var DemangleSimplified = []demangle.Option{demangle.NoParams, demangle.NoEnclosingParams, demangle.NoTemplateParams} | ||
var DemangleTemplates = []demangle.Option{demangle.NoParams, demangle.NoEnclosingParams} | ||
var DemangleFull = []demangle.Option{demangle.NoClones} | ||
|
||
func ConvertDemangleOptions(o string) []demangle.Option { | ||
switch o { | ||
case "none": | ||
return DemangleNoneSpecified | ||
case "simplified": | ||
return DemangleSimplified | ||
case "templates": | ||
return DemangleTemplates | ||
case "full": | ||
return DemangleFull | ||
default: | ||
return DemangleUnspecified | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.