From: Cyril Hrubis <chrubis@suse.cz>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH v2] syscalls: Add timer measurement library
Date: Tue, 20 Jun 2017 13:49:51 +0200 [thread overview]
Message-ID: <20170620114951.GC5369@rei.lan> (raw)
In-Reply-To: <88192643.36961651.1497621378847.JavaMail.zimbra@redhat.com>
Hi!
> - clock_getres/clock_gettime requires -rt for glibc < 2.17
> On RHEL5/6 I had to modify these Makefiles:
> # modified: include/mk/testcases.mk
> # modified: lib/newlib_tests/Makefile
> # modified: lib/tests/Makefile
> # modified: testcases/kernel/containers/netns/Makefile
> # modified: testcases/kernel/containers/share/Makefile
Hrm, looks like we have the very same problem as we had with the
mq_open() either we link everything with -lrt or figure out how to
separate the timer library and link it only with the timer testcases.
The problem here is that we call a funcition from the timer library from
the main library. And we cannot use weak stubs since we link statically.
Thinking of it using raw clock_* syscalls to avoid the dependency is not
a good option either since these are VDSO. These could still be reached
via syscall() it would be only slower and possibly broken since glibc
defaults to VDSO...
Or do you have a better idea how to avoid linking whole LTP with -lrt?
--
Cyril Hrubis
chrubis@suse.cz
next prev parent reply other threads:[~2017-06-20 11:49 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-14 12:42 [LTP] [PATCH v2] syscalls: Add timer measurement library Cyril Hrubis
2017-06-16 13:56 ` Jan Stancek
2017-06-19 13:26 ` Cyril Hrubis
2017-06-20 7:51 ` Jan Stancek
2017-06-20 11:49 ` Cyril Hrubis [this message]
2017-06-20 12:33 ` Cyril Hrubis
2017-06-20 13:02 ` Jan Stancek
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=20170620114951.GC5369@rei.lan \
--to=chrubis@suse.cz \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox