lkml.org 
[lkml]   [2013]   [Dec]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2/2] tools/: Move fs.* to lib/api/fs/
On Thu, Dec 05, 2013 at 05:25:52PM +0100, Borislav Petkov wrote:
> From: Borislav Petkov <bp@suse.de>
>
> Move to generic library and kill magic.h as it is needed only in fs.h.
>
> Signed-off-by: Borislav Petkov <bp@suse.de>
> ---
> tools/lib/api/Makefile | 2 ++
> tools/{perf/util => lib/api/fs}/fs.c | 11 ++++++++---
> tools/{perf/util/include/linux/magic.h => lib/api/fs/fs.h} | 12 +++++-------
> tools/perf/Makefile.perf | 3 ---
> tools/perf/tests/parse-events.c | 2 +-
> tools/perf/util/cpumap.c | 2 +-
> tools/perf/util/fs.h | 7 -------
> tools/perf/util/pmu.c | 2 +-
> tools/perf/util/python-ext-sources | 2 +-
> tools/perf/util/record.c | 2 +-
> 10 files changed, 20 insertions(+), 25 deletions(-)
> rename tools/{perf/util => lib/api/fs}/fs.c (91%)
> rename tools/{perf/util/include/linux/magic.h => lib/api/fs/fs.h} (50%)
> delete mode 100644 tools/perf/util/fs.h
>
> diff --git a/tools/lib/api/Makefile b/tools/lib/api/Makefile
> index d749cdc8e1d4..2a354292d781 100644
> --- a/tools/lib/api/Makefile
> +++ b/tools/lib/api/Makefile
> @@ -8,8 +8,10 @@ LIB_H=
> LIB_OBJS=
>
> LIB_H += fs/debugfs.h
> +LIB_H += fs/fs.h
>
> LIB_OBJS += $(OUTPUT)fs/debugfs.o
> +LIB_OBJS += $(OUTPUT)fs/fs.o
>
> LIBFILE = libapikfs.a
>
> diff --git a/tools/perf/util/fs.c b/tools/lib/api/fs/fs.c
> similarity index 91%
> rename from tools/perf/util/fs.c
> rename to tools/lib/api/fs/fs.c
> index f5be1f26e724..ff8907275cfb 100644
> --- a/tools/perf/util/fs.c
> +++ b/tools/lib/api/fs/fs.c
> @@ -1,8 +1,13 @@
> +/* TODO merge/factor into debugfs.c */

I guess now above one should be:

TODO merge/factor debugfs object in here

;-)

jirka


\
 
 \ /
  Last update: 2013-12-09 11:41    [W:0.306 / U:0.024 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site