packages/utils/oprofile/patches/10-use-insmod-instead-of-modprobe.patch

23 lines
560 B
Diff
Raw Normal View History

diff --git a/utils/opcontrol b/utils/opcontrol
index ce53010..60a7e64 100644
--- a/utils/opcontrol
+++ b/utils/opcontrol
@@ -170,7 +170,7 @@ load_module_26()
{
grep oprofilefs /proc/filesystems >/dev/null
if test "$?" -ne 0; then
- modprobe oprofile
+ insmod oprofile
if test "$?" != "0"; then
# couldn't load the module
return
@@ -200,7 +200,7 @@ load_module_24()
{
grep oprof /proc/devices >/dev/null
if test "$?" -ne 0; then
- modprobe oprofile
+ insmod oprofile
if test "$?" != "0"; then
# couldn't load a module
return