Package Details: modprobed-db 2.44-1

Git Clone URL: https://aur.archlinux.org/modprobed-db.git (read-only, click to copy)
Package Base: modprobed-db
Description: Keeps track of EVERY kernel module ever used - useful for make localmodconfig
Upstream URL: https://wiki.archlinux.org/index.php/Modprobed-db
Licenses: MIT
Conflicts: modprobed_db
Replaces: modprobed_db
Submitter: graysky
Maintainer: graysky
Last Packager: graysky
Votes: 224
Popularity: 1.98
First Submitted: 2013-11-15 22:21
Last Updated: 2020-07-05 20:06

Dependencies (2)

Required by (12)

Sources (1)

Latest Comments

« First ‹ Previous ... 7 8 9 10 11 12 13 14 Next › Last »

ethail commented on 2011-11-05 08:33

had to change

install=('readme.install')

to

install=readme.install

in order to get it to work. Maybe its because of pacman 4 (using testing)

graysky commented on 2011-11-05 00:01

$ makepkg -s
==> Making package: modprobed_db 1.5-3 (Fri Nov 4 20:00:57 EDT 2011)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving Sources...
-> Found modprobed_db
-> Found reload_database
-> Found modprobed_db.conf
==> Validating source files with sha256sums...
modprobed_db ... Passed
reload_database ... Passed
modprobed_db.conf ... Passed
==> Extracting Sources...
==> Entering fakeroot environment...
==> Starting build()...
==> Tidying install...
-> Purging other files...
-> Compressing man and info pages...
-> Stripping unneeded symbols from binaries and libraries...
==> Creating package...
-> Generating .PKGINFO file...
-> Adding install file...
-> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: modprobed_db 1.5-3 (Fri Nov 4 20:00:57 EDT 2011)

???

ethail commented on 2011-11-04 20:29

makepkg fails at building:

==> ERROR: install file (('readme.install')) does not exist.

graysky commented on 2011-11-04 20:14

@maxr - this is a good idea. Done in 1.5-3. Any other common ones to suggest?

Maxr commented on 2011-11-04 07:23

Would like to suggest adding some popular modules (which have to be build seperately) to modprobed_db.conf: osscore oss_hdaudio oss_usb (open sound system) tp_smapi thinkpad_ec (tp_smapi from the aur)

Anonymous comment on 2011-06-20 23:09

@graysky -Thought you might like to see to see this little trick I figured out. You can use grep all by it's lonesome (well with a little help from sort) to diff the modules. Instead of this line:

cat /proc/modules | awk '{print $1}' | sort -k 1,1 | grep -Ev "`echo ${ignore[*]} | sed -e 's/^/^(/' -e 's/ /|/g' -e 's/$/)$/'`"

try this:

grep -Fvf <(echo "${ignore[*]}" | tr " " "\n") <(cut -d" " -f1 /proc/modules) | sort --parallel=2 (fastest)

or

grep -Fvf <(echo "${ignore[*]}" | tr " " "\n") <(gawk '{print$1}' /proc/modules) | sort --parallel=2 (slightly slower)

Let grep do all the hard work! Your lists don't even have to be sorted first for grep to diff them (see Note) that's why sort is at the end. Also, as sort is at the end of the list it will have already been filtered so sort runs faster now.

Just thought you might be interested in this!

Note: It's not really diffing them it's using your "ignore" variable as regex to find the inverse in /proc/modules.

misc commented on 2011-04-18 18:44

Here: http://pastebin.com/zPvEubew

I always run modprobed_db as root.

graysky commented on 2011-04-17 21:22

@misc - odd... post your /etc/modprobed_db.conf then post the output of:
ls -l /path/to/your/dbpath/from/that/file

misc commented on 2011-04-17 21:17

For some reason my db file constantly gets deleted. Bit tough collecting data for a week this way…

Anonymous comment on 2011-04-02 16:02

@graysky - Still using your excellent tool to learn awk (and to make ck-kernels). I finally figured out how to do the whole ${db} creation in awk alone. Here it is if you interested:

Note: I'm using mawk so change to whichever awk version you use. This also hinges on the bash ${ignore[*]} variable being sourced as you have it.

mawk -v x="$(echo ${ignore[*]})" 'BEGIN { split(x,ignore," ")}; NR == FNR {for (i in ignore); if ($0 ~ i); print $1 | "sort"}' /proc/modules > ${db}

Enjoy!