Debian Bug report logs -
#427572
pciutils: 'pcimodules' shows hyphen where 'lsmod' shows underscore
Reported by: "A. Costa" <agcosta@gis.net>
Date: Mon, 4 Jun 2007 22:48:01 UTC
Severity: normal
Found in version pciutils/1:2.2.4-1
Done: Aníbal Monsalve Salazar <anibal@debian.org>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded to debian-bugs-dist@lists.debian.org, Debian pciutils Maintainers <pkg-pciutils-discuss@lists.alioth.debian.org>:
Bug#427572; Package pciutils.
(full text, mbox, link).
Acknowledgement sent to "A. Costa" <agcosta@gis.net>:
New Bug report received and forwarded. Copy sent to Debian pciutils Maintainers <pkg-pciutils-discuss@lists.alioth.debian.org>.
(full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Package: pciutils
Version: 1:2.2.4-1
Severity: normal
Apologies in advance -- I doubt this is a 'pciutils' bug, but am not
sure what package it belongs to, and hope that somebody reading this
can figure it out, and reassign it to the correct package, (sorry!), if
necessary.
# 'intel-agp' with a hyphen
% locate -r 'intel.agp'
/lib/modules/2.6.18-4-686/kernel/drivers/char/agp/intel-agp.ko
/lib/modules/2.6.21-1-686/kernel/drivers/char/agp/intel-agp.ko
# what packages are those in?
% dlocate agp.ko | egrep 'intel.agp'
linux-image-2.6.18-4-686: /lib/modules/2.6.18-4-686/kernel/drivers/char/agp/intel-agp.ko
linux-image-2.6.21-1-686: /lib/modules/2.6.21-1-686/kernel/drivers/char/agp/intel-agp.ko
# another hyphen
% pcimodules | egrep 'intel.agp'
intel-agp
# no hyphen?
% lsmod | egrep '^intel.agp'
intel_agp 23004 1
I don't understand where the underscore (_) on that last line came
from.
Note: I discovered this bug, (if it's a bug), by piping the output of
'pcimodules' into a search routine of installed modules. My 'grep'
code kept missing 'intel-agp', even though it seemed to be installed
-- then I noticed the underscore.
Hope this helps...
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.21-1-686 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)
Shell: /bin/sh linked to /bin/dash
Versions of packages pciutils depends on:
ii libc6 2.5-9+b1 GNU C Library: Shared libraries
ii libpci2 2:2.1.11-3 Obsolete shared library for access
ii zlib1g 1:1.2.3-15 compression library - runtime
pciutils recommends no packages.
-- no debconf information
Reply sent to Aníbal Monsalve Salazar <anibal@debian.org>:
You have taken responsibility.
(full text, mbox, link).
Notification sent to "A. Costa" <agcosta@gis.net>:
Bug acknowledged by developer.
(full text, mbox, link).
Message #10 received at 427572-done@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Version: 1:2.2.4-1
If you run "strace pcimodules" you'll see a line similar to:
open("/lib/modules/2.6.18-4-686/modules.pcimap", O_RDONLY) = 3
and on my laptopt, /lib/modules/2.6.18-4-686/modules.pcimap
grep intel-agp /lib/modules/2.6.18-4-686/modules.pcimap
intel-agp 0x00008086 0x00007180 0xffffffff 0xffffffff 0x00060000 0xffffffff 0x0
intel-agp 0x00008086 0x00007190 0xffffffff 0xffffffff 0x00060000 0xffffffff 0x0
intel-agp 0x00008086 0x000071a0 0xffffffff 0xffffffff 0x00060000 0xffffffff 0x0
intel-agp 0x00008086 0x00007120 0xffffffff 0xffffffff 0x00060000 0xffffffff 0x0
intel-agp 0x00008086 0x00007122 0xffffffff 0xffffffff 0x00060000 0xffffffff 0x0
intel-agp 0x00008086 0x00007124 0xffffffff 0xffffffff 0x00060000 0xffffffff 0x0
intel-agp 0x00008086 0x00001130 0xffffffff 0xffffffff 0x00060000 0xffffffff 0x0
intel-agp 0x00008086 0x00002500 0xffffffff 0xffffffff 0x00060000 0xffffffff 0x0
intel-agp 0x00008086 0x00002501 0xffffffff 0xffffffff 0x00060000 0xffffffff 0x0
intel-agp 0x00008086 0x00003575 0xffffffff 0xffffffff 0x00060000 0xffffffff 0x0
intel-agp 0x00008086 0x00001a21 0xffffffff 0xffffffff 0x00060000 0xffffffff 0x0
intel-agp 0x00008086 0x00001a30 0xffffffff 0xffffffff 0x00060000 0xffffffff 0x0
intel-agp 0x00008086 0x00002560 0xffffffff 0xffffffff 0x00060000 0xffffffff 0x0
intel-agp 0x00008086 0x00002530 0xffffffff 0xffffffff 0x00060000 0xffffffff 0x0
intel-agp 0x00008086 0x00003340 0xffffffff 0xffffffff 0x00060000 0xffffffff 0x0
intel-agp 0x00008086 0x00003580 0xffffffff 0xffffffff 0x00060000 0xffffffff 0x0
intel-agp 0x00008086 0x00002531 0xffffffff 0xffffffff 0x00060000 0xffffffff 0x0
intel-agp 0x00008086 0x00002570 0xffffffff 0xffffffff 0x00060000 0xffffffff 0x0
intel-agp 0x00008086 0x00002578 0xffffffff 0xffffffff 0x00060000 0xffffffff 0x0
intel-agp 0x00008086 0x00002550 0xffffffff 0xffffffff 0x00060000 0xffffffff 0x0
intel-agp 0x00008086 0x0000255d 0xffffffff 0xffffffff 0x00060000 0xffffffff 0x0
intel-agp 0x00008086 0x00002580 0xffffffff 0xffffffff 0x00060000 0xffffffff 0x0
intel-agp 0x00008086 0x00002590 0xffffffff 0xffffffff 0x00060000 0xffffffff 0x0
intel-agp 0x00008086 0x00002770 0xffffffff 0xffffffff 0x00060000 0xffffffff 0x0
intel-agp 0x00008086 0x000027a0 0xffffffff 0xffffffff 0x00060000 0xffffffff 0x0
So, for pcimodules, intel-agp comes from /lib/modules/2.6.18-4-686/modules.pcimap
on my laptop.
As for lsmod, I don't know. Sorry.
[signature.asc (application/pgp-signature, inline)]
Information forwarded to debian-bugs-dist@lists.debian.org, Anibal Monsalve Salazar <anibal@debian.org>:
Bug#427572; Package pciutils.
(full text, mbox, link).
Acknowledgement sent to agcosta@gis.net:
Extra info received and forwarded to list. Copy sent to Anibal Monsalve Salazar <anibal@debian.org>.
(full text, mbox, link).
Message #15 received at 427572@bugs.debian.org (full text, mbox, reply):
On Sat, 26 Apr 2008 15:56:26 +1000
Aníbal Monsalve Salazar <anibal@debian.org> wrote:
> ...So, for pcimodules, intel-agp comes
> from /lib/modules/2.6.18-4-686/modules.pcimap on my laptop.
>
> As for lsmod, I don't know. Sorry.
After reading your message the other day I discovered:
% man modprobe | grep -m 1 -n -C 1 _
21- modprobe intelligently adds or removes a module from the Linux kernel:
22: note that for convenience, there is no difference between _ and - in
23- module names. modprobe looks in the module directory /lib/mod-
It's not mentioned in the man pages for 'lsmod' or 'modinfo', yet.
A "convenient" kludge for kernel guys presumably, but it breaks *nix
custom of unique character meanings. 'grep' users take note: you gotta
use a character class (or '.' and risk a false hit) to parse these
utils outputs now:
# fails
% lsmod | grep 'via-agp' ; echo $?
1
# works
% lsmod | grep 'via[_-]agp'
via_agp 9952 1
agpgart 31688 3 nvidia,drm,via_agp
# fails
% pcimodules | grep 'via_agp' ; echo $?
1
# works
% pcimodules | grep 'via[_-]agp'
via-agp
HTH...
No longer marked as fixed in versions 1:2.2.4-1.
Request was from Andreas Beckmann <anbe@debian.org>
to control@bugs.debian.org.
(Sat, 02 Nov 2013 15:57:31 GMT) (full text, mbox, link).
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Sun, 01 Dec 2013 07:40:39 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Wed Oct 11 23:39:00 2017;
Machine Name:
buxtehude
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.