[boot-time] RFC: proposal for boot-time tools github repository
"Bird, Tim" <[email protected]> Wed, 30 Oct 2024 08:22:09 +0000
| Newsgroups | org.kernel.vger.linux-embedded |
|---|---|
| Message-ID | <MW5PR13MB5632D76A85C2DCE48B5AA2B4FD542@MW5PR13MB5632.namprd13.prod.outlook.com> |
I have a few tools that I plan to publish over the next little while.
Some of these might make their way into the kernel 'scripts' directory, but some
others of these might not be appropriate to add there.
So I'm thinking of putting together a repository of boot-time related tools
for people to play with. Here's a sample of one tool that I find handy:
----
#!/bin/sh
# sort-initcalls.sh - sort the initcalls by duration
if [ -z "$1" -o "$1" = "-h" ] ; then
echo "Usage: sort-initcalls.sh <dmesg file>"
exit 1
fi
grep "initcall.*after" $1 | sed "s/\(.*\)after\(.*\)/\2 \1/g" | sed "s/\r//" | sort -n
----
See https://elinux.org/Initcall_Debug for details.
For tools on their way upstream, this would serve as a development repository
where different ideas and techniques can get hashed out.
So, does anyone have alternative ideas for hosting such tools, or comments on
this approach?
Eventually, I expect to make a yocto recipe that would make installing
boot-time instrumentation, testing, research and tuning tools easily available.
-- Tim