Skip to content

recipes-products/images/qcom-minimal-image: Add rt-tests and stress-ng#160

Merged
vkraleti merged 2 commits intoqualcomm-linux:mainfrom
DeewanS:topic/add-stress-test-tools
Feb 18, 2026
Merged

recipes-products/images/qcom-minimal-image: Add rt-tests and stress-ng#160
vkraleti merged 2 commits intoqualcomm-linux:mainfrom
DeewanS:topic/add-stress-test-tools

Conversation

@DeewanS
Copy link
Contributor

@DeewanS DeewanS commented Feb 11, 2026

Add rt-tests and stress-ng to package list (for linux-qcom-rt kernel)

TOOLCHAIN_TARGET_TASK += "kernel-devsrc"

# Add RT tools only if the RT kernel is selected
IMAGE_INSTALL:append = "${@bb.utils.contains('PREFERRED_PROVIDER_virtual/kernel', 'linux-qcom-rt', ' rt-tests stress-ng', '', d)}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please explain why you are adding rt-tests and stress-ng as part of your commit message.

Also, why qcom-minimal-image?

stress-ng is also useful without the rt kernel, so should just go as an utility (e.g. recipes-products/packagegroups/packagegroup-qcom-utilities.bb).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the review!
Updated as suggested:

Moved stress-ng into packagegroup-qcom-utilities (profile-utils subpackage) so it’s available as a general validation tool and not tied to RT.
Expanded the commit message to explain the rationale (no RT-specific distro in this layer, and any image can enable RT by selecting the RT kernel provider).

Please take another look.

@DeewanS DeewanS force-pushed the topic/add-stress-test-tools branch from 834cc98 to 9f6ff70 Compare February 12, 2026 04:05
@DeewanS DeewanS force-pushed the topic/add-stress-test-tools branch from 9f6ff70 to 7a777d3 Compare February 13, 2026 06:39
@DeewanS DeewanS requested a review from lumag February 13, 2026 06:55
# Default root password: oelinux123
EXTRA_USERS_PARAMS = "usermod -p '\$6\$UDMimfYF\$akpHo9mLD4z0vQyKzYxYbsdYxnpUD7B7rHskq1E3zXK8ygxzq719wMxI78i0TIIE0NB1jUToeeFzWXVpBBjR8.' root;"

# Adding kernel-devsrc to provide kernel development support on SDK
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image: add rt-tests when using linux-qcom-rt kernel

Which image? You are touching one recipe.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, good point. I’ve updated the commit message to explicitly reference the qcom-minimal-image.bb recipe instead of using the generic term “image”. Please take another look.

sysbench \
systemd-analyze \
tiobench \
stress-ng \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keep the list sorted

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated - the package list is now alphabetically sorted as suggested.

RDEPENDS:${PN}-profile-utils = " \
perf \
powertop \
sysbench \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

stress-ng is a ...
add it to...

Sentences should start with the capital letter.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for pointing that out. I’ve fixed the commit message wording, ensured sentences start with capital letters

@DeewanS DeewanS force-pushed the topic/add-stress-test-tools branch from 7a777d3 to 8a08e84 Compare February 13, 2026 14:38
@DeewanS DeewanS requested a review from lumag February 13, 2026 14:41
TOOLCHAIN_TARGET_TASK += "kernel-devsrc"

# Add RT tools only if the RT kernel is selected
IMAGE_INSTALL:append = "${@bb.utils.contains('PREFERRED_PROVIDER_virtual/kernel', 'linux-qcom-rt', ' rt-tests', '', d)}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about "linux-qcom-next-rt" Kernel?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Updated to also handle linux-qcom-next-rt. Switched the conditional accordingly.

@DeewanS DeewanS force-pushed the topic/add-stress-test-tools branch from 8a08e84 to c999621 Compare February 14, 2026 13:21
TOOLCHAIN_TARGET_TASK += "kernel-devsrc"

# Add RT tools only if the RT kernel is selected
IMAGE_INSTALL:append = "${@bb.utils.contains_any('PREFERRED_PROVIDER_virtual/kernel', \

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What the reason to not use the CORE_IMAGE_BASE_INSTALL?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the question.

I kept this out of CORE_IMAGE_BASE_INSTALL because I intended that variable to remain limited to packages essential for system boot and core functionality.

Since rt-tests is a validation suite specific to PREEMPT_RT rather than a runtime requirement, placing it under IMAGE_INSTALL keeps the separation clear between core system components and optional tools.

If you have a specific reason for preferring the base install list, I’m happy to revisit it.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMAGE_INSTALL should not be called directly. As we are using the meta/classes-recipe/core-image.bbclass, we should use CORE_IMAGE_BASE_INSTALL or CORE_IMAGE_EXTRA_INSTALL which are defined in this class. So please use the CORE_IMAGE_EXTRA_INSTALL in this case.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the feedback. I've updated the recipe to use CORE_IMAGE_EXTRA_INSTALL instead of appending to IMAGE_INSTALL.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks.

@DeewanS DeewanS force-pushed the topic/add-stress-test-tools branch from c999621 to 658f00a Compare February 17, 2026 12:15
TOOLCHAIN_TARGET_TASK += "kernel-devsrc"

# Add RT tools only if the RT kernel is selected
CORE_IMAGE_EXTRA_INSTALL:append = "${@bb.utils.contains_any('PREFERRED_PROVIDER_virtual/kernel', \

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please also use the += instaed of the :append

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated — replaced the :append with += as requested.
Thanks.

…-next-rt

Install rt-tests only when PREEMPT_RT is selected using:
PREFERRED_PROVIDER_virtual/kernel = linux-qcom-rt or
linux-qcom-next-rt. This ensures rt-tests is included only
for RT-enabled builds as rt-tests is specific to validating
PREEMPT_RT behavior(cyclictest, signaltest, hwlatdetect, etc.)

Added rt-tests in qcom-minimal-image as any QCOM image can opt
for RT kernel, and qcom-minimal-image is included in all images.

Signed-off-by: Deewan Singh <deewsing@qti.qualcomm.com>
@DeewanS DeewanS force-pushed the topic/add-stress-test-tools branch 2 times, most recently from 81210ac to 704053b Compare February 17, 2026 13:53
Stress-ng is a general-purpose system stress tool useful for platform
validation across kernels (CPU/mem/I/O/thermal, etc.).

Add it to the utilities packagegroup (profile-utils) so images that already
consume profiling utilities will include it.

Signed-off-by: Deewan Singh <deewsing@qti.qualcomm.com>
@akdwived-dev
Copy link

@lumag @quaresmajose @ricardosalveti @vkraleti let us know if any more comment else help approve changes.

@vkraleti vkraleti merged commit e1627ec into qualcomm-linux:main Feb 18, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants