Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make types for OpenBSD/arm64 #993

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion disk/disk_openbsd.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,11 @@ func IOCountersWithContext(ctx context.Context, names ...string) (map[string]IOC
if err != nil {
continue
}
name := common.IntToString(d.Name[:])
uint8Name := make([]uint8, len(d.Name))
for i, v := range d.Name {
uint8Name[i] = uint8(v)
}
name := common.UintToString(uint8Name)

if len(names) > 0 && !common.StringsHas(names, name) {
continue
Expand Down
37 changes: 37 additions & 0 deletions disk/disk_openbsd_arm64.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 33 additions & 0 deletions host/host_openbsd_arm64.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

37 changes: 37 additions & 0 deletions mem/mem_openbsd_arm64.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion process/process_openbsd.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@ func (p *Process) NameWithContext(ctx context.Context) (string, error) {
if err != nil {
return "", err
}
name := common.IntToString(k.Comm[:])
uint8Name := make([]uint8, len(k.Comm))
for i, v := range d.Name {
uint8Name[i] = uint8(v)
}
name := common.UintToString(uint8Name)

if len(name) >= 15 {
cmdlineSlice, err := p.CmdlineSliceWithContext(ctx)
Expand Down
202 changes: 202 additions & 0 deletions process/process_openbsd_arm64.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion v3/disk/disk_openbsd.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,11 @@ func IOCountersWithContext(ctx context.Context, names ...string) (map[string]IOC
if err != nil {
continue
}
name := common.IntToString(d.Name[:])
uint8Name := make([]uint8, len(d.Name))
for i, v := range d.Name {
uint8Name[i] = uint8(v)
}
name := common.UintToString(uint8Name)

if len(names) > 0 && !common.StringsHas(names, name) {
continue
Expand Down
37 changes: 37 additions & 0 deletions v3/disk/disk_openbsd_arm64.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading