KernelNewbies
  • Comments
  • Immutable Page
  • Menu
    • Navigation
    • RecentChanges
    • FindPage
    • Local Site Map
    • Help
    • HelpContents
    • HelpOnMoinWikiSyntax
    • Display
    • Attachments
    • Info
    • Raw Text
    • Print View
    • Edit
    • Load
    • Save
  • Login

Kernel Hacking

  • Frontpage

  • Kernel Hacking

  • Kernel Documentation

  • Kernel Glossary

  • FAQ

  • Found a bug?

  • Kernel Changelog

  • Upstream Merge Guide

Projects

  • KernelJanitors

  • KernelMentors

  • KernelProjects

Community

  • Why a community?

  • Regional Kernelnewbies

  • Personal Pages

  • Upcoming Events

References

  • Mailing Lists

  • Related Sites

  • Programming Links

Wiki

  • Recent Changes

  • Site Editors

  • Side Bar

  • Tips for Editors

  • Hosted by WikiWall

Navigation

  • RecentChanges
  • FindPage
  • HelpContents
Revision 1 as of 2020-04-07 12:19:18
KernelNewbies:
  • OutreachyKernelSelftest_draft

Linux Kernel Selftests

Kernel Setup

Keep the previously built kernel config file

Get into kernel source directory:

cp previous_config .config
make olddefconfig
make kselftest-merge
make menuconfig # setup if and as you want
make -j 2
make modules modules_install install

Do necessary things for booting the new kernel. Reboot with new kernel.

Net selftests

Debian instructions for setup: Install necessary softwares for kselftest:

sudo apt-get install libnuma-dev traceroute net-tools

Get into previously built kernel source directory and run:

make summary=1 TARGETS=net kselftest |& tee /tmp/kselftest_summary_net.log
make TARGETS=net kselftest |& tee /tmp/kselftest_net.log

You may see the above log files for later need.

The kselftest target builds "nettest" executable binary. Copy it to PATH or make a symlink.

cp tools/testing/selftests/net/nettest /usr/local/bin

Rerun the selftest to pass some failing tests because of previously non-existant nettest binary.

  • MoinMoin Powered
  • Python Powered
  • GPL licensed
  • Valid HTML 4.01