From: Carlos O'Donell <carlos@redhat.com>
To: Thomas Gleixner <tglx@linutronix.de>,
Zack Weinberg <zackw@panix.com>, Cyril Hrubis <chrubis@suse.cz>
Cc: "Dmitry Safonov" <dima@arista.com>,
"Andrei Vagin" <avagin@gmail.com>,
"GNU C Library" <libc-alpha@sourceware.org>,
"Linux Kernel Mailing List" <linux-kernel@vger.kernel.org>,
"Petr Špaček" <petr.spacek@nic.cz>
Subject: Re: [Y2038][time namespaces] Question regarding CLOCK_REALTIME support plans in Linux time namespaces
Date: Wed, 25 Nov 2020 22:05:30 -0500 [thread overview]
Message-ID: <1d3d00ac-c7a0-7168-0450-8a0e1499ea2b@redhat.com> (raw)
In-Reply-To: <87pn41j7jx.fsf@nanos.tec.linutronix.de>
On 11/25/20 7:17 PM, Thomas Gleixner wrote:
> Carlos, Petr,
>
> On Wed, Nov 25 2020 at 15:37, Carlos O'Donell wrote:
>> On 11/19/20 7:14 PM, Thomas Gleixner wrote:
>>> So from my point of view asking for distorted time still _is_ a request
>>> for ponies.
>>
>> I'm happy if you say it's more work than the value it provides.
>
> Thinking more about it. Would a facility which provides:
>
> CLOCK_FAKE_MONOTONIC|BOOTTIME|REALTIME
>
> where you can go wild on setting time to whatever you want solve
> your problem?
We would need a way to inject CLOCK_FAKE_* in lieu of the real
constants.
There are only two straight forward ways I know how to do that
and they aren't very useful e.g. alternative build, syscall hot-path
debug code to alter the constant.
We might write a syscall interception framework using seccomp
and SECCOMP_RET_TRACE, but that involves ptrace'ing the process
under test, and is equivalent to a micro-sandbox. I'm not against
that idea for testing; we would test what we ship.
I don't think eBPF can modify the incoming arguments.
I need to go check if systemtap can modify incoming arguments;
I've never done that in any script.
In what other ways can we inject the new constants?
--
Cheers,
Carlos.
next prev parent reply other threads:[~2020-11-26 3:05 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-30 10:02 Lukasz Majewski
2020-10-30 13:08 ` Thomas Gleixner
2020-10-30 15:43 ` Lukasz Majewski
2020-10-30 13:58 ` Cyril Hrubis
2020-10-30 14:02 ` Zack Weinberg
2020-10-30 15:10 ` Thomas Gleixner
2020-10-30 16:58 ` Carlos O'Donell
2020-10-30 20:06 ` Thomas Gleixner
2020-10-30 22:19 ` Carlos O'Donell
2020-10-31 1:38 ` Thomas Gleixner
2020-11-03 12:43 ` Cyril Hrubis
2020-11-05 17:25 ` Carlos O'Donell
2020-11-07 0:47 ` Thomas Gleixner
2020-11-19 18:37 ` Carlos O'Donell
2020-11-20 0:14 ` Thomas Gleixner
2020-11-25 17:06 ` Petr Špaček
2020-11-25 20:37 ` Carlos O'Donell
2020-11-26 0:17 ` Thomas Gleixner
2020-11-26 3:05 ` Carlos O'Donell [this message]
2020-11-26 8:21 ` Andreas Schwab
2020-11-14 10:25 ` Pavel Machek
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=1d3d00ac-c7a0-7168-0450-8a0e1499ea2b@redhat.com \
--to=carlos@redhat.com \
--cc=avagin@gmail.com \
--cc=chrubis@suse.cz \
--cc=dima@arista.com \
--cc=libc-alpha@sourceware.org \
--cc=linux-kernel@vger.kernel.org \
--cc=petr.spacek@nic.cz \
--cc=tglx@linutronix.de \
--cc=zackw@panix.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®