From: Shuah Khan <skhan@linuxfoundation.org>
To: Abdulrasaq Lawani <abdulrasaqolawani@gmail.com>,
Shuah Khan <shuah@kernel.org>
Cc: javiercarrascocruz@gmail.com, linux-kernel@vger.kernel.org,
linux-kselftest@vger.kernel.org,
Shuah Khan <skhan@linuxfoundation.org>
Subject: Re: [PATCH v3] selftest: acct: Add selftest for the acct() syscall
Date: Wed, 31 Jul 2024 17:29:43 -0600 [thread overview]
Message-ID: <c9dcf6e5-281e-405f-b592-7df2d1bd56bd@linuxfoundation.org> (raw)
In-Reply-To: <20240723-kselftest-acct-syscall-v3-1-16f332498a9e@gmail.com>
On 7/23/24 04:28, Abdulrasaq Lawani wrote:
> The acct() system call enables or disables process accounting.
> If accounting is turned on, records for each terminating process
> are appended to a specified filename as it terminates. An argument of NULL
> causes accounting to be turned off.
>
> This patch will add a test for the acct() syscall.
>
> Signed-off-by: Abdulrasaq Lawani <abdulrasaqolawani@gmail.com>
> ---
> Changes in v3:
> - Add geteuid to check if test is ran as root.
> - Simplify error conditions for acct function.
> - Remove unecessary messages.
> - Add more informative messages.
> - Update commit message.
> - Add error test case for file creation failure.
> - Link to v2: https://lore.kernel.org/r/20240630-kselftest-acct-syscall-v2-1-b30bbe2a69cd@gmail.com
>
> Changes in v2:
> Add testcases to test error conditions.
> Add kselftest function for reporting results.
>
> - Link to v1: https://lore.kernel.org/r/20240622-kselftest-acct-syscall-v1-1-d270b5be8d37@gmail.com
> ---
> tools/testing/selftests/Makefile | 1 +
> tools/testing/selftests/acct/.gitignore | 3 ++
> tools/testing/selftests/acct/Makefile | 4 ++
> tools/testing/selftests/acct/acct_syscall.c | 78 +++++++++++++++++++++++++++++
> 4 files changed, 86 insertions(+)
>
> diff --git a/tools/testing/selftests/Makefile b/tools/testing/selftests/Makefile
> index 9039f3709aff..45a58ef5ad92 100644
> --- a/tools/testing/selftests/Makefile
> +++ b/tools/testing/selftests/Makefile
> @@ -1,4 +1,5 @@
> # SPDX-License-Identifier: GPL-2.0
> +TARGETS += acct
> TARGETS += alsa
> TARGETS += amd-pstate
> TARGETS += arm64
> diff --git a/tools/testing/selftests/acct/.gitignore b/tools/testing/selftests/acct/.gitignore
> new file mode 100644
> index 000000000000..7e78aac19038
> --- /dev/null
> +++ b/tools/testing/selftests/acct/.gitignore
> @@ -0,0 +1,3 @@
> +acct_syscall
> +config
> +process_log
> \ No newline at end of file
> diff --git a/tools/testing/selftests/acct/Makefile b/tools/testing/selftests/acct/Makefile
> new file mode 100644
> index 000000000000..ff3e238c5634
> --- /dev/null
> +++ b/tools/testing/selftests/acct/Makefile
> @@ -0,0 +1,4 @@
Missing SPDX-License-Identifier: GPL-2.0
The rest looks good to me. Please send v4 adding the SPDX
to acct/Makefile
thanks,
-- Shuah
prev parent reply other threads:[~2024-07-31 23:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-23 10:28 [PATCH v3] selftest: acct: Add selftest for the acct() syscall Abdulrasaq Lawani
2024-07-31 23:29 ` Shuah Khan [this message]
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=c9dcf6e5-281e-405f-b592-7df2d1bd56bd@linuxfoundation.org \
--to=skhan@linuxfoundation.org \
--cc=abdulrasaqolawani@gmail.com \
--cc=javiercarrascocruz@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=shuah@kernel.org \
/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