Re: [PATCH] perf: Move fs.* to generic lib/lk/

2013-12-02 Thread Arnaldo Carvalho de Melo
Em Thu, Nov 28, 2013 at 01:16:57PM +0100, Borislav Petkov escreveu: > On Wed, Nov 27, 2013 at 04:39:44PM +0100, Borislav Petkov wrote: > > Ok, splitting them into topics actually makes sense. > > > > > But stuffing them into types.a, formats.a, kernel.a, not so much. > > > > Huh, why not? We

Re: [PATCH] perf: Move fs.* to generic lib/lk/

2013-12-02 Thread Arnaldo Carvalho de Melo
Em Thu, Nov 28, 2013 at 01:16:57PM +0100, Borislav Petkov escreveu: On Wed, Nov 27, 2013 at 04:39:44PM +0100, Borislav Petkov wrote: Ok, splitting them into topics actually makes sense. But stuffing them into types.a, formats.a, kernel.a, not so much. Huh, why not? We take the

Re: [PATCH] perf: Move fs.* to generic lib/lk/

2013-11-28 Thread Borislav Petkov
On Wed, Nov 27, 2013 at 04:39:44PM +0100, Borislav Petkov wrote: > Ok, splitting them into topics actually makes sense. > > > But stuffing them into types.a, formats.a, kernel.a, not so much. > > Huh, why not? We take the corresponding .c files and create a single .a > archive per topic from

Re: [PATCH] perf: Move fs.* to generic lib/lk/

2013-11-28 Thread Borislav Petkov
On Wed, Nov 27, 2013 at 04:39:44PM +0100, Borislav Petkov wrote: Ok, splitting them into topics actually makes sense. But stuffing them into types.a, formats.a, kernel.a, not so much. Huh, why not? We take the corresponding .c files and create a single .a archive per topic from them. This

Re: [PATCH] perf: Move fs.* to generic lib/lk/

2013-11-27 Thread Borislav Petkov
On Tue, Nov 26, 2013 at 07:03:33PM +0100, Ingo Molnar wrote: > Not necessarily, if the number goes up - obviously then we'd also want > to add some second directory structure to organize them into broad > categories or so. Right, topic libraries. That is starting to make more sense. :) >

Re: [PATCH] perf: Move fs.* to generic lib/lk/

2013-11-27 Thread Borislav Petkov
On Tue, Nov 26, 2013 at 07:17:45PM +0100, Ingo Molnar wrote: > It's a single line added to the Makefile, the moment a .h is used for > the first time. That's not any appreciable overhead. Hmm, not quite. It is a bit more jumping through hoops - look at the variables LK_DIR, LK_PATH and LIBLK for

Re: [PATCH] perf: Move fs.* to generic lib/lk/

2013-11-27 Thread Borislav Petkov
On Tue, Nov 26, 2013 at 07:17:45PM +0100, Ingo Molnar wrote: It's a single line added to the Makefile, the moment a .h is used for the first time. That's not any appreciable overhead. Hmm, not quite. It is a bit more jumping through hoops - look at the variables LK_DIR, LK_PATH and LIBLK for

Re: [PATCH] perf: Move fs.* to generic lib/lk/

2013-11-27 Thread Borislav Petkov
On Tue, Nov 26, 2013 at 07:03:33PM +0100, Ingo Molnar wrote: Not necessarily, if the number goes up - obviously then we'd also want to add some second directory structure to organize them into broad categories or so. Right, topic libraries. That is starting to make more sense. :)

Re: [PATCH] perf: Move fs.* to generic lib/lk/

2013-11-26 Thread Ingo Molnar
* Borislav Petkov wrote: > On Fri, Nov 22, 2013 at 04:39:11PM +0100, Ingo Molnar wrote: > > > I see no problem with that - it's basically like util/*.c is, just > > between tools. > > But why? Why it is a good thing to have to pay attention to linking > to 10 minilibs when you're using 10

Re: [PATCH] perf: Move fs.* to generic lib/lk/

