From 3d6362c6f3a4a2256a9c26d79a0d582e3414d9cd Mon Sep 17 00:00:00 2001 From: Lukas Berk Date: Wed, 7 Nov 2012 13:38:24 -0500 Subject: [PATCH] Include --runtime=dyninst in error message for unprivileged user * session.cxx : mention that --runtime=dyninst may be used in the case of an unprivileged user, when trying to probe userspace --- session.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/session.cxx b/session.cxx index 410ef13b6..68d51244c 100644 --- a/session.cxx +++ b/session.cxx @@ -1387,6 +1387,9 @@ systemtap_session::check_options (int argc, char * const argv []) cerr << _("You are trying to run systemtap as a normal user.\n" "You should either be root, or be part of " "the group \"stapusr\" and possibly one of the groups \"stapsys\" or \"stapdev\".\n"); +#if HAVE_DYNINST + cerr << _("Alternatively, you may specify --runtime=dyninst for userspace probing.\n"); +#endif usage (1); // does not return. } } -- 2.43.5