#
04d3f8e5 |
| 12-May-2024 |
Ricardo Branco <rbranco@suse.de> |
linprocfs: Add support for proc/sys/fs/mqueue/*
Reviewed by: imp, kib Pull Request: https://github.com/freebsd/freebsd-src/pull/1248
|
#
208f11e8 |
| 22-May-2024 |
Warner Losh <imp@FreeBSD.org> |
linprocfs: use %z for size_t arguments
64-bit doesn't care or give a warning, but i386 compile complains (rightly) that these are size_t and need a %z modifier.
Fixes: 25a04527b706 Sponsored by: N
linprocfs: use %z for size_t arguments
64-bit doesn't care or give a warning, but i386 compile complains (rightly) that these are size_t and need a %z modifier.
Fixes: 25a04527b706 Sponsored by: Netflix
show more ...
|
#
25a04527 |
| 12-May-2024 |
Ricardo Branco <rbranco@suse.de> |
linprocfs: Add support for proc/sysvipc/{msg,sem,shm}
Reviewed by: imp,kib Pull Request: https://github.com/freebsd/freebsd-src/pull/1232
|
#
71ffda41 |
| 12-May-2024 |
Warner Losh <imp@FreeBSD.org> |
Revert linprocfs commits
There's a race in these that I missed in my review that needs to be resolved.
This reverts commit ee2e36686e846d412deac23344185f4b8a8c0285. This reverts commit 02f481a30b82
Revert linprocfs commits
There's a race in these that I missed in my review that needs to be resolved.
This reverts commit ee2e36686e846d412deac23344185f4b8a8c0285. This reverts commit 02f481a30b8269c7cad24ec2920ca09751708a1e. This reverts commit 099a81a4173bc5b121e50d4e27ea5fafdda8475b.
show more ...
|
#
ee2e3668 |
| 12-May-2024 |
Warner Losh <imp@FreeBSD.org> |
linprocfs: Really fix time_t type issue
The cast to (long) is wrong on all the other 32-bit platforms. (long long) is the correct type on all platforms. Also, use a z modifier for size_t which also
linprocfs: Really fix time_t type issue
The cast to (long) is wrong on all the other 32-bit platforms. (long long) is the correct type on all platforms. Also, use a z modifier for size_t which also fails on 32-bit platforms.
Fixes: 02f481a30b82 Sponsored by: Netflix
show more ...
|
#
02f481a3 |
| 12-May-2024 |
Warner Losh <imp@FreeBSD.org> |
linprocfs: Fix i386 time type
Cast the time type to (long). This is correct on all architectures. On i386, this promotes the int time_t to a long (which is also 32-bit). On 64-bit architectures, thi
linprocfs: Fix i386 time type
Cast the time type to (long). This is correct on all architectures. On i386, this promotes the int time_t to a long (which is also 32-bit). On 64-bit architectures, this promotes the 64-bit signed time_t to a 64-bit signed int type.
Sponsored by: Netflix
show more ...
|
#
099a81a4 |
| 04-May-2024 |
Ricardo Branco <rbranco@suse.de> |
linprocfs: Add support for proc/sysvipc/{msg,sem,shm}
Signed-off-by: Ricardo Branco <rbranco@suse.de> Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1218
|
Revision tags: release/13.3.0 |
|
#
d74a7427 |
| 04-Jan-2024 |
Mark Johnston <markj@FreeBSD.org> |
linprocfs: Avoid using a sysctl to get the CPU model string
This will fail if the reading process is in capability mode. Just copy the string directly.
PR: 276043 Reviewed by: emaste, imp, kib Re
linprocfs: Avoid using a sysctl to get the CPU model string
This will fail if the reading process is in capability mode. Just copy the string directly.
PR: 276043 Reviewed by: emaste, imp, kib Reported and tested by: Ricardo Branco <rbranco@suse.com> MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D43281
show more ...
|
#
29363fb4 |
| 23-Nov-2023 |
Warner Losh <imp@FreeBSD.org> |
sys: Remove ancient SCCS tags.
Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a perl s
sys: Remove ancient SCCS tags.
Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a perl script.
Sponsored by: Netflix
show more ...
|
Revision tags: release/14.0.0 |
|
#
7bbdcdc9 |
| 18-Aug-2023 |
Dmitry Chagin <dchagin@FreeBSD.org> |
linprocfs(5): Follow style(9), sort includes
|
#
cb1fab08 |
| 18-Aug-2023 |
Dmitry Chagin <dchagin@FreeBSD.org> |
linprocfs(5): Remove sys/cdefs.h inclusion where it's not needed due to 685dc743
|
#
e738085b |
| 17-Aug-2023 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
Remove my middle name.
|
#
685dc743 |
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
sys: Remove $FreeBSD$: one-line .c pattern
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
|
#
a482fffc |
| 29-May-2023 |
Dmitry Chagin <dchagin@FreeBSD.org> |
linprocfs: Rework according to the new ABI altroot facility
By 3d2fec7d the ABI prefix path added to the struct pwd. Use it in the mounts, mountinfo filler functions.
Differential revision: https:/
linprocfs: Rework according to the new ABI altroot facility
By 3d2fec7d the ABI prefix path added to the struct pwd. Use it in the mounts, mountinfo filler functions.
Differential revision: https://reviews.freebsd.org/D39438 MFC after: 2 month
show more ...
|
Revision tags: release/13.2.0 |
|
#
6c5786fd |
| 04-Mar-2023 |
Dmitry Chagin <dchagin@FreeBSD.org> |
linux(4): Migrate to IfAPI
Migrate linux and linprocfs to use the IfAPI interfaces instead of direct ifnet accesses. The code initially writed by jhibbits@, and adapted by me to 3ab3c9c2.
Reviewed
linux(4): Migrate to IfAPI
Migrate linux and linprocfs to use the IfAPI interfaces instead of direct ifnet accesses. The code initially writed by jhibbits@, and adapted by me to 3ab3c9c2.
Reviewed by: jhibbits Differential Revision: https://reviews.freebsd.org/D38735
show more ...
|
#
a55b5a9a |
| 26-Feb-2023 |
Dmitry Chagin <dchagin@FreeBSD.org> |
linprocfs(4): Fixup process size in the /proc/pid/stat file
According to the Linux sources the kernel exposes a proces virtual memory size via proc filesystem into the three files - stat, status and
linprocfs(4): Fixup process size in the /proc/pid/stat file
According to the Linux sources the kernel exposes a proces virtual memory size via proc filesystem into the three files - stat, status and statm. This is the struct mm->total_vm value adjusted to the corresponding units - bytes, kilobytes and pages.
The fix is based on a fernape@ analysis.
PR: 265937 Reported by: Ray Bellis MFC after: 3 days
show more ...
|
#
3ab3c9c2 |
| 23-Feb-2023 |
Dmitry Chagin <dchagin@FreeBSD.org> |
linux(4): Consolidate a FreeBSD interface names translation code
We have some amount of interface names translation functions which are differs by bugs implementation. Consolidates it in a one place
linux(4): Consolidate a FreeBSD interface names translation code
We have some amount of interface names translation functions which are differs by bugs implementation. Consolidates it in a one place.
Fixup loopback interface names translation and use ifnet methods and accessors, where possible.
Reviewed by: melifaro Differential Revision: https://reviews.freebsd.org/D38714 MFC after: 3 days X-MFC with: 32fdc75fe7
show more ...
|
#
19850ee0 |
| 22-Feb-2023 |
Justin Hibbits <jhibbits@FreeBSD.org> |
Revert "linprocfs: Migrate to IfAPI"
This reverts commit 5243598927a95e77b3bb9804b049539b87353a5b.
Requested by: dchagin
|
#
52435989 |
| 02-Feb-2023 |
Justin Hibbits <jhibbits@FreeBSD.org> |
linprocfs: Migrate to IfAPI
Summary: Migrate linprocfs to use the IfAPI interfaces instead of direct ifnet accesses.
Reviewed by: dchagin Sponsored by: Juniper Networks, Inc. Differential Revision:
linprocfs: Migrate to IfAPI
Summary: Migrate linprocfs to use the IfAPI interfaces instead of direct ifnet accesses.
Reviewed by: dchagin Sponsored by: Juniper Networks, Inc. Differential Revision: https://reviews.freebsd.org/D38358
show more ...
|
Revision tags: release/12.4.0 |
|
#
4c9db956 |
| 22-Oct-2022 |
John Grafton <john.grafton@runbox.com> |
linprocfs: Add net/route.
PR: 266482 Reviewed by: melifaro, me Differential revision: https://reviews.freebsd.org/D36949 MFC after: 1 week
|
#
c8e7070c |
| 29-Jun-2022 |
Dmitry Chagin <dchagin@FreeBSD.org> |
linprocfs: Decode SGX CPU feature in cpuinfo
MFC after: 2 weeks
|
#
7ab03740 |
| 29-Jun-2022 |
Dmitry Chagin <dchagin@FreeBSD.org> |
linprocfs: Decode more CPU flags in cpuinfo
Differential revision: https://reviews.freebsd.org/D35556 MFC after: 2 weeks
|
#
8da00a51 |
| 29-Jun-2022 |
Dmitry Chagin <dchagin@FreeBSD.org> |
linprocfs: Decode constant_tsc CPU feature
Differential revision: https://reviews.freebsd.org/D35554 MFC after: 2 weeks
|
#
ef1976cc |
| 22-Jun-2022 |
Dmitry Chagin <dchagin@FreeBSD.org> |
linprocfs: Skip printing of the guard page in the /proc/self/maps
To calculate the base (lowest addressable) address of the stack of the initial thread glibc parses /proc/self/maps. In fact, the bas
linprocfs: Skip printing of the guard page in the /proc/self/maps
To calculate the base (lowest addressable) address of the stack of the initial thread glibc parses /proc/self/maps. In fact, the base address is calculated as 'to' value of stack entry of the /proc/self/maps - stack size limit (if the stack grows down). The base address should fit in between preceding entry and stack entry of the /proc/self/maps. In FreeBSD, since 19bd0d9 (Implement address space guards), we actually have two mappings for the stack region. The first one is the no-access mapping for the region the stack can grow into (guard page), and the second - initial stack region with size sgrowsiz. The first mapping confuses Glibc, in the end which is improperly calculate stack size and the base address.
PR: 253337 Reviewed by: kib Differential revision: https://reviews.freebsd.org/D35537 MFC after: 2 week
show more ...
|
#
7e2a4511 |
| 31-May-2022 |
Dmitry Chagin <dchagin@FreeBSD.org> |
linprocfs: Add /proc/vm/max_map_count
On Linux this limits the number of maps per mm struct. We don't limit mappings, return a suitable large value.
Reviewed by: emaste Differential revision: http
linprocfs: Add /proc/vm/max_map_count
On Linux this limits the number of maps per mm struct. We don't limit mappings, return a suitable large value.
Reviewed by: emaste Differential revision: https://reviews.freebsd.org/D35351 MFC after: 2 weeks
show more ...
|