Commit bdee0024 authored by Weibin Sun's avatar Weibin Sun Committed by Vikram Narayanan
Browse files

a command to list number of undefined symbols in kernel modules under a given...

a command to list number of undefined symbols in kernel modules under a given directory, and sort the output by the numbers. As a tool to decide the module with least dependencies.
parent 7f0585cd
#!/bin/bash
find $1 -name *.ko -exec sh -c "printf \"%d \\t {}\\n\" \`nm {} | egrep '^\\s*U' | wc -l\`" \; | sort -nr
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment