From: zhang warden <zhangwarden@gmail.com>
To: Petr Mladek <pmladek@suse.com>
Cc: Josh Poimboeuf <jpoimboe@kernel.org>,
Miroslav Benes <mbenes@suse.cz>, Jiri Kosina <jikos@kernel.org>,
Joe Lawrence <joe.lawrence@redhat.com>,
live-patching@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH V2] selftests: livepatch: add test cases of stack_order sysfs interface
Date: Thu, 24 Oct 2024 16:23:51 +0800 [thread overview]
Message-ID: <09DE904A-5DAE-40C0-9F03-A96D0F80E1D4@gmail.com> (raw)
In-Reply-To: <ZxoDZhpEX_M-vuRP@pathway.suse.cz>
> On Oct 24, 2024, at 16:20, Petr Mladek <pmladek@suse.com> wrote:
>
> On Thu 2024-10-24 12:43:17, Wardenjohn wrote:
>> Add selftest test cases to sysfs attribute 'stack_order'.
>>
>> Suggested-by: Petr Mladek <pmladek@suse.com>
>> Signed-off-by: Wardenjohn <zhangwarden@gmail.com>
>> ---
>> .../testing/selftests/livepatch/test-sysfs.sh | 71 +++++++++++++++++++
>> 1 file changed, 71 insertions(+)
>>
>> diff --git a/tools/testing/selftests/livepatch/test-sysfs.sh b/tools/testing/selftests/livepatch/test-sysfs.sh
>> index 05a14f5a7bfb..718027cc3aba 100755
>> --- a/tools/testing/selftests/livepatch/test-sysfs.sh
>> +++ b/tools/testing/selftests/livepatch/test-sysfs.sh
>> @@ -5,6 +5,8 @@
>> . $(dirname $0)/functions.sh
>>
>> MOD_LIVEPATCH=test_klp_livepatch
>> +MOD_LIVEPATCH2=test_klp_callbacks_demo
>> +MOD_LIVEPATCH3=test_klp_syscall
>>
>> setup_config
>>
>> @@ -21,6 +23,8 @@ check_sysfs_rights "$MOD_LIVEPATCH" "force" "--w-------"
>> check_sysfs_rights "$MOD_LIVEPATCH" "replace" "-r--r--r--"
>
> Sigh, you moved it from some reason. My proposed diff added
> "stack_order" here between "replace" and "transition" to follow
> the alphabetical order.
>
>> check_sysfs_rights "$MOD_LIVEPATCH" "transition" "-r--r--r--"
>> check_sysfs_value "$MOD_LIVEPATCH" "transition" "0"
>> +check_sysfs_rights "$MOD_LIVEPATCH" "stack_order" "-r--r--r--"
>> +check_sysfs_value "$MOD_LIVEPATCH" "stack_order" "1"
>> check_sysfs_rights "$MOD_LIVEPATCH" "vmlinux/patched" "-r--r--r--"
>> check_sysfs_value "$MOD_LIVEPATCH" "vmlinux/patched" "1"
>
> After fixing the alphabetical order:
>
> Reviewed-by: Petr Mladek <pmladek@suse.com>
> Tested-by: Petr Mladek <pmladek@suse.com>
>
> I could fix the ordering when pushing the patch.
>
> Best Regards,
> Petr
OK, I use this order just according to the order added to this
test case. Didn't consider the alphabetical order.
If necessary, I can resent a V3 patch.
Best Regards.
Wardenjohn.
next prev parent reply other threads:[~2024-10-24 8:24 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-24 4:43 [PATCH V5 1/1] livepatch: Add stack_order sysfs attribute Wardenjohn
2024-10-24 4:43 ` [PATCH V2] selftests: livepatch: add test cases of stack_order sysfs interface Wardenjohn
2024-10-24 8:20 ` Petr Mladek
2024-10-24 8:23 ` zhang warden [this message]
2024-10-24 8:15 ` [PATCH V5 1/1] livepatch: Add stack_order sysfs attribute Petr Mladek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=09DE904A-5DAE-40C0-9F03-A96D0F80E1D4@gmail.com \
--to=zhangwarden@gmail.com \
--cc=jikos@kernel.org \
--cc=joe.lawrence@redhat.com \
--cc=jpoimboe@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=live-patching@vger.kernel.org \
--cc=mbenes@suse.cz \
--cc=pmladek@suse.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®