History log of /netbsd-src/sys/miscfs/procfs/procfs_linux.c (Results 1 – 25 of 90)
Revision Date Author Comments
# 78b530bb 14-Sep-2024 pgoyette <pgoyette@NetBSD.org>

Define dependencies based on build options.


# 0124a941 01-Jul-2024 christos <christos@NetBSD.org>

Add linux POSIX message queue support (Ricardo Branco)


# 87f98fe2 12-May-2024 christos <christos@NetBSD.org>

PR/58227: Ricardo Branco: Add support for proc/sysvipc in Linux emulator


# 9fc45356 05-Sep-2020 riastradh <riastradh@NetBSD.org>

Round of uvm.h cleanup.

The poorly named uvm.h is generally supposed to be for uvm-internal
users only.

- Narrow it to files that actually need it -- mostly files that need
to query whether curlw

Round of uvm.h cleanup.

The poorly named uvm.h is generally supposed to be for uvm-internal
users only.

- Narrow it to files that actually need it -- mostly files that need
to query whether curlwp is the pagedaemon, which should maybe be
exposed by an external header.

- Use uvm_extern.h where feasible and uvm_*.h for things not exposed
by it. We should split up uvm_extern.h but this will serve for now
to reduce the uvm.h dependencies.

- Use uvm_stat.h and #ifdef UVMHIST uvm.h for files that use
UVMHIST(ubchist), since ubchist is declared in uvm.h but the
reference evaporates if UVMHIST is not defined, so we reduce header
file dependencies.

- Make uvm_device.h and uvm_swap.h independently includable while
here.

ok chs@

show more ...


# ba90a6ba 11-Jun-2020 ad <ad@NetBSD.org>

Counter tweaks:

- Don't need to count anonpages+filepages any more; clean+unknown+dirty for
each kind of page can be summed to get the totals.

- Track the number of free pages with a counter so t

Counter tweaks:

- Don't need to count anonpages+filepages any more; clean+unknown+dirty for
each kind of page can be summed to get the totals.

- Track the number of free pages with a counter so that it's one less thing
for the allocator to do, which opens up further options there.

- Remove cpu_count_sync_one(). It has no users and doesn't save a whole lot.
For the cheap option, give cpu_count_sync() a boolean parameter indicating
that a cached value is okay, and rate limit the updates for cached values
to hz.

show more ...


# 4b8a875a 11-Jun-2020 ad <ad@NetBSD.org>

uvm_availmem(): give it a boolean argument to specify whether a recent
cached value will do, or if the very latest total must be fetched. It can
be called thousands of times a second and fetching th

uvm_availmem(): give it a boolean argument to specify whether a recent
cached value will do, or if the very latest total must be fetched. It can
be called thousands of times a second and fetching the totals impacts not
only the calling LWP but other CPUs doing unrelated activity in the VM
system.

show more ...


# 46b290a0 31-May-2020 rin <rin@NetBSD.org>

struct statvfs is too large for stack. Use malloc(9) instead.

XXX
Switch to kmem(9) for entire this file.

Frame size, e.g. for m68k, becomes:
3292 --> 12


# 0eaaa024 23-May-2020 ad <ad@NetBSD.org>

Move proc_lock into the data segment. It was dynamically allocated because
at the time we had mutex_obj_alloc() but not __cacheline_aligned.


# 0a1cb031 20-Apr-2020 martin <martin@NetBSD.org>

Add missing include of <sys/atomic.h> to fix the build


# a29147fa 19-Apr-2020 thorpej <thorpej@NetBSD.org>

- Only increment nprocs when we're creating a new process, not just
when allocating a PID.
- Per above, proc_free_pid() no longer decrements nprocs. It's now done
in proc_free() right after proc

- Only increment nprocs when we're creating a new process, not just
when allocating a PID.
- Per above, proc_free_pid() no longer decrements nprocs. It's now done
in proc_free() right after proc_free_pid().
- Ensure nprocs is accessed using atomics everywhere.

show more ...


# d6c967bb 02-Jan-2020 thorpej <thorpej@NetBSD.org>

- Eliminate the global "boottime" variable, which was being accessed
without any synchronization against changes by e.g. clock_settime().
- Replace with new getbinboottime() / getnanoboottime() / g

- Eliminate the global "boottime" variable, which was being accessed
without any synchronization against changes by e.g. clock_settime().
- Replace with new getbinboottime() / getnanoboottime() / getmicroboottime()
functions (naming mirrors that of other time access functions in kern_tc.c).
It returns the (maybe-converted) value of timebasebin, which also tracks
our estimate of when the system was booted (i.e. the legacy "boottime" was
redundant).

XXX There needs to be a lockless synchronization mechanism for reading
timebasebin, but this is a problem in kern_tc.c that pre-existed these
"boottime" changes. At least now the problem is centralized in one location.

show more ...


# 5c06357c 31-Dec-2019 ad <ad@NetBSD.org>

Rename uvm_free() -> uvm_availmem().


# ddd3a0be 21-Dec-2019 ad <ad@NetBSD.org>

uvmexp.free -> uvm_free()


# a98966d3 16-Dec-2019 ad <ad@NetBSD.org>

- Extend the per-CPU counters matt@ did to include all of the hot counters
in UVM, excluding uvmexp.free, which needs special treatment and will be
done with a separate commit. Cuts system time

- Extend the per-CPU counters matt@ did to include all of the hot counters
in UVM, excluding uvmexp.free, which needs special treatment and will be
done with a separate commit. Cuts system time for a build by 20-25% on
a 48 CPU machine w/DIAGNOSTIC.

- Avoid 64-bit integer divide on every fault (for rnd_add_uint32).

show more ...


# 45fbe545 07-Sep-2019 chs <chs@NetBSD.org>

have procfs_do_pid_stat() pass the proc's map to get_proc_size_info(),
rather than having the latter look up the map again and not check
for an error.


# 3fb8db10 23-Aug-2019 maxv <maxv@NetBSD.org>

Fix info leaks.


# dea54605 05-Dec-2018 christos <christos@NetBSD.org>

As discussed in tech-kern:

- make sysctl kern.expose_address tri-state:
0: no access
1: access to processes with open /dev/kmem
2: access to everyone
defaults:
0: KASLR kernels
1: non-KASLR k

As discussed in tech-kern:

- make sysctl kern.expose_address tri-state:
0: no access
1: access to processes with open /dev/kmem
2: access to everyone
defaults:
0: KASLR kernels
1: non-KASLR kernels

- improve efficiency by calling get_expose_address() per sysctl, not per
process.

- don't expose addresses for linux procfs

- welcome to 8.99.27, changes to fill_*proc ABI

show more ...


# 769f0c92 13-Apr-2017 hannken <hannken@NetBSD.org>

Switch procfs_domounts() to mountlist iterator.


# 3bb28e76 28-Mar-2016 mlelstv <mlelstv@NetBSD.org>

Align /proc/<pid>/statm data with /proc/<pid>/stat and
provide RSS information. There is no data about shared
pages.

Helps PR 50801.


# 6647020b 24-Jul-2015 maxv <maxv@NetBSD.org>

Unused inits (harmless).

Found by Brainy.


# 5918ad37 10-Aug-2014 matt <matt@NetBSD.org>

#include <sys/cpu.h>


# 684c8bf8 12-Jul-2014 njoly <njoly@NetBSD.org>

Use kproc2 to provide sensible informations for /proc/<pid>/stat.


# 7e0ae4d8 30-Jun-2014 njoly <njoly@NetBSD.org>

Use NZERO instead of hard-coded "20" value.


# 16c9d42f 05-Apr-2014 christos <christos@NetBSD.org>

On my 24 proc box I got ENOSPC, so make the routine return the size it wants
and try again.


# 9d605174 27-Nov-2013 christos <christos@NetBSD.org>

Change the queue.3 *_END(&head) macros to NULL. Since we don't have CIRCLEQ
anymore, all the macros expand to NULL anyway, so this improves readability.
Requested by rmind@


1234