| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
Add a function to find the difference of two lists and use that
function to determine the list of missing modules.
Signed-off-by: Sevinj Aghayeva <sevinj.aghayeva@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add suboption -C for the case of -p kselftests for choosing a test
collection to run. For example, specifying "-p kselftests -C net"
creates an image that contains only the tests from the net collection
and only the kernel modules needed to run those tests.
If there are missing modules for running the tests, a warning will be
emitted showing missing modules names. The -C option is similar to
the -c option of run_kselftests.sh, but unlike run_kselftest.sh's
option it currently doesn't support specifying multiple collections.
This will be fixed later.
Also add suboption -T for the case of -p kselftests for choosing a
specific test. For example, specifying:
-p kselftests -T net:ip_defrag.sh"
create an image that runs only the single test when booted. This
option is also similar to run_kselftest.sh's -t option, but it
lacks some functionality, which will be added later.
Signed-off-by: Sevinj Aghayeva <sevinj.aghayeva@gmail.com>
v1 -> v2: Update TOOLS, Use variable names for commands, and use capitalized
versions of run_kselftests.sh options (-C and -T).
|
|
|
|
|
|
| |
Redirect modprobe to /dev/null to avoid verbose output. Remove unnecessary "/".
Signed-off-by: Sevinj Aghayeva <sevinj.aghayeva@gmail.com>
|
|
|
|
|
|
|
|
| |
We first assign the output of modprobe to a string and check if it is a built-in
module and add its node if so. Otherwise, we process every token in modprobe
output and try to see if it is a module.
Signed-off-by: Sevinj Aghayeva <sevinj.aghayeva@gmail.com>
|
|
|
|
|
|
|
|
|
| |
Since we are going over the output of modprobe and trying to figure out if the
token is a module name, sometimes we get strings like "--install", which breaks
basename and modprobe commands. To fix this problem, we append "--" to these
commands.
Signed-off-by: Sevinj Aghayeva <sevinj.aghayeva@gmail.com>
|
|
|
|
|
|
|
|
|
| |
When specify -d as part of __d_opt variable, it is passed as a single string to
modprobe, like "-d /foo/bar", and modprobe fails to figure out the directory
name correctly. With this patch, we pass it as two different strings, like "-d"
"/foo/bar", and modprobe works correctly.
Signed-off-by: Sevinj Aghayeva <sevinj.aghayeva@gmail.com>
|
|
|
|
|
|
| |
with two -d switches no modprobe produces wrong output.
Signed-off-by: Sevinj Aghayeva <sevinj.aghayeva@gmail.com>
|
|
|
|
|
|
| |
Just base and kselftests profile demos so far.
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
|
|
|
|
|
|
| |
...we don't want any of that in the output.
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
|
|
|
|
|
|
|
|
|
| |
We need to make sure test programs are built and everything is
included in tools/testing/selftests/kselftest_install before
we can include that in the guest image.
Reported-by: Sevinj Aghayeva <sevinj.aghayeva@gmail.com>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
|
|
|
|
|
|
|
| |
If modules are installed in subdirectories of lib/modules, we need to
pass a matching wildcard to du(1).
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
|
|
|
|
|
|
|
| |
This avoids the need to set IFS and reset it around libs_copy()
calls.
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
|
|
|
|
|
|
|
| |
This offers some flexibility to source things from profile
definitions themselves.
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
|
|
|
|
|
|
|
| |
The output of 'command -v' varies widely across shells, which(1)
output looks relatively consistent.
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
|
|
|
|
|
|
|
| |
Make indentation of FIXUP definitions consistent. Add /usr/local/bin
to PATH, and drop device nodes the 'passt' profile doesn't need.
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
|
|
|
|
|
|
|
|
|
|
| |
This can be used to run kselftests from a kernel tree without
having to install kernel and modules onto a distribution image,
for example:
kvm -m 8192 -cpu host -smp 2 -kernel arch/x86/boot/bzImage -initrd $(mbuto -p kselftests) -nographic -nodefaults -serial stdio -append "console=ttyS0"
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Instead of having one device node per line, use commas to separate
attributes, if given.
Take links as pairs of tokens, instead of requiring one line for
each.
This makes command-line overrides actually usable without the need to
resort to printf(1) tricks.
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
|
|
|
|
|
|
|
|
| |
...so that we can display the help message even if fakeroot is not
available.
Suggested-by: Wainer dos Santos Moschetta <wmoschet@redhat.com>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
|
|
|
|
|
|
|
| |
It's typically faster also to boot, and we don't want to take
seconds when running in a subshell on qemu's command line.
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
|
|
|
|
|
|
| |
lz4 needs an explicit output file if we're not compressing to stdout.
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
It already serves other purposes. Make 'kata' and 'kata_debug'
explicit profiles, create a base one, and drop the 'pbench' profile
which wasn't really used.
Output templates are also defined by profiles. This allows convenient
usage in a subshell, e.g.:
kvm -kernel ... -initrd $(mbuto)
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
| |
Example: glibc needs, for basic tasks such as domain resolution,
libnss_files and libnss_dns, which in turn links to libresolv.
Add a LIBS_DLOPEN variable to hold pairs of libraries typically
doing this and additional libraries to copy -- not a complete list,
just what's strictly needed for basic functionality.
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
|
|
|
|
|
|
|
| |
...instead of '-'. This shouldn't be needed in theory, but using '-' as
a name confuses mountpoint parsing in recent builds of kata-agent.
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
|
|
|
|
|
|
|
| |
...otherwise, it will fail for a kernel version which is not the
currently running one.
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
|
|
|
|
| |
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
|
|
|
|
| |
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
|
|
|
|
| |
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
|
|
|
|
| |
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
|
|
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
|