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
"could not automatically find a spy for program \"%s\". Pass spy name via %s argument, for example: \n %s\n\nAvailable spies are: %s\n%s\nIf you believe this is a mistake, please submit an issue at %s",
39
+
"could not automatically find a spy for program \"%s\". Pass spy name via %s argument, for example: \n %s\n\nAvailable spies are: %s\nIf you believe this is a mistake, please submit an issue at %s",
logrus.Infof("we recommend specifying application name via %s flag or env variable %s", color.YellowString("-application-name"), color.YellowString("PYROSCOPE_APPLICATION_NAME"))
logrus.Fatal("if you're running pyroscope in a Docker container, add --cap-add=sys_ptrace. See our Docker Guide for more information: https://pyroscope.io/docs/docker-guide")
13
+
}
14
+
}
15
+
16
+
// See linux source code: https://github.com/torvalds/linux/blob/6ad4bf6ea1609fb539a62f10fca87ddbd53a0315/include/uapi/linux/capability.h#L235
17
+
constCAP_SYS_PTRACE=19
18
+
19
+
funchasSysPtraceCap() bool {
20
+
c, err:=caps.Get()
21
+
iferr!=nil {
22
+
logrus.Warn("Could not read capabilities. Please submit an issue at https://github.com/pyroscope-io/pyroscope/issues")
23
+
returntrue// I don't know of cases when this would happen, but if it does I'd rather give this program a chance
24
+
}
25
+
26
+
ifc.Inheritable() ==0 {
27
+
logrus.Warn("Could not read capabilities. Please submit an issue at https://github.com/pyroscope-io/pyroscope/issues")
28
+
returntrue// I don't know of cases when this would happen, but if it does I'd rather give this program a chance
0 commit comments