2013-11-26 Thread Ingo Molnar
* Borislav Petkov wrote: > On Fri, Nov 22, 2013 at 04:54:25PM +0100, Ingo Molnar wrote: > > comet:~/tip/tools/perf> ls util/*.h > > util/annotate.h util/data.h util/fs.h > > util/parse-events-bison.h util/probe-event.h util/sort.h > > util/thread.h

Re: [PATCH] perf: Move fs.* to generic lib/lk/

2013-11-26 Thread Ingo Molnar
* Borislav Petkov b...@alien8.de wrote: On Fri, Nov 22, 2013 at 04:54:25PM +0100, Ingo Molnar wrote: comet:~/tip/tools/perf ls util/*.h util/annotate.h util/data.h util/fs.h util/parse-events-bison.h util/probe-event.h util/sort.h util/thread.h

Re: [PATCH] perf: Move fs.* to generic lib/lk/

2013-11-26 Thread Ingo Molnar
* Borislav Petkov b...@alien8.de wrote: On Fri, Nov 22, 2013 at 04:39:11PM +0100, Ingo Molnar wrote: I see no problem with that - it's basically like util/*.c is, just between tools. But why? Why it is a good thing to have to pay attention to linking to 10 minilibs when you're using

Re: [PATCH] perf: Move fs.* to generic lib/lk/

2013-11-23 Thread Borislav Petkov
On Fri, Nov 22, 2013 at 04:54:25PM +0100, Ingo Molnar wrote: > comet:~/tip/tools/perf> ls util/*.h > util/annotate.h util/data.h util/fs.h > util/parse-events-bison.h util/probe-event.h util/sort.h > util/thread.h util/values.h > util/build-id.h util/debug.h

Re: [PATCH] perf: Move fs.* to generic lib/lk/

2013-11-23 Thread Borislav Petkov
On Fri, Nov 22, 2013 at 04:39:11PM +0100, Ingo Molnar wrote: > I see no problem with that - it's basically like util/*.c is, just > between tools. But why? Why it is a good thing to have to pay attention to linking to 10 minilibs when you're using 10 utilities for your tool instead of a small

Re: [PATCH] perf: Move fs.* to generic lib/lk/

2013-11-23 Thread Borislav Petkov
On Fri, Nov 22, 2013 at 04:39:11PM +0100, Ingo Molnar wrote: I see no problem with that - it's basically like util/*.c is, just between tools. But why? Why it is a good thing to have to pay attention to linking to 10 minilibs when you're using 10 utilities for your tool instead of a small

Re: [PATCH] perf: Move fs.* to generic lib/lk/

2013-11-23 Thread Borislav Petkov
On Fri, Nov 22, 2013 at 04:54:25PM +0100, Ingo Molnar wrote: comet:~/tip/tools/perf ls util/*.h util/annotate.h util/data.h util/fs.h util/parse-events-bison.h util/probe-event.h util/sort.h util/thread.h util/values.h util/build-id.h util/debug.h

Re: [PATCH] perf: Move fs.* to generic lib/lk/

2013-11-22 Thread Ingo Molnar
* Ingo Molnar wrote: > > cmdline is parse-options.c. > > > > IOW, that's splitting it into too granulary pieces with 1-2 > > compilation units ber library. > > I see no problem with that - it's basically like util/*.c is, just > between tools. I.e.: comet:~/tip/tools/perf> ls util/*.h

Re: [PATCH] perf: Move fs.* to generic lib/lk/

2013-11-22 Thread Ingo Molnar
* Arnaldo Carvalho de Melo wrote: > Lets experiment at having things at the right granularity, even if > it involves many, directly linked, like libperf.a, libraries, one at > a time, starting with fskapi (or whatever name ends up being > preferred for this initial one). That's fine with me

Re: [PATCH] perf: Move fs.* to generic lib/lk/

2013-11-22 Thread Ingo Molnar
* Borislav Petkov wrote: > On Fri, Nov 22, 2013 at 01:27:01PM +0100, Ingo Molnar wrote: > > I don't think those other bits should go into this library. rbtree > > should go into lib/rbtree/, command-line bits into lib/cmdline/, build > > system helpers into lib/build/, etc. > > > > Merging

Re: [PATCH] perf: Move fs.* to generic lib/lk/

2013-11-22 Thread David Ahern
On 11/22/13, 8:00 AM, Arnaldo Carvalho de Melo wrote: Lets do one at a time, so far we agreed that the ones that involves parsing procfs/sysfs etc should go in tools/lib/(fs)?kapi, so lets do that one. libsysfs & libsysfs-devel? -- To unsubscribe from this list: send the line "unsubscribe

Re: [PATCH] perf: Move fs.* to generic lib/lk/

2013-11-22 Thread Arnaldo Carvalho de Melo
Em Fri, Nov 22, 2013 at 02:50:34PM +0100, Borislav Petkov escreveu: > On Fri, Nov 22, 2013 at 01:27:01PM +0100, Ingo Molnar wrote: > > I don't think those other bits should go into this library. rbtree > > should go into lib/rbtree/, command-line bits into lib/cmdline/, build > > system helpers

Re: [PATCH] perf: Move fs.* to generic lib/lk/

2013-11-22 Thread Arnaldo Carvalho de Melo
Em Fri, Nov 22, 2013 at 01:27:01PM +0100, Ingo Molnar escreveu: > * Arnaldo Carvalho de Melo wrote: > > Em Thu, Nov 21, 2013 at 04:28:04PM +0100, Borislav Petkov escreveu: > > > On Thu, Nov 21, 2013 at 12:05:24PM -0300, Arnaldo Carvalho de Melo wrote: > > > > Naming is a bit hard, to keep it

Re: [PATCH] perf: Move fs.* to generic lib/lk/

2013-11-22 Thread Borislav Petkov
On Fri, Nov 22, 2013 at 01:27:01PM +0100, Ingo Molnar wrote: > I don't think those other bits should go into this library. rbtree > should go into lib/rbtree/, command-line bits into lib/cmdline/, build > system helpers into lib/build/, etc. > > Merging unrelated things into a single library is a

Re: [PATCH] perf: Move fs.* to generic lib/lk/

2013-11-22 Thread Ingo Molnar
* Arnaldo Carvalho de Melo wrote: > Em Thu, Nov 21, 2013 at 04:28:04PM +0100, Borislav Petkov escreveu: > > On Thu, Nov 21, 2013 at 12:05:24PM -0300, Arnaldo Carvalho de Melo wrote: > > > "To offers various helper methods to interface with the Linux kernel: > > > debugfs, procfs, sysfs

Re: [PATCH] perf: Move fs.* to generic lib/lk/

2013-11-22 Thread Ingo Molnar
* Arnaldo Carvalho de Melo a...@infradead.org wrote: Em Thu, Nov 21, 2013 at 04:28:04PM +0100, Borislav Petkov escreveu: On Thu, Nov 21, 2013 at 12:05:24PM -0300, Arnaldo Carvalho de Melo wrote: To offers various helper methods to interface with the Linux kernel: debugfs, procfs, sysfs

Re: [PATCH] perf: Move fs.* to generic lib/lk/

2013-11-22 Thread Borislav Petkov
On Fri, Nov 22, 2013 at 01:27:01PM +0100, Ingo Molnar wrote: I don't think those other bits should go into this library. rbtree should go into lib/rbtree/, command-line bits into lib/cmdline/, build system helpers into lib/build/, etc. Merging unrelated things into a single library is a

Re: [PATCH] perf: Move fs.* to generic lib/lk/

2013-11-22 Thread Arnaldo Carvalho de Melo
Em Fri, Nov 22, 2013 at 01:27:01PM +0100, Ingo Molnar escreveu: * Arnaldo Carvalho de Melo a...@infradead.org wrote: Em Thu, Nov 21, 2013 at 04:28:04PM +0100, Borislav Petkov escreveu: On Thu, Nov 21, 2013 at 12:05:24PM -0300, Arnaldo Carvalho de Melo wrote: Naming is a bit hard, to keep

Re: [PATCH] perf: Move fs.* to generic lib/lk/

2013-11-22 Thread Arnaldo Carvalho de Melo
Em Fri, Nov 22, 2013 at 02:50:34PM +0100, Borislav Petkov escreveu: On Fri, Nov 22, 2013 at 01:27:01PM +0100, Ingo Molnar wrote: I don't think those other bits should go into this library. rbtree should go into lib/rbtree/, command-line bits into lib/cmdline/, build system helpers into

Re: [PATCH] perf: Move fs.* to generic lib/lk/

2013-11-22 Thread David Ahern
On 11/22/13, 8:00 AM, Arnaldo Carvalho de Melo wrote: Lets do one at a time, so far we agreed that the ones that involves parsing procfs/sysfs etc should go in tools/lib/(fs)?kapi, so lets do that one. libsysfs libsysfs-devel? -- To unsubscribe from this list: send the line unsubscribe

Re: [PATCH] perf: Move fs.* to generic lib/lk/

2013-11-22 Thread Ingo Molnar
* Borislav Petkov b...@alien8.de wrote: On Fri, Nov 22, 2013 at 01:27:01PM +0100, Ingo Molnar wrote: I don't think those other bits should go into this library. rbtree should go into lib/rbtree/, command-line bits into lib/cmdline/, build system helpers into lib/build/, etc. Merging

Re: [PATCH] perf: Move fs.* to generic lib/lk/

2013-11-22 Thread Ingo Molnar
* Arnaldo Carvalho de Melo a...@ghostprotocols.net wrote: Lets experiment at having things at the right granularity, even if it involves many, directly linked, like libperf.a, libraries, one at a time, starting with fskapi (or whatever name ends up being preferred for this initial one).

Re: [PATCH] perf: Move fs.* to generic lib/lk/

2013-11-22 Thread Ingo Molnar
* Ingo Molnar mi...@kernel.org wrote: cmdline is parse-options.c. IOW, that's splitting it into too granulary pieces with 1-2 compilation units ber library. I see no problem with that - it's basically like util/*.c is, just between tools. I.e.: comet:~/tip/tools/perf ls util/*.h

[PATCH] perf: Move fs.* to generic lib/lk/

2013-11-20 Thread Borislav Petkov
From: Borislav Petkov Move to generic library and kill magic.h as it is needed only in fs.h. Signed-off-by: Borislav Petkov --- Ok, let's try the first one, see how it goes. tools/lib/lk/Makefile | 2 ++ tools/{perf/util => lib/lk}/fs.c

[PATCH] perf: Move fs.* to generic lib/lk/

2013-11-20 Thread Borislav Petkov
From: Borislav Petkov b...@suse.de Move to generic library and kill magic.h as it is needed only in fs.h. Signed-off-by: Borislav Petkov b...@suse.de --- Ok, let's try the first one, see how it goes. tools/lib/lk/Makefile | 2 ++ tools/{perf/util =