diff --git a/common/utils.go b/common/utils.go index ea7b98a9..f8ff3209 100644 --- a/common/utils.go +++ b/common/utils.go @@ -219,5 +219,6 @@ func EnabledXdp() bool { func NeedsRunningInCompatibleMode() bool { kernel58, _ := version.NewVersion("5.8") - return viper.GetBool("compatible") || GetKernelVersion().LessThan(kernel58) + curKernelVersion := GetKernelVersion() + return viper.GetBool("compatible") || curKernelVersion == nil || curKernelVersion.LessThan(kernel58) } diff --git a/docs/kyanos-demo-1.gif b/docs/kyanos-demo-1.gif index 2354a0ac..b04d2a14 100644 Binary files a/docs/kyanos-demo-1.gif and b/docs/kyanos-demo-1.gif differ