lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.64.0612031602570.1867@scrub.home>
Date:	Sun, 3 Dec 2006 16:21:25 +0100 (CET)
From:	Roman Zippel <zippel@...ux-m68k.org>
To:	Russell King <rmk+lkml@....linux.org.uk>
cc:	Pavel Machek <pavel@....cz>, Al Viro <viro@....linux.org.uk>,
	Thomas Gleixner <tglx@...utronix.de>,
	Matthew Wilcox <matthew@....cx>,
	Linus Torvalds <torvalds@...l.org>, linux-arch@...r.kernel.org,
	linux-kernel@...r.kernel.org
Subject: Re: [RFC] timers, pointers to functions and type safety

Hi,

On Sun, 3 Dec 2006, Russell King wrote:

> I agree with Al, Matthew and Pavel.  The current timer stuff is a pita
> and needs fixing, and it seems Al has come up with a good way to do it
> without adding additional crap into every single user of timers.

What exactly is the pita here? Al only came up with some rather 
theoretical problems with no practical relevance.

> There *are* times when having the additional space for storing a pointer
> is cheaper (in terms of number of bytes) than code to calculate an offset,
> and those who have read the assembly code probably know this all too well.

In simple cases gcc can optimize this away, additionally it's offset by 
one less memory reference in the timer code, so the code executed per 
timer would be equal or often even less. Additionally less code is needed 
to initialize the timer.

> Al - I look forward to your changes.

I don't. The current API is maybe not perfect, but changing the API for no 
practical benefit would be an even bigger pita. I'd rather keep it as is.

bye, Roman
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