What clockevents are needed to boot properly?

2021-03-07 Thread Theodore Dubois
I'm playing around with a new kernel arch and running into problems with properly configuring the clockevents, especially with SMP. Without SMP you can easily set up a clockevents masked to cpu 0, and this seems to work fine. But on SMP this fails silently: high-res timers created on cpu != 0

linux.git is broken on a case-insensitive filesystem

2020-12-26 Thread Theodore Dubois
I'm currently hacking on Linux trying to run a sort of UML-style thing on macOS (please don't question my sanity :), and I've run into various issues stemming from macOS having a case-insensitive filesystem. The one you run into immediately is: there are a number of files (mostly in

Re: perf_event wakeup_events = 0

2019-09-07 Thread Theodore Dubois
see anything in the man page about this If you'd like to try yourself, this is the strace command I've been using: strace -ttTv -eperf_event_open,mmap,poll -operf.strace perf record stress --cpu 1 --timeout 1 ~Theodore > > On Sat, 07 Sep 2019 09:14:49 -0700, Theodore Dubois said: > > Re

edge case in posix file lock deadlock detection

2019-01-30 Thread Theodore Dubois
I'm having trouble figuring out how the kernel handles a particular case in deadlock detection on posix file locks. Here's the scenario: PID 1: locks byte 2 PID 3: locks byte 0 PID 2: locks byte 10 PID 1: locks byte 10 PID 2: locks bytes 0-2 inclusive The last step fails with EDEADLK, but I'm

[PATCH] mmap.2: mmap with address NULL and MAP_FIXED results in EPERM

2017-06-15 Thread Theodore Dubois
This can be verified with a simple test program. I'm not sure if this is a kernel bug or a documentation bug, though... --- man2/mmap.2 | 7 +++ 1 file changed, 7 insertions(+) diff --git a/man2/mmap.2 b/man2/mmap.2 index d1942b52a..58361c837 100644 --- a/man2/mmap.2 +++ b/man2/mmap.2 @@

[PATCH] mmap.2: mmap with address NULL and MAP_FIXED results in EPERM

2017-06-15 Thread Theodore Dubois
This can be verified with a simple test program. I'm not sure if this is a kernel bug or a documentation bug, though... --- man2/mmap.2 | 7 +++ 1 file changed, 7 insertions(+) diff --git a/man2/mmap.2 b/man2/mmap.2 index d1942b52a..58361c837 100644 --- a/man2/mmap.2 +++ b/man2/mmap.2 @@