debugging-modules.txt 759 B

123456789101112131415161718
  1. Debugging Modules after 2.6.3
  2. -----------------------------
  3. In almost all distributions, the kernel asks for modules which don't
  4. exist, such as "net-pf-10" or whatever. Changing "modprobe -q" to
  5. "succeed" in this case is hacky and breaks some setups, and also we
  6. want to know if it failed for the fallback code for old aliases in
  7. fs/char_dev.c, for example.
  8. In the past a debugging message which would fill people's logs was
  9. emitted. This debugging message has been removed. The correct way
  10. of debugging module problems is something like this:
  11. echo '#! /bin/sh' > /tmp/modprobe
  12. echo 'echo "$@" >> /tmp/modprobe.log' >> /tmp/modprobe
  13. echo 'exec /sbin/modprobe "$@"' >> /tmp/modprobe
  14. chmod a+x /tmp/modprobe
  15. echo /tmp/modprobe > /proc/sys/kernel/modprobe