Re: [PATCH] intel_uncore.c - Horrible, ugly hack to avoid dmesg spam

2017-10-28 Thread Miod Vallat
> The patch below simply stops printing additional messages after 10 > lines have been printed. > You might want to use ratecheck(9) rather than a simple limit.

[PATCH] intel_uncore.c - Horrible, ugly hack to avoid dmesg spam

2017-10-28 Thread Bryan Linton
Hello tech@ First, I want to say that I'm in no way advocating that this patch be committed to the tree. I'm sending it solely for the others who have encountered the same issue I have. It's only purpose is to suppress dmesg spam on boot and thereby speed up booting by 10-15 seconds, as well as

Re: just a few 1<<31 to 1U<<31

2017-10-28 Thread Artturi Alm
On Wed, Sep 27, 2017 at 09:06:01PM +0300, Artturi Alm wrote: > Hi, > > was looking at sdmmc, and then i did remember this rev1.3 commit: > http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/sys/arch/armv7/imx/imxccm.c#rev1.3 > > also fixes those from under sys/dev/fdt and sys/arch/armv7 i found, > didn

armv7/arm64 i2c gates+resets + quirk for >=sun6i-a31-i2c compat

2017-10-28 Thread Artturi Alm
Hi, in short: everything to enable i2c on newer sunxis. adds sxitwi* at fdt, and iic* at sxitwi to arm64 GENERIC&RAMDISK, adds I2C IP gates+resets for a64&h3 to sxiccmu_clocks.h, and adds sxitwi compatible+quirk for +a31(sun6i+newer). --Artturi diff --git a/sys/arch/arm64/conf/GENERIC b/sys/arc

Re: "max" field in "netstat -m" is ambiguous

2017-10-28 Thread Theo de Raadt
> Ian Darwin suggested using fmt_scaled for an output like this: > 6.1M/7.1M/512Mbytes allocated to network (current/peak/max) > > netstat is already linked against libutil. No thank you, it doesn't read well at a glance. Humans can read just fine.

Re: "max" field in "netstat -m" is ambiguous

2017-10-28 Thread Mike Belopuhov
On Sat, Oct 28, 2017 at 11:06 +0200, Mike Belopuhov wrote: > On Thu, Oct 26, 2017 at 08:58 +0200, Claudio Jeker wrote: > > On Wed, Oct 25, 2017 at 11:46:05PM +0200, Mike Belopuhov wrote: > > > On Wed, Oct 25, 2017 at 21:56 +0200, Claudio Jeker wrote: > > > > Would be great if netstat could show the

Re: [patch] Remove superfluous seek_filesize() from less

2017-10-28 Thread Ingo Schwarze
Hi, On Sat, Sep 16, 2017 at 10:53:47PM +0200, Jesper Wallin wrote: > I was reading through the code for less/filename.c and noticed that the > calling for seek_filesize() in filesize() is superfluous? A wild guess > is that it's remains from when BAD_LSEEK was removed? There is more that is use

ctfconv(1) & forward declaration

2017-10-28 Thread Martin Pieuchot
Diff below makes ctfconv(1) aware of forward declarations and merge them with the corresponding type as soon as they are known. This reduces the number of type entries in a kernel CTF section by ~4K. After applying this diff, grepping for "(0 bytes)" in the ctfdump(1) output points to code that g

Re: ->

2017-10-28 Thread Jeremie Courreges-Anglas
On Sat, Oct 28 2017, Martin Pieuchot wrote: > Another diff to use in userland. Kernel and bootloader are still > untouched. > > ok? ok jca@ -- jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF DDCC 0DFA 74AE 1524 E7EE

Re: "max" field in "netstat -m" is ambiguous

2017-10-28 Thread Claudio Jeker
On Sat, Oct 28, 2017 at 11:06:16AM +0200, Mike Belopuhov wrote: > On Thu, Oct 26, 2017 at 08:58 +0200, Claudio Jeker wrote: > > On Wed, Oct 25, 2017 at 11:46:05PM +0200, Mike Belopuhov wrote: > > > On Wed, Oct 25, 2017 at 21:56 +0200, Claudio Jeker wrote: > > > > Would be great if netstat could sho

sysctl.3 w/o

2017-10-28 Thread Martin Pieuchot
Including doesn't require , is enough. ok? Index: gen/sysctl.3 === RCS file: /cvs/src/lib/libc/gen/sysctl.3,v retrieving revision 1.284 diff -u -p -r1.284 sysctl.3 --- gen/sysctl.316 Oct 2017 15:09:43 - 1.284 +++ g

Re: "max" field in "netstat -m" is ambiguous

2017-10-28 Thread Mike Belopuhov
On Thu, Oct 26, 2017 at 08:58 +0200, Claudio Jeker wrote: > On Wed, Oct 25, 2017 at 11:46:05PM +0200, Mike Belopuhov wrote: > > On Wed, Oct 25, 2017 at 21:56 +0200, Claudio Jeker wrote: > > > Would be great if netstat could show the current and peak memory usage. > > > > > > > Current is 5876. Ma

->

2017-10-28 Thread Martin Pieuchot
Another diff to use in userland. Kernel and bootloader are still untouched. ok? Index: distrib/common/elfrd_size.c === RCS file: /cvs/src/distrib/common/elfrd_size.c,v retrieving revision 1.6 diff -u -p -r1.6 elfrd_size.c --- distr

Re: fine tuning PF_LOCK in pfioctl()

2017-10-28 Thread Martin Pieuchot
On 28/10/17(Sat) 00:32, Alexandr Nedvedicky wrote: > Hello, > > patch below fine tunes PF_LOCK in pfioctl() function. Currently pfioctl() > function grabs PF_LOCK() for all operations at line 1006, right before 'the > big > switch' is entered. The PF_LOCK() gets released once we are done with 'th

Re: libfuse: improved command line parsing

2017-10-28 Thread Martin Pieuchot
On 17/10/17(Tue) 14:26, Helg Bredow wrote: > [...] > I've split the patch. This one improves argument and option parsing so that > almost all sshfs arguments and options will now parse. It won't recognise > -ocache=no since fuse_opt_match() is incorrect (fuse will treat it the same > as -ocache

Re: libfuse: fuse.c null checks and others

2017-10-28 Thread Martin Pieuchot
On 25/10/17(Wed) 13:27, Helg Bredow wrote: > I've included different minor patches below as one patch. I haven't split > into separate patches since the changes are not complex and easy to audit. > > Here's what it does: > > Almost all functions in fuse.c do not check if the arguments are null.