All of lore.kernel.org
 help / color / mirror / Atom feed
From: Viresh Kumar <viresh.kumar@linaro.org>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH V2 00/17] syscalls: Use common variants structure
Date: Wed, 16 Sep 2020 16:07:45 +0530	[thread overview]
Message-ID: <cover.1600252542.git.viresh.kumar@linaro.org> (raw)

Hi Cyril,

As you suggested earlier, here is an attempt to use a common structure
prototype at most of the places.

futex, clock_adjtime() and clock_getres() tests are left with their own
implementations due to compatibility issues.

V2:
- Remove local copy of poll.h as it was making the build fail with this
  patchset for some of the syscalls (mq_timedsend/receive).
- Use poll.h instead of sys/poll.h
- Use libaio stuff from within macros in the 2st patch.
- Only first two patches are updated, rest are all the same.

--
viresh

Viresh Kumar (17):
  syscalls: utils: Remove local copy of poll.h definitions
  syscalls: Add common time64 variants structure
  syscalls: clock_gettime: Reuse struct time64_variants
  syscalls: clock_nanosleep: Reuse struct time64_variants
  syscalls: clock_settime: Reuse struct time64_variants
  syscalls: io_pgetevents: Reuse struct time64_variants
  syscalls: semop: Reuse struct time64_variants
  syscalls: mq_timed: Reuse struct time64_variants
  syscalls: ppoll: Reuse struct time64_variants
  syscalls: rt_sigtimedwait: Reuse struct time64_variants
  syscalls: sched_rr_get_interval: Reuse struct time64_variants
  syscalls: sendmmsg: Reuse struct time64_variants
  syscalls: timer_settime: Reuse struct time64_variants
  syscalls: timer_gettime: Reuse struct time64_variants
  syscalls: timerfd: Reuse struct time64_variants
  syscalls: utimensat: Reuse struct time64_variants
  futex: Move variants struct definition to common header

 include/time64_variants.h                     | 65 +++++++++++++++++++
 .../syscalls/clock_gettime/clock_gettime01.c  | 19 +++---
 .../syscalls/clock_gettime/clock_gettime02.c  | 17 ++---
 .../syscalls/clock_gettime/clock_gettime03.c  | 27 ++++----
 .../syscalls/clock_gettime/clock_gettime04.c  | 29 ++++-----
 .../clock_nanosleep/clock_nanosleep01.c       | 21 +++---
 .../clock_nanosleep/clock_nanosleep03.c       | 26 ++++----
 .../clock_nanosleep/clock_nanosleep04.c       | 22 +++----
 .../syscalls/clock_settime/clock_settime01.c  | 26 ++++----
 .../syscalls/clock_settime/clock_settime02.c  | 20 +++---
 .../syscalls/clock_settime/clock_settime03.c  | 22 +++----
 .../syscalls/futex/futex_cmp_requeue01.c      | 12 ++--
 .../syscalls/futex/futex_cmp_requeue02.c      |  9 +--
 .../kernel/syscalls/futex/futex_wait01.c      | 10 +--
 .../kernel/syscalls/futex/futex_wait02.c      | 11 ++--
 .../kernel/syscalls/futex/futex_wait03.c      | 11 ++--
 .../kernel/syscalls/futex/futex_wait04.c      | 10 +--
 .../syscalls/futex/futex_wait_bitset01.c      | 11 +---
 .../kernel/syscalls/futex/futex_wake01.c      |  9 +--
 .../kernel/syscalls/futex/futex_wake02.c      | 11 ++--
 .../kernel/syscalls/futex/futex_wake03.c      | 13 ++--
 .../kernel/syscalls/futex/futex_wake04.c      | 14 ++--
 testcases/kernel/syscalls/futex/futextest.h   |  7 ++
 .../syscalls/io_pgetevents/io_pgetevents01.c  | 16 ++---
 .../syscalls/io_pgetevents/io_pgetevents02.c  | 18 ++---
 testcases/kernel/syscalls/ipc/semop/semop.h   | 18 ++---
 testcases/kernel/syscalls/ipc/semop/semop01.c |  6 +-
 testcases/kernel/syscalls/ipc/semop/semop02.c |  6 +-
 testcases/kernel/syscalls/ipc/semop/semop03.c |  6 +-
 .../mq_timedreceive/mq_timedreceive01.c       | 14 ++--
 .../syscalls/mq_timedsend/mq_timedsend01.c    | 16 ++---
 testcases/kernel/syscalls/ppoll/ppoll01.c     | 21 +++---
 .../rt_sigtimedwait/rt_sigtimedwait01.c       | 15 ++---
 .../sched_rr_get_interval01.c                 | 21 +++---
 .../sched_rr_get_interval02.c                 | 21 +++---
 .../sched_rr_get_interval03.c                 | 21 +++---
 .../kernel/syscalls/sendmmsg/sendmmsg01.c     | 24 +++----
 .../syscalls/timer_gettime/timer_gettime01.c  | 21 +++---
 .../syscalls/timer_settime/timer_settime01.c  | 25 +++----
 .../syscalls/timer_settime/timer_settime02.c  | 18 ++---
 testcases/kernel/syscalls/timerfd/timerfd01.c | 27 ++++----
 testcases/kernel/syscalls/timerfd/timerfd04.c | 20 +++---
 .../syscalls/timerfd/timerfd_gettime01.c      |  8 +--
 .../syscalls/timerfd/timerfd_settime01.c      | 17 ++---
 .../syscalls/timerfd/timerfd_settime02.c      | 15 ++---
 testcases/kernel/syscalls/utils/mq_timed.h    | 18 ++---
 testcases/kernel/syscalls/utils/poll.h        | 27 --------
 .../kernel/syscalls/utimensat/utimensat01.c   | 18 ++---
 48 files changed, 376 insertions(+), 483 deletions(-)
 create mode 100644 include/time64_variants.h
 delete mode 100644 testcases/kernel/syscalls/utils/poll.h

-- 
2.25.0.rc1.19.g042ed3e048af


             reply	other threads:[~2020-09-16 10:37 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-16 10:37 Viresh Kumar [this message]
2020-09-16 10:37 ` [LTP] [PATCH V2 01/17] syscalls: utils: Remove local copy of poll.h definitions Viresh Kumar
2020-09-16 12:33   ` Cyril Hrubis
2020-09-16 10:37 ` [LTP] [PATCH V2 02/17] syscalls: Add common time64 variants structure Viresh Kumar
2020-09-16 10:37 ` [LTP] [PATCH V2 03/17] syscalls: clock_gettime: Reuse struct time64_variants Viresh Kumar
2020-09-16 10:37 ` [LTP] [PATCH V2 04/17] syscalls: clock_nanosleep: " Viresh Kumar
2020-09-16 10:37 ` [LTP] [PATCH V2 05/17] syscalls: clock_settime: " Viresh Kumar
2020-09-16 10:37 ` [LTP] [PATCH V2 06/17] syscalls: io_pgetevents: " Viresh Kumar
2020-09-16 10:37 ` [LTP] [PATCH V2 07/17] syscalls: semop: " Viresh Kumar
2020-09-16 10:37 ` [LTP] [PATCH V2 08/17] syscalls: mq_timed: " Viresh Kumar
2020-09-16 10:37 ` [LTP] [PATCH V2 09/17] syscalls: ppoll: " Viresh Kumar
2020-09-16 10:37 ` [LTP] [PATCH V2 10/17] syscalls: rt_sigtimedwait: " Viresh Kumar
2020-09-16 10:37 ` [LTP] [PATCH V2 11/17] syscalls: sched_rr_get_interval: " Viresh Kumar
2020-09-16 10:37 ` [LTP] [PATCH V2 12/17] syscalls: sendmmsg: " Viresh Kumar
2020-09-16 10:37 ` [LTP] [PATCH V2 13/17] syscalls: timer_settime: " Viresh Kumar
2020-09-16 10:37 ` [LTP] [PATCH V2 14/17] syscalls: timer_gettime: " Viresh Kumar
2020-09-16 10:38 ` [LTP] [PATCH V2 15/17] syscalls: timerfd: " Viresh Kumar
2020-09-16 10:38 ` [LTP] [PATCH V2 16/17] syscalls: utimensat: " Viresh Kumar
2020-09-17 12:46   ` Cyril Hrubis
2020-09-16 10:38 ` [LTP] [PATCH V2 17/17] futex: Move variants struct definition to common header Viresh Kumar
2020-10-21  7:22   ` Viresh Kumar
2020-10-21 15:38     ` 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=cover.1600252542.git.viresh.kumar@linaro.org \
    --to=viresh.kumar@linaro.org \
    --cc=ltp@lists.linux.it \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.