public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: Wei Gao via ltp <ltp@lists.linux.it>
To: Andrea Cervesato <andrea.cervesato@suse.de>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] [PATCH v1 1/3] Rewrite eventfd2_01 test using new LTP API
Date: Tue, 14 Mar 2023 19:40:00 -0400	[thread overview]
Message-ID: <20230314234000.GA10628@localhost> (raw)
In-Reply-To: <20230308132335.29621-2-andrea.cervesato@suse.de>

On Wed, Mar 08, 2023 at 02:23:33PM +0100, Andrea Cervesato wrote:
> From: Andrea Cervesato <andrea.cervesato@suse.com>
> 
> Signed-off-by: Andrea Cervesato <andrea.cervesato@suse.com>
> ---
>  testcases/kernel/syscalls/eventfd2/eventfd2.h |  18 +++
>  .../kernel/syscalls/eventfd2/eventfd2_01.c    | 148 ++++--------------
>  2 files changed, 51 insertions(+), 115 deletions(-)
>  create mode 100644 testcases/kernel/syscalls/eventfd2/eventfd2.h
> 
> diff --git a/testcases/kernel/syscalls/eventfd2/eventfd2.h b/testcases/kernel/syscalls/eventfd2/eventfd2.h
> new file mode 100644
> index 000000000..5350820b8
> --- /dev/null
> +++ b/testcases/kernel/syscalls/eventfd2/eventfd2.h
> @@ -0,0 +1,18 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> +/*
> + * Copyright (C) 2023 SUSE LLC Andrea Cervesato <andrea.cervesato@suse.com>
> + */
> +
> +#include "tst_test.h"
> +#include "lapi/syscalls.h"
> +
> +static inline int eventfd2(unsigned int count, unsigned int flags)
> +{
> +	int ret;
> +
> +	ret = tst_syscall(__NR_eventfd2, count, flags);
> +	if (ret == -1)
> +		tst_brk(TBROK | TERRNO, "eventfd2");
> +
> +	return ret;
> +}
Normally we need put file or store this file into some lib directory?

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

  reply	other threads:[~2023-03-14 23:40 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-08 13:23 [LTP] [PATCH v1 0/3] Rewrite eventfd2 testing suite Andrea Cervesato
2023-03-08 13:23 ` [LTP] [PATCH v1 1/3] Rewrite eventfd2_01 test using new LTP API Andrea Cervesato
2023-03-14 23:40   ` Wei Gao via ltp [this message]
2023-03-15  9:08     ` Andrea Cervesato via ltp
2023-04-05  9:22     ` Cyril Hrubis
2023-04-05  9:24   ` Cyril Hrubis
2023-03-08 13:23 ` [LTP] [PATCH v1 2/3] Rewrite eventfd2_02 " Andrea Cervesato
2023-03-14 23:46   ` Wei Gao via ltp
2023-04-05  9:32   ` Cyril Hrubis
2023-03-08 13:23 ` [LTP] [PATCH v1 3/3] Rewrite eventfd2_03 " Andrea Cervesato
2023-03-15  0:47   ` Wei Gao via ltp
2023-04-05  9:45   ` Cyril Hrubis

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=20230314234000.GA10628@localhost \
    --to=ltp@lists.linux.it \
    --cc=andrea.cervesato@suse.de \
    --cc=wegao@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