<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/compat/linux/linux_misc.c, branch releng/12.2</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=releng%2F12.2</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=releng%2F12.2'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2020-08-24T17:06:34Z</updated>
<entry>
<title>MFC r347538 by dchagin:</title>
<updated>2020-08-24T17:06:34Z</updated>
<author>
<name>Edward Tomasz Napierala</name>
<email>trasz@FreeBSD.org</email>
</author>
<published>2020-08-24T17:06:34Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=1400a5d9086e287a91c47aef3f08320562ce3c77'/>
<id>urn:sha1:1400a5d9086e287a91c47aef3f08320562ce3c77</id>
<content type='text'>
Linuxulator depends on a fundamental kernel settings such as SMP. Many
of them listed in opt_global.h which is not generated while building
modules outside of a kernel and such modules never match real cofigured
kernel.

So, we should prevent our users from building obviously defective modules.

Therefore, remove the root cause of the building of modules outside of a
kernel - the possibility of building modules with DEBUG or KTR flags.
And remove all of DEBUG printfs as it is incomplete and in threaded
programms not informative, also a half of system call does not have DEBUG
printf. For debuging Linux programms we have dtrace, ktr and ktrace ability.

PR:		222861
</content>
</entry>
<entry>
<title>MFC r356727:</title>
<updated>2020-08-24T14:13:20Z</updated>
<author>
<name>Edward Tomasz Napierala</name>
<email>trasz@FreeBSD.org</email>
</author>
<published>2020-08-24T14:13:20Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=76c472f8bbd18b07f5d31835a044d0759e26e50d'/>
<id>urn:sha1:76c472f8bbd18b07f5d31835a044d0759e26e50d</id>
<content type='text'>
Make linux getcpu(2) report the domain.

Submitted by:	markj
Sponsored by:	The FreeBSD Foundation
</content>
</entry>
<entry>
<title>MFC r349746:</title>
<updated>2020-08-24T12:57:03Z</updated>
<author>
<name>Edward Tomasz Napierala</name>
<email>trasz@FreeBSD.org</email>
</author>
<published>2020-08-24T12:57:03Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=8f01458a8e4a7211c0b43c8d8a284d16936f4376'/>
<id>urn:sha1:8f01458a8e4a7211c0b43c8d8a284d16936f4376</id>
<content type='text'>
Fix linuxulator prlimit64(2) with pid == 0.  This makes 'ulimit -a'
return something reasonable, and helps linux binaries which attempt
to close all the files, eg apt(8).

Sponsored by:	The FreeBSD Foundation
</content>
</entry>
<entry>
<title>MFC r362205:</title>
<updated>2020-08-24T12:54:19Z</updated>
<author>
<name>Edward Tomasz Napierala</name>
<email>trasz@FreeBSD.org</email>
</author>
<published>2020-08-24T12:54:19Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=ac1a07ee5a9a00caecf2977cc1e0b6e08ecb11cd'/>
<id>urn:sha1:ac1a07ee5a9a00caecf2977cc1e0b6e08ecb11cd</id>
<content type='text'>
Make Linux uname(2) return x86_64 to 32-bit apps.  This helps Steam.

PR:		kern/240432
Analyzed by:	Alex S &lt;iwtcex@gmail.com&gt;
Sponsored by:	The FreeBSD Foundation
</content>
</entry>
<entry>
<title>MFC r358673 by tijl:</title>
<updated>2020-08-24T12:47:20Z</updated>
<author>
<name>Edward Tomasz Napierala</name>
<email>trasz@FreeBSD.org</email>
</author>
<published>2020-08-24T12:47:20Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=52a2550802aa4a6edeb6407934d32dc00f1bf750'/>
<id>urn:sha1:52a2550802aa4a6edeb6407934d32dc00f1bf750</id>
<content type='text'>
Move compat.linux.map_sched_prio sysctl definition to linux_mib.c so it is
only defined by linux_common kernel module and not both linux and linux64
modules.

Reported by:	Yuri Pankov &lt;ypankov@fastmail.com&gt;
</content>
</entry>
<entry>
<title>MFC r358483 by tijl:</title>
<updated>2020-08-24T12:43:54Z</updated>
<author>
<name>Edward Tomasz Napierala</name>
<email>trasz@FreeBSD.org</email>
</author>
<published>2020-08-24T12:43:54Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=2d35b1bda7c5a291a083753841e5e5e5dd5ccdf9'/>
<id>urn:sha1:2d35b1bda7c5a291a083753841e5e5e5dd5ccdf9</id>
<content type='text'>
linuxulator: Map scheduler priorities to Linux priorities.

On Linux the valid range of priorities for the SCHED_FIFO and SCHED_RR
scheduling policies is [1,99].  For SCHED_OTHER the single valid priority is
0.  On FreeBSD it is [0,31] for all policies.  Programs are supposed to
query the valid range using sched_get_priority_(min|max), but of course some
programs assume the Linux values are valid.

This commit adds a tunable compat.linux.map_sched_prio.  When enabled
sched_get_priority_(min|max) return the Linux values and sched_setscheduler
and sched_(get|set)param translate between FreeBSD and Linux values.

Because there are more Linux levels than FreeBSD levels, multiple Linux
levels map to a single FreeBSD level, which means pre-emption might not
happen as it does on Linux, so the tunable allows to disable this behaviour.
It is enabled by default because I think it is unlikely that anyone runs
real-time software under Linux emulation on FreeBSD that critically relies
on correct pre-emption.

This fixes FMOD, a commercial sound library used by several games.

PR:		240043
Tested by:	Alex S &lt;iwtcex@gmail.com&gt;
</content>
</entry>
<entry>
<title>MFC r356241:</title>
<updated>2020-08-23T20:12:07Z</updated>
<author>
<name>Edward Tomasz Napierala</name>
<email>trasz@FreeBSD.org</email>
</author>
<published>2020-08-23T20:12:07Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=fb10ada9550df01a60d9f3423f7f6549d281b149'/>
<id>urn:sha1:fb10ada9550df01a60d9f3423f7f6549d281b149</id>
<content type='text'>
Add basic getcpu(2) support to linuxulator.  The purpose of this
syscall is to query the CPU number and the NUMA domain the calling
thread is currently running on.  The third argument is ignored.
It doesn't do anything regarding scheduling - it's literally
just a way to query the current state, without any guarantees
you won't get rescheduled an opcode later.

This unbreaks Java from CentOS 8
(java-11-openjdk-11.0.5.10-0.el8_0.x86_64).

Sponsored by:	The FreeBSD Foundation
</content>
</entry>
<entry>
<title>MFC r356177:</title>
<updated>2020-08-23T19:59:38Z</updated>
<author>
<name>Edward Tomasz Napierala</name>
<email>trasz@FreeBSD.org</email>
</author>
<published>2020-08-23T19:59:38Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=d253610c6d2d6acd7f01bb715184f6afa9eede2f'/>
<id>urn:sha1:d253610c6d2d6acd7f01bb715184f6afa9eede2f</id>
<content type='text'>
Implement Linux syslog(2) syscall; just enough to make Linux dmesg(8)
utility work.

Sponsored by:	The FreeBSD Foundation
</content>
</entry>
<entry>
<title>MFC r347971:</title>
<updated>2020-08-23T19:22:42Z</updated>
<author>
<name>Edward Tomasz Napierala</name>
<email>trasz@FreeBSD.org</email>
</author>
<published>2020-08-23T19:22:42Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=244b6cd8e7837dc071d00c7dddf9f61358c44423'/>
<id>urn:sha1:244b6cd8e7837dc071d00c7dddf9f61358c44423</id>
<content type='text'>
Implement PTRACE_O_TRACESYSGOOD.  This makes Linux strace(1) work.

Sponsored by:	The FreeBSD Foundation
</content>
</entry>
<entry>
<title>MFC r362037:</title>
<updated>2020-06-17T13:46:05Z</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2020-06-17T13:46:05Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=b5605b939c592ad62d48376d7bcc38cc8c329890'/>
<id>urn:sha1:b5605b939c592ad62d48376d7bcc38cc8c329890</id>
<content type='text'>
Fix a couple of nits in Linux sysinfo(2) emulation.
</content>
</entry>
</feed>
