You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Delete all stacks.//// The capacity will be difficult to estimate without counting as it's// likely that there will be more than we need due to duplicated stack IDs.keysToDelete:=make([]int32, 0, len(stacksKeys))
forkey:=rangestacksKeys {
keysToDelete=append(keysToDelete, key)
}
// TODO(javierhonduco): Getting -ENOTSUPP, perhaps my kernel doesn't support it?// Needs more investigation.//processed, err:=p.bpfMaps.stacks.DeleteKeyBatch(unsafe.Pointer(&keysToDelete[0]), uint32(len(keysToDelete)))
level.Debug(p.logger).Log("msg", "deleted counts map in batch", "deleted", processed)
iferr!=nil {
returnfmt.Errorf("failed to delete stacks in batch: %w", err)
}
cc @javierhonduco
ref #602 and #395
The text was updated successfully, but these errors were encountered: