Re: very poor ext3 write performance on big filesystems?

2008-02-19 Thread Paulo Marques
om looking at the code, I think I've found at least one bug in opendir: ... dnew = realloc(dirstruct->dp, dirstruct->max * sizeof(struct dir_s)); ... Shouldn't this be: "...*sizeof(struct dirent_s));"? -- Paulo Marques - www.grupopie.com "Nostalgia isn't what it

Re: very poor ext3 write performance on big filesystems?

2008-02-19 Thread Paulo Marques
at the code, I think I've found at least one bug in opendir: ... dnew = realloc(dirstruct-dp, dirstruct-max * sizeof(struct dir_s)); ... Shouldn't this be: ...*sizeof(struct dirent_s));? -- Paulo Marques - www.grupopie.com Nostalgia isn't what it used to be. -- To unsubscribe from

Re: Disk schedulers

2008-02-15 Thread Paulo Marques
and dirty_expire_centisecs) You can read all about those tunables in Documentation/filesystems/proc.txt. Just my 2 cents, -- Paulo Marques - www.grupopie.com "Very funny Scotty. Now beam up my clothes." -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in t

Re: Disk schedulers

2008-02-15 Thread Paulo Marques
and dirty_expire_centisecs) You can read all about those tunables in Documentation/filesystems/proc.txt. Just my 2 cents, -- Paulo Marques - www.grupopie.com Very funny Scotty. Now beam up my clothes. -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message

Re: managing kallsyms_addresses

2008-01-31 Thread Paulo Marques
n could be simply implemented by having a default value for the flag that is the "current state" for that flag... -- Paulo Marques - www.grupopie.com "There cannot be a crisis today; my schedule is already full." -- To unsubscribe from this list: send the line "unsubscribe lin

Re: managing kallsyms_addresses

2008-01-31 Thread Paulo Marques
a default value for the flag that is the current state for that flag... -- Paulo Marques - www.grupopie.com There cannot be a crisis today; my schedule is already full. -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More

Re: [PATCH 1/1] [Kallsyms] Blackfin: Allow kernel symbols in L1 to be found

2008-01-30 Thread Paulo Marques
Bryan Wu wrote: From: Robin Getz <[EMAIL PROTECTED]> [...] --- a/scripts/kallsyms.c +++ b/scripts/kallsyms.c @@ -12,6 +12,8 @@ * (25/Aug/2004) Paulo Marques <[EMAIL PROTECTED]> * Changed the compression method from stem compression to "table lookup" * compre

Re: [PATCH 1/1] [Kallsyms] Blackfin: Allow kernel symbols in L1 to be found

2008-01-30 Thread Paulo Marques
Bryan Wu wrote: From: Robin Getz [EMAIL PROTECTED] [...] --- a/scripts/kallsyms.c +++ b/scripts/kallsyms.c @@ -12,6 +12,8 @@ * (25/Aug/2004) Paulo Marques [EMAIL PROTECTED] * Changed the compression method from stem compression to table lookup * compression + * (10/Jul/2006

Re: [PATCH 1/6] POWERPC: use KSYM_NAME_LEN

2008-01-23 Thread Paulo Marques
Cyrill Gorcunov wrote: [Paulo Marques - Wed, Jan 23, 2008 at 06:26:28PM +] Cyrill Gorcunov wrote: [...] case 's': - getstring(tmp, 64); + getstring(tmp, sizeof(tmp)); if (setjmp(bus_error_jmp) == 0

Re: [PATCH 1/6] POWERPC: use KSYM_NAME_LEN

2008-01-23 Thread Paulo Marques
l a nice cleanup, though. So, if the powerpc people feel they can spare an extra 64 bytes of stack here, I guess it's ok. -- Paulo Marques - www.grupopie.com "As far as we know, our computer has never had an undetected error." Weisert -- To unsubscribe from this list: send the line

Re: [PATCH 1/6] POWERPC: use KSYM_NAME_LEN

2008-01-23 Thread Paulo Marques
spare an extra 64 bytes of stack here, I guess it's ok. -- Paulo Marques - www.grupopie.com As far as we know, our computer has never had an undetected error. Weisert -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More

Re: [PATCH 1/6] POWERPC: use KSYM_NAME_LEN

2008-01-23 Thread Paulo Marques
Cyrill Gorcunov wrote: [Paulo Marques - Wed, Jan 23, 2008 at 06:26:28PM +] Cyrill Gorcunov wrote: [...] case 's': - getstring(tmp, 64); + getstring(tmp, sizeof(tmp)); if (setjmp(bus_error_jmp) == 0

Re: [RFC] mmaped copy too slow?

2008-01-15 Thread Paulo Marques
thing, - most faster method is read + write + fadvice. - worst method is mmap + memcpy. One thing you could also try is to pass MAP_POPULATE to mmap so that the page tables are filled in at the time of the mmap, avoiding a lot of page faults later. Just my 2 cents, -- Paulo Marques

Re: [RFC] mmaped copy too slow?

2008-01-15 Thread Paulo Marques
thing, - most faster method is read + write + fadvice. - worst method is mmap + memcpy. One thing you could also try is to pass MAP_POPULATE to mmap so that the page tables are filled in at the time of the mmap, avoiding a lot of page faults later. Just my 2 cents, -- Paulo Marques

Re: [PATCH] call sysrq_timer_list_show from a workqueue

2008-01-09 Thread Paulo Marques
later isn't pretty anyway. I can do a patch for this, but this will touch a few subsystems that use these interfaces (there are not a lot of them, though). The major change would probably be the allocation of a small buffer (56~60 bytes) in some of the callers to hold the module name.

Re: [PATCH] call sysrq_timer_list_show from a workqueue

2008-01-09 Thread Paulo Marques
for this, but this will touch a few subsystems that use these interfaces (there are not a lot of them, though). The major change would probably be the allocation of a small buffer (56~60 bytes) in some of the callers to hold the module name. -- Paulo Marques - www.grupopie.com There cannot

Re: [RFC] libusb / in-kernel usb driver criteria (was: USB driver for talking to the Microchip PIC18 boot loader)

2008-01-02 Thread Paulo Marques
write their drivers. -- Paulo Marques - www.grupopie.com "Very funny Scotty. Now beam up my clothes." -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-inf

Re: [RFC] libusb / in-kernel usb driver criteria (was: USB driver for talking to the Microchip PIC18 boot loader)

2008-01-02 Thread Paulo Marques
their drivers. -- Paulo Marques - www.grupopie.com Very funny Scotty. Now beam up my clothes. -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http

Re: [-mm PATCH] kallsyms should prefer non weak symbols

2007-12-05 Thread Paulo Marques
Mathieu Desnoyers wrote: * Paulo Marques ([EMAIL PROTECTED]) wrote: When resolving symbol names from addresses with aliased symbol names, kallsyms_lookup always returns the first symbol, even if it is a weak symbol. [...] From: Paulo Marques <[EMAIL PROTECTED]> Signed-off-by: M

Re: [-mm PATCH] kallsyms should prefer non weak symbols

2007-12-05 Thread Paulo Marques
Mathieu Desnoyers wrote: * Paulo Marques ([EMAIL PROTECTED]) wrote: When resolving symbol names from addresses with aliased symbol names, kallsyms_lookup always returns the first symbol, even if it is a weak symbol. [...] From: Paulo Marques [EMAIL PROTECTED] Signed-off-by: Mathieu Desnoyers

[-mm PATCH] kallsyms should prefer non weak symbols

2007-12-04 Thread Paulo Marques
rom: Paulo Marques <[EMAIL PROTECTED]> Signed-off-by: Mathieu Desnoyers <[EMAIL PROTECTED]> -- Paulo Marques - www.grupopie.com "There cannot be a crisis today; my schedule is already full." --- ./scripts/kallsyms.c.orig 2007-10-30 18:51:28.0 + +++ ./scripts/ka

[-mm PATCH] kallsyms should prefer non weak symbols

2007-12-04 Thread Paulo Marques
Marques [EMAIL PROTECTED] Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] -- Paulo Marques - www.grupopie.com There cannot be a crisis today; my schedule is already full. --- ./scripts/kallsyms.c.orig 2007-10-30 18:51:28.0 + +++ ./scripts/kallsyms.c2007-10-30 19:07

Re: [PATCH] Kallsyms Should Prefer Non Weak Symbols

2007-11-14 Thread Paulo Marques
st hadn't found the time to do it, and then our mail server just went berserk and I lost 5 days of LKML :P I think the patch is ok as it is, but a nice message explaining what it does and why would be nice for the changelog. So, I'll post a new message with a nice description for inclusion in -mm today.

Re: [PATCH] Kallsyms Should Prefer Non Weak Symbols

2007-11-14 Thread Paulo Marques
mail server just went berserk and I lost 5 days of LKML :P I think the patch is ok as it is, but a nice message explaining what it does and why would be nice for the changelog. So, I'll post a new message with a nice description for inclusion in -mm today. Sorry for the delay, -- Paulo

Re: kallsyms __print_symbol prints first weak symbol encountered

2007-10-30 Thread Paulo Marques
So, if someone wants to use this, it should go through -mm for a while, first. -- Paulo Marques - www.grupopie.com "All I ask is a chance to prove that money can't make me happy." --- ./scripts/kallsyms.c.orig 2007-10-30 18:51:28.0 + +++ ./scripts/kallsyms.c2007

Re: kallsyms __print_symbol prints first weak symbol encountered

2007-10-30 Thread Paulo Marques
this, it should go through -mm for a while, first. -- Paulo Marques - www.grupopie.com All I ask is a chance to prove that money can't make me happy. --- ./scripts/kallsyms.c.orig 2007-10-30 18:51:28.0 + +++ ./scripts/kallsyms.c2007-10-30 19:07:58.0 + @@ -34,7 +34,7

Re: /proc/kallsyms and symbol size

2007-09-25 Thread Paulo Marques
to reduce the size used by the symbol table in the running kernel. Just take a look at "get_symbol_pos" in kernel/kallsyms.c and "get_ksymbol" in kernel/module.c to see exactly how this is done -- Paulo Marques - www.grupopie.com "There cannot be a crisis today; my

Re: /proc/kallsyms and symbol size

2007-09-25 Thread Paulo Marques
to reduce the size used by the symbol table in the running kernel. Just take a look at get_symbol_pos in kernel/kallsyms.c and get_ksymbol in kernel/module.c to see exactly how this is done -- Paulo Marques - www.grupopie.com There cannot be a crisis today; my schedule is already full

Re: [PATCH] Reduce __print_symbol/sprint_symbol stack usage. (v3)

2007-09-21 Thread Paulo Marques
ock. On the other hand, if you take the other approach of reducing the stack usage by creating a printk_symbol interface, the stack usage would drop from 350 bytes to 128 bytes and your problem would go away entirely. -- Paulo Marques - www.grupopie.com "All I ask is a chance to prove that mon

Re: [PATCH] Reduce __print_symbol/sprint_symbol stack usage.

2007-09-21 Thread Paulo Marques
Steven Rostedt wrote: On Wed, Sep 19, 2007 at 03:25:15PM +0100, Paulo Marques wrote: if we change the interface from "print_symbol(fmt, addr)" to "print_symbol(prefix, addr, int newline)" we can simply do: printk(prefix); printk_symbol(addr); if (newline) printk(&

Re: [PATCH] Reduce __print_symbol/sprint_symbol stack usage.

2007-09-21 Thread Paulo Marques
ore callers of the old interface. At that point we can just drop it entirely. -- Paulo Marques - www.grupopie.com "God is love. Love is blind. Ray Charles is blind. Ray Charles is God." - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body

Re: [PATCH] Reduce __print_symbol/sprint_symbol stack usage.

2007-09-21 Thread Paulo Marques
it entirely. -- Paulo Marques - www.grupopie.com God is love. Love is blind. Ray Charles is blind. Ray Charles is God. - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH] Reduce __print_symbol/sprint_symbol stack usage.

2007-09-21 Thread Paulo Marques
Steven Rostedt wrote: On Wed, Sep 19, 2007 at 03:25:15PM +0100, Paulo Marques wrote: if we change the interface from print_symbol(fmt, addr) to print_symbol(prefix, addr, int newline) we can simply do: printk(prefix); printk_symbol(addr); if (newline) printk(\n); NACK I just wrote

Re: [PATCH] Reduce __print_symbol/sprint_symbol stack usage. (v3)

2007-09-21 Thread Paulo Marques
. On the other hand, if you take the other approach of reducing the stack usage by creating a printk_symbol interface, the stack usage would drop from 350 bytes to 128 bytes and your problem would go away entirely. -- Paulo Marques - www.grupopie.com All I ask is a chance to prove that money can't make

Re: [PATCH] Reduce __print_symbol/sprint_symbol stack usage.

2007-09-19 Thread Paulo Marques
nction that does the same as sprint_symbol, but does "printk" instead of "sprintf". This should reduce immensely the stack usage of print_symbol without the need for locking. Of course this requires changing _all_ callers of print_symbol to use the new interface, but these a

Re: [PATCH] Reduce __print_symbol/sprint_symbol stack usage.

2007-09-19 Thread Paulo Marques
. This should reduce immensely the stack usage of print_symbol without the need for locking. Of course this requires changing _all_ callers of print_symbol to use the new interface, but these are less than 100 ;) Comments? -- Paulo Marques - www.grupopie.com You're just jealous because

Re: [PATCH -mm] video: uvesafb: Add X86 dependency.

2007-09-11 Thread Paulo Marques
Paul Mundt wrote: On Tue, Sep 11, 2007 at 12:41:49PM +0100, Paulo Marques wrote: [...] Why do you say that it's x86 specific? Am I missing something? The emulator it uses only runs on x86 and x86_64. Thus, it's x86 specific. The v86d and uvesafb pages seem to be in disagremeent, unless

Re: [PATCH -mm] video: uvesafb: Add X86 dependency.

2007-09-11 Thread Paulo Marques
it should work on any PCI system where we can access the video card ROM and can emulate the hardware used by the ROM code. Why do you say that it's x86 specific? Am I missing something? -- Paulo Marques - www.grupopie.com "You're just jealous because the voices only talk to me." [1] h

Re: [PATCH -mm] video: uvesafb: Add X86 dependency.

2007-09-11 Thread Paulo Marques
work on any PCI system where we can access the video card ROM and can emulate the hardware used by the ROM code. Why do you say that it's x86 specific? Am I missing something? -- Paulo Marques - www.grupopie.com You're just jealous because the voices only talk to me. [1] http://dev.gentoo.org

Re: [PATCH -mm] video: uvesafb: Add X86 dependency.

2007-09-11 Thread Paulo Marques
Paul Mundt wrote: On Tue, Sep 11, 2007 at 12:41:49PM +0100, Paulo Marques wrote: [...] Why do you say that it's x86 specific? Am I missing something? The emulator it uses only runs on x86 and x86_64. Thus, it's x86 specific. The v86d and uvesafb pages seem to be in disagremeent, unless

Re: Kernel panic with 2.6.23-rc5

2007-09-04 Thread Paulo Marques
Tilman Schmidt wrote: Paulo Marques schrieb: I just tried booting a brand new 2.6.23-rc5 and after a few minutes it just panicked: machine totally frozen, blinking keyboard leds. [...] Maybe someone out there has a good suggestion that I could try before bisecting... A probable candidate

Re: Kernel panic with 2.6.23-rc5

2007-09-04 Thread Paulo Marques
Tilman Schmidt wrote: Paulo Marques schrieb: I just tried booting a brand new 2.6.23-rc5 and after a few minutes it just panicked: machine totally frozen, blinking keyboard leds. [...] Maybe someone out there has a good suggestion that I could try before bisecting... A probable candidate

Re: [PATCH] make kobject dynamic allocation check use kallsyms_lookup()

2007-08-23 Thread Paulo Marques
kobj); #endif pr_debug("kobjects must be dynamically allocated, not static\n"); /* dump_stack(); */ pr_debug(" end silly warning \n"); +out: + kfree(namebuf); } #else [...] -- Paulo Marques - www.grupopie.com "You're just jealous

Re: [PATCH] make kobject dynamic allocation check use kallsyms_lookup()

2007-08-23 Thread Paulo Marques
(); */ pr_debug( end silly warning \n); +out: + kfree(namebuf); } #else [...] -- Paulo Marques - www.grupopie.com You're just jealous because the voices only talk to me. - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL

Re: [PATCH 2.6.22-rc6-mm1] kallsyms: make KSYM_NAME_LEN include space for trailing '\0'

2007-07-11 Thread Paulo Marques
the stack because the last position of the buffer is always cleared to zero. This patch increments KSYM_NAME_LEN by one and updates code accordingly. Nice work. I've been wanting to do that cleanup myself for a long time ;) Acked-by: Paulo Marques <[EMAIL PROTECTED]> -- Paulo M

Re: [PATCH 2.6.22-rc6-mm1] kallsyms: make KSYM_NAME_LEN include space for trailing '\0'

2007-07-11 Thread Paulo Marques
the stack because the last position of the buffer is always cleared to zero. This patch increments KSYM_NAME_LEN by one and updates code accordingly. Nice work. I've been wanting to do that cleanup myself for a long time ;) Acked-by: Paulo Marques [EMAIL PROTECTED] -- Paulo Marques

Re: [PATCH] remove usage of memmem from scripts/kallsyms.c

2007-06-20 Thread Paulo Marques
h - just leave it for now and wait until I work on kallsyms again to silently remove that line together with other changes Andrew, what would you prefer? -- Paulo Marques - www.grupopie.com "All I ask is a chance to prove that money can't make me happy." - To unsubscribe from this

Re: [PATCH] remove usage of memmem from scripts/kallsyms.c

2007-06-20 Thread Paulo Marques
. yes, i believe this is true I only tried in on x86 with my toolchain and it works, but I don't know if it is worth the risk of breaking someone's setup for virtually no gain... -- Paulo Marques - www.grupopie.com "God is real, unless declared integer." - To unsubscribe from this

Re: [PATCH] remove usage of memmem from scripts/kallsyms.c

2007-06-20 Thread Paulo Marques
Christoph Hellwig wrote: On Tue, Jun 19, 2007 at 05:15:56PM +0100, Paulo Marques wrote: The only in-kernel user of "memmem" is scripts/kallsyms.c and it only uses it to find tokens that are 2 bytes in size. It is trivial to replace it with a simple function that finds 2-b

Re: [PATCH] remove usage of memmem from scripts/kallsyms.c

2007-06-20 Thread Paulo Marques
Christoph Hellwig wrote: On Tue, Jun 19, 2007 at 05:15:56PM +0100, Paulo Marques wrote: The only in-kernel user of memmem is scripts/kallsyms.c and it only uses it to find tokens that are 2 bytes in size. It is trivial to replace it with a simple function that finds 2-byte tokens

Re: [PATCH] remove usage of memmem from scripts/kallsyms.c

2007-06-20 Thread Paulo Marques
this is true I only tried in on x86 with my toolchain and it works, but I don't know if it is worth the risk of breaking someone's setup for virtually no gain... -- Paulo Marques - www.grupopie.com God is real, unless declared integer. - To unsubscribe from this list: send the line unsubscribe

Re: [PATCH] remove usage of memmem from scripts/kallsyms.c

2007-06-20 Thread Paulo Marques
it for now and wait until I work on kallsyms again to silently remove that line together with other changes Andrew, what would you prefer? -- Paulo Marques - www.grupopie.com All I ask is a chance to prove that money can't make me happy. - To unsubscribe from this list: send the line

[PATCH] remove usage of memmem from scripts/kallsyms.c

2007-06-19 Thread Paulo Marques
available. Signed-off-by: Paulo Marques <[EMAIL PROTECTED]> -- Paulo Marques - www.grupopie.com "667: The neighbor of the beast." --- ./scripts/kallsyms.c.orig 2007-06-08 12:55:49.0 +0100 +++ ./scripts/kallsyms.c2007-06-08 13:19:52.0 +0100 @@ -37

[PATCH] remove usage of memmem from scripts/kallsyms.c

2007-06-19 Thread Paulo Marques
-off-by: Paulo Marques [EMAIL PROTECTED] -- Paulo Marques - www.grupopie.com 667: The neighbor of the beast. --- ./scripts/kallsyms.c.orig 2007-06-08 12:55:49.0 +0100 +++ ./scripts/kallsyms.c2007-06-08 13:19:52.0 +0100 @@ -378,6 +378,17 @@ static void

Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3

2007-06-15 Thread Paulo Marques
82 This is a somewhat crude measure but it shows that only about 30% of the kernel is "v2 or later" and those pieces could be used on some other "v2 or later" project (including v3). But the kernel as a whole is v2 and my point was that the claim that there are just a few

Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3

2007-06-15 Thread Paulo Marques
Bernd Paysan wrote: On Friday 15 June 2007 13:49, Paulo Marques wrote: I've contributed some code for the kernel (unlike yourself, AFAICT), and believe me, I did so under GPL v2. The COPYING file is pretty much self explanatory, so I didn't need to add any explicit license statement to my code

Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3

2007-06-15 Thread Paulo Marques
Bernd Paysan wrote: On Thursday 14 June 2007 19:20, Paulo Marques wrote: Watching the output of the first grep without "wc -l" shows that, although it is not 100% accurate, it is still ok just to get a rough estimate. So yes, ~6300 files are definitely more than a couple ;)

Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3

2007-06-15 Thread Paulo Marques
Bernd Paysan wrote: On Thursday 14 June 2007 19:20, Paulo Marques wrote: Watching the output of the first grep without wc -l shows that, although it is not 100% accurate, it is still ok just to get a rough estimate. So yes, ~6300 files are definitely more than a couple ;) I knew I shouldn't

Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3

2007-06-15 Thread Paulo Marques
Bernd Paysan wrote: On Friday 15 June 2007 13:49, Paulo Marques wrote: I've contributed some code for the kernel (unlike yourself, AFAICT), and believe me, I did so under GPL v2. The COPYING file is pretty much self explanatory, so I didn't need to add any explicit license statement to my code

Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3

2007-06-15 Thread Paulo Marques
% of the kernel is v2 or later and those pieces could be used on some other v2 or later project (including v3). But the kernel as a whole is v2 and my point was that the claim that there are just a few v2 only files was bogus. -- Paulo Marques - www.grupopie.com As far as we know, our computer

Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3

2007-06-14 Thread Paulo Marques
ot;wc -l" shows that, although it is not 100% accurate, it is still ok just to get a rough estimate. So yes, ~6300 files are definitely more than a couple ;) -- Paulo Marques - www.grupopie.com "God is love. Love is blind. Ray Charles is blind. Ray Charles is God." - To unsubsc

Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3

2007-06-14 Thread Paulo Marques
, it is still ok just to get a rough estimate. So yes, ~6300 files are definitely more than a couple ;) -- Paulo Marques - www.grupopie.com God is love. Love is blind. Ray Charles is blind. Ray Charles is God. - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body

Re: PC speaker

2007-06-13 Thread Paulo Marques
won't be able to kill the speaker with software... -- Paulo Marques - www.grupopie.com "Don't hit a man when he's down -- kick him; it's easier." - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More maj

Re: PC speaker

2007-06-13 Thread Paulo Marques
won't be able to kill the speaker with software... -- Paulo Marques - www.grupopie.com Don't hit a man when he's down -- kick him; it's easier. - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http

Re: [patch/rfc] implement memmem() locally in kallsyms.c

2007-06-08 Thread Paulo Marques
of size 2, so we can use a simplified version instead (and probably get better code in the process). How about the attached patch instead? If you approve it, I'll post it appropriately for inclusion in -mm. -- Paulo Marques - www.grupopie.com "God is real, unless declared integer." ---

Re: [patch/rfc] implement memmem() locally in kallsyms.c

2007-06-08 Thread Paulo Marques
of size 2, so we can use a simplified version instead (and probably get better code in the process). How about the attached patch instead? If you approve it, I'll post it appropriately for inclusion in -mm. -- Paulo Marques - www.grupopie.com God is real, unless declared integer. --- ./scripts

Re: [Patch 05/18] fs/logfs/logfs.h

2007-06-06 Thread Paulo Marques
, but I always keep an eye out for kallsyms usage... -- Paulo Marques - www.grupopie.com "Very funny Scotty. Now beam up my clothes." - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at ht

Re: [Patch 05/18] fs/logfs/logfs.h

2007-06-06 Thread Paulo Marques
/ knowledge to review the rest of the code, but I always keep an eye out for kallsyms usage... -- Paulo Marques - www.grupopie.com Very funny Scotty. Now beam up my clothes. - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More

Re: [PATCH RESEND 1/1] crypto API: RSA algorithm patch (kernel version 2.6.20.1)

2007-03-20 Thread Paulo Marques
g standard kernel interfaces (error numbers, memory allocation, printk, etc.) is not the right way to get code merged. -- Paulo Marques - www.grupopie.com "For every problem there is one solution which is simple, neat, and wrong." H. L. Mencken - To unsubscribe from this list: send t

Re: [PATCH RESEND 1/1] crypto API: RSA algorithm patch (kernel version 2.6.20.1)

2007-03-20 Thread Paulo Marques
kernel interfaces (error numbers, memory allocation, printk, etc.) is not the right way to get code merged. -- Paulo Marques - www.grupopie.com For every problem there is one solution which is simple, neat, and wrong. H. L. Mencken - To unsubscribe from this list: send the line unsubscribe linux

Re: [PATCH v3] Race between cat /proc/kallsyms and rmmod

2007-03-19 Thread Paulo Marques
modprobe/rmmod loop cat /proc/kallsyms >/dev/null loop Copy all needed info under module_mutex. NOTE: this patch keeps module_mutex static. Yes, this patch fixes the "cat /proc/kallsyms" race without changing any "external" interfaces, so I think it should go into main

Re: [PATCH RESEND 2/2] Fix some kallsyms_lookup() vs rmmod races

2007-03-19 Thread Paulo Marques
st reliable solution would be to not return internal module information through pointers and keep all that logic internal to module.c, then the "proto-patch" with some improvements might be the way to go... -- Paulo Marques - www.grupopie.com "God is love. Love is blind. Ray Charles

Re: [PATCH RESEND 2/2] Fix some kallsyms_lookup() vs rmmod races

2007-03-19 Thread Paulo Marques
information through pointers and keep all that logic internal to module.c, then the proto-patch with some improvements might be the way to go... -- Paulo Marques - www.grupopie.com God is love. Love is blind. Ray Charles is blind. Ray Charles is God. - To unsubscribe from this list: send the line

Re: [PATCH v3] Race between cat /proc/kallsyms and rmmod

2007-03-19 Thread Paulo Marques
cat /proc/kallsyms /dev/null loop Copy all needed info under module_mutex. NOTE: this patch keeps module_mutex static. Yes, this patch fixes the cat /proc/kallsyms race without changing any external interfaces, so I think it should go into mainline in any case. Acked-by: Paulo Marques [EMAIL

Re: [PATCH RESEND 2/2] Fix some kallsyms_lookup() vs rmmod races

2007-03-16 Thread Paulo Marques
Andrew Morton wrote: On Fri, 16 Mar 2007 17:16:39 + Paulo Marques <[EMAIL PROTECTED]> wrote: Does freeze_processes() / unfreeze_processes() solve this by only freezing processes that have voluntarily scheduled (opposed to just being preempted)? It goes much much furthe

Re: [PATCH RESEND 2/2] Fix some kallsyms_lookup() vs rmmod races

2007-03-16 Thread Paulo Marques
Ingo Molnar wrote: * Paulo Marques <[EMAIL PROTECTED]> wrote: looking at the problem from another angle: wouldnt this be something that would benefit from freeze_processes()/unfreeze_processes(), and hence no locking would be required? I also considered this, but it seemed a little too

Re: [PATCH RESEND 2/2] Fix some kallsyms_lookup() vs rmmod races

2007-03-16 Thread Paulo Marques
so if you think it would be better to use freeze_processes()/unfreeze_processes(), I can cook up a patch for that too... -- Paulo Marques - www.grupopie.com "Very funny Scotty. Now beam up my clothes." diffstat: arch/parisc/kernel/unwind.c |3 -- arch/powerpc/xmon/xmon.c|

Re: [PATCH RESEND 2/2] Fix some kallsyms_lookup() vs rmmod races

2007-03-16 Thread Paulo Marques
be better to use freeze_processes()/unfreeze_processes(), I can cook up a patch for that too... -- Paulo Marques - www.grupopie.com Very funny Scotty. Now beam up my clothes. diffstat: arch/parisc/kernel/unwind.c |3 -- arch/powerpc/xmon/xmon.c| 11 - arch/ppc/xmon/xmon.c

Re: [PATCH RESEND 2/2] Fix some kallsyms_lookup() vs rmmod races

2007-03-16 Thread Paulo Marques
Ingo Molnar wrote: * Paulo Marques [EMAIL PROTECTED] wrote: looking at the problem from another angle: wouldnt this be something that would benefit from freeze_processes()/unfreeze_processes(), and hence no locking would be required? I also considered this, but it seemed a little too blunt

Re: [PATCH RESEND 2/2] Fix some kallsyms_lookup() vs rmmod races

2007-03-16 Thread Paulo Marques
Andrew Morton wrote: On Fri, 16 Mar 2007 17:16:39 + Paulo Marques [EMAIL PROTECTED] wrote: Does freeze_processes() / unfreeze_processes() solve this by only freezing processes that have voluntarily scheduled (opposed to just being preempted)? It goes much much further than that. Those

Re: [PATCH] Fix some kallsyms_lookup() vs rmmod races

2007-03-15 Thread Paulo Marques
th current git since module_mutex is not declared in module.h, not to mention compile when CONFIG_MODULES not set) IMHO we should not expose module_mutex outside of module.c. That is just wrong from an encapsulation point of view. -- Paulo Marques - www.grupopie.com "667: The neighbor of the beast

Re: [PATCH] Fix some kallsyms_lookup() vs rmmod races

2007-03-15 Thread Paulo Marques
is not declared in module.h, not to mention compile when CONFIG_MODULES not set) IMHO we should not expose module_mutex outside of module.c. That is just wrong from an encapsulation point of view. -- Paulo Marques - www.grupopie.com 667: The neighbor of the beast. - To unsubscribe from

Re: [PATCH] Race between cat /proc/kallsyms and rmmod

2007-03-14 Thread Paulo Marques
operation like /proc/modules does. I would still prefer the other solution to avoid exposing "module_mutex" outside of module.c like this :( I'll try to send in a patch today for review. -- Paulo Marques - www.grupopie.com "As far as we know, our computer has never had an undetect

Re: /proc/kallsyms race vs module unload

2007-03-14 Thread Paulo Marques
Alexey Dobriyan wrote: On Tue, Mar 13, 2007 at 06:49:50PM +, Paulo Marques wrote: Alexey Dobriyan wrote: [...] What happens is that module_get_kallsym() drops module_mutex, returns "struct module *", module unloaded, "struct module *" used. The only use fo

Re: /proc/kallsyms race vs module unload

2007-03-14 Thread Paulo Marques
Alexey Dobriyan wrote: On Tue, Mar 13, 2007 at 06:49:50PM +, Paulo Marques wrote: Alexey Dobriyan wrote: [...] What happens is that module_get_kallsym() drops module_mutex, returns struct module *, module unloaded, struct module * used. The only use for the struct module * is to display

Re: [PATCH] Race between cat /proc/kallsyms and rmmod

2007-03-14 Thread Paulo Marques
/modules does. I would still prefer the other solution to avoid exposing module_mutex outside of module.c like this :( I'll try to send in a patch today for review. -- Paulo Marques - www.grupopie.com As far as we know, our computer has never had an undetected error. Weisert - To unsubscribe from

Re: /proc/kallsyms race vs module unload

2007-03-13 Thread Paulo Marques
won't oops, though. I'll try to cook up a patch, if no one objects to this approach, -- Paulo Marques - www.grupopie.com "There cannot be a crisis today; my schedule is already full." - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a messa

Re: /proc/kallsyms race vs module unload

2007-03-13 Thread Paulo Marques
to this approach, -- Paulo Marques - www.grupopie.com There cannot be a crisis today; my schedule is already full. - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please

Re: [PATCH 2.6.21-rc1] Extend print_symbol capability TRY #3

2007-03-07 Thread Paulo Marques
is worth, Acked-by: Paulo Marques <[EMAIL PROTECTED]> -- Paulo Marques - www.grupopie.com "Very funny Scotty. Now beam up my clothes." - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Mo

Re: [PATCH 2.6.21-rc1] Extend print_symbol capability TRY #3

2007-03-07 Thread Paulo Marques
ting anything at all. -- Paulo Marques - www.grupopie.com "Very funny Scotty. Now beam up my clothes." - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordom

Re: [PATCH 2.6.21-rc1] Extend print_symbol capability TRY #3

2007-03-07 Thread Paulo Marques
the the #ifdef CONFIG_KALLSYMS and just let them be available even in a not CONFIG_KALLSYMS kernel. Since kallsyms_lookup is already #ifdef'ed to something sane, sprint_symbol will just print out the symbol address in that case, but it is better than not printing anything at all. -- Paulo

Re: [PATCH 2.6.21-rc1] Extend print_symbol capability TRY #3

2007-03-07 Thread Paulo Marques
is worth, Acked-by: Paulo Marques [EMAIL PROTECTED] -- Paulo Marques - www.grupopie.com Very funny Scotty. Now beam up my clothes. - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org

Re: [PATCH 2.6.21-rc1] Extend print_symbol capability

2007-03-02 Thread Paulo Marques
inline void lookup_symbol(unsigned long addr, char *buffer) +{ + return NULL; +} Returning NULL in a function returning "void" doesn't seem right :P Maybe it should be something like this instead: { *buffer = '\0'; } [...] Anyway, the change looks useful, so thanks for

Re: [PATCH 2.6.21-rc1] Extend print_symbol capability

2007-03-02 Thread Paulo Marques
*buffer) +{ + return NULL; +} Returning NULL in a function returning void doesn't seem right :P Maybe it should be something like this instead: { *buffer = '\0'; } [...] Anyway, the change looks useful, so thanks for the patch :) -- Paulo Marques - www.grupopie.com Very funny

Re: SMP performance degradation with sysbench

2007-02-27 Thread Paulo Marques
for priority * reasons reschedule the idle task to see if it can now run. */ if (rq->nr_running) { resched_task(rq->idle); ret = 1; } If that is the case, turning off CONFIG_SCHED_SMT would solve the problem. -- Paulo M

Re: SMP performance degradation with sysbench

2007-02-27 Thread Paulo Marques
for priority * reasons reschedule the idle task to see if it can now run. */ if (rq-nr_running) { resched_task(rq-idle); ret = 1; } If that is the case, turning off CONFIG_SCHED_SMT would solve the problem. -- Paulo Marques

Re: linux-2.6.19.3 build faild with "Inconsistent kallsyms data"

2007-02-19 Thread Paulo Marques
a binutils version problem. Can you send the output of scripts/ver_linux to see what binutils version you are using? Also you can try a "make debug_kallsyms" build that creates a .tmp_map1 and a .tmp_map2 files that might help diagnose the problem. -- Paulo Marques - www.gr

Re: linux-2.6.19.3 build faild with Inconsistent kallsyms data

2007-02-19 Thread Paulo Marques
a binutils version problem. Can you send the output of scripts/ver_linux to see what binutils version you are using? Also you can try a make debug_kallsyms build that creates a .tmp_map1 and a .tmp_map2 files that might help diagnose the problem. -- Paulo Marques - www.grupopie.com

Re: PROBLEM: 2.6.13, Inconsistent kallsyms data

2005-08-31 Thread Paulo Marques
(or at least I hope it is ;) -- Paulo Marques - www.grupopie.com It is a mistake to think you can solve any major problems just with potatoes. Douglas Adams --- ./scripts/kallsyms.c.orig 2005-06-23 19:20:20.0 +0100 +++ ./scripts/kallsyms.c2005-06-23 19:20:34.0 +0100

Re: PROBLEM: 2.6.13, Inconsistent kallsyms data

2005-08-31 Thread Paulo Marques
(or at least I hope it is ;) -- Paulo Marques - www.grupopie.com It is a mistake to think you can solve any major problems just with potatoes. Douglas Adams --- ./scripts/kallsyms.c.orig 2005-06-23 19:20:20.0 +0100 +++ ./scripts/kallsyms.c2005-06-23 19:20:34.0 +0100

  1   2   3   >