Re: [PATCH 3/9] tools/lib/traceevent: Install trace-seq.h API header file
On Wed, Dec 05, 2018 at 12:03:34PM -0500, Steven Rostedt wrote: > On Wed, 5 Dec 2018 13:25:17 +0100 > Jiri Olsa wrote: > > > On Tue, Dec 04, 2018 at 02:41:45PM -0500, Steven Rostedt wrote: > > > On Tue, 4 Dec 2018 16:47:39 +0900 > > > Namhyung Kim wrote: > > > > > > > > > > > @@ -302,6 +302,7 @@ install_headers: > > > > > $(call QUIET_INSTALL, headers) \ > > > > > $(call > > > > > do_install,event-parse.h,$(prefix)/include/traceevent,644); \ > > > > > $(call > > > > > do_install,event-utils.h,$(prefix)/include/traceevent,644); \ > > > > > + $(call > > > > > do_install,trace-seq.h,$(prefix)/include/traceevent,644); \ > > > > > $(call > > > > > do_install,kbuffer.h,$(prefix)/include/traceevent,644) > > > > > > > > Do you still wanna have 'traceevent' directory prefix? I just > > > > sometimes feel a bit annoying to type it. ;-) > > > > > > I'd still want the separate directory for it. I'll probably have a > > > ftrace.h file added to this for ftrace specific code in the future. > > > > > > > > > > > Or you can rename it something like 'tep' or 'libtep' - and hopefully > > > > having only single header file to include.. > > > > > > > > > > Hmm, I wonder if we should just call the directory "trace"? > > > > hum, I think it should match the library name, like 'include/tep/' > > I was hoping to add other headers in this directly, like ftrace.h and > perf.h ;-) those are headers from trace-cmd? I guess we could have some common 'trace' related directory, but I think we should have some rules for placing files in there to avoid mayhem ;-) but I'd prefer to go with package related directories under include > > also we should change the plugin installation directory > > > > [jolsa@krava traceevent]$ rpm -ql perf | grep traceevent > > /usr/lib64/traceevent > > /usr/lib64/traceevent/plugins > > /usr/lib64/traceevent/plugins/plugin_cfg80211.so > > /usr/lib64/traceevent/plugins/plugin_function.so > > /usr/lib64/traceevent/plugins/plugin_hrtimer.so > > /usr/lib64/traceevent/plugins/plugin_jbd2.so > > /usr/lib64/traceevent/plugins/plugin_kmem.so > > /usr/lib64/traceevent/plugins/plugin_kvm.so > > /usr/lib64/traceevent/plugins/plugin_mac80211.so > > /usr/lib64/traceevent/plugins/plugin_sched_switch.so > > /usr/lib64/traceevent/plugins/plugin_scsi.so > > /usr/lib64/traceevent/plugins/plugin_xen.so > > Change it to tep? yes, that makes sense to me jirka
Re: [PATCH 3/9] tools/lib/traceevent: Install trace-seq.h API header file
On Wed, Dec 05, 2018 at 12:03:34PM -0500, Steven Rostedt wrote: > On Wed, 5 Dec 2018 13:25:17 +0100 > Jiri Olsa wrote: > > > On Tue, Dec 04, 2018 at 02:41:45PM -0500, Steven Rostedt wrote: > > > On Tue, 4 Dec 2018 16:47:39 +0900 > > > Namhyung Kim wrote: > > > > > > > > > > > @@ -302,6 +302,7 @@ install_headers: > > > > > $(call QUIET_INSTALL, headers) \ > > > > > $(call > > > > > do_install,event-parse.h,$(prefix)/include/traceevent,644); \ > > > > > $(call > > > > > do_install,event-utils.h,$(prefix)/include/traceevent,644); \ > > > > > + $(call > > > > > do_install,trace-seq.h,$(prefix)/include/traceevent,644); \ > > > > > $(call > > > > > do_install,kbuffer.h,$(prefix)/include/traceevent,644) > > > > > > > > Do you still wanna have 'traceevent' directory prefix? I just > > > > sometimes feel a bit annoying to type it. ;-) > > > > > > I'd still want the separate directory for it. I'll probably have a > > > ftrace.h file added to this for ftrace specific code in the future. > > > > > > > > > > > Or you can rename it something like 'tep' or 'libtep' - and hopefully > > > > having only single header file to include.. > > > > > > > > > > Hmm, I wonder if we should just call the directory "trace"? > > > > hum, I think it should match the library name, like 'include/tep/' > > I was hoping to add other headers in this directly, like ftrace.h and > perf.h ;-) those are headers from trace-cmd? I guess we could have some common 'trace' related directory, but I think we should have some rules for placing files in there to avoid mayhem ;-) but I'd prefer to go with package related directories under include > > also we should change the plugin installation directory > > > > [jolsa@krava traceevent]$ rpm -ql perf | grep traceevent > > /usr/lib64/traceevent > > /usr/lib64/traceevent/plugins > > /usr/lib64/traceevent/plugins/plugin_cfg80211.so > > /usr/lib64/traceevent/plugins/plugin_function.so > > /usr/lib64/traceevent/plugins/plugin_hrtimer.so > > /usr/lib64/traceevent/plugins/plugin_jbd2.so > > /usr/lib64/traceevent/plugins/plugin_kmem.so > > /usr/lib64/traceevent/plugins/plugin_kvm.so > > /usr/lib64/traceevent/plugins/plugin_mac80211.so > > /usr/lib64/traceevent/plugins/plugin_sched_switch.so > > /usr/lib64/traceevent/plugins/plugin_scsi.so > > /usr/lib64/traceevent/plugins/plugin_xen.so > > Change it to tep? yes, that makes sense to me jirka
Re: [PATCH 3/9] tools/lib/traceevent: Install trace-seq.h API header file
On Wed, 5 Dec 2018 13:25:17 +0100 Jiri Olsa wrote: > On Tue, Dec 04, 2018 at 02:41:45PM -0500, Steven Rostedt wrote: > > On Tue, 4 Dec 2018 16:47:39 +0900 > > Namhyung Kim wrote: > > > > > > > > @@ -302,6 +302,7 @@ install_headers: > > > > $(call QUIET_INSTALL, headers) \ > > > > $(call > > > > do_install,event-parse.h,$(prefix)/include/traceevent,644); \ > > > > $(call > > > > do_install,event-utils.h,$(prefix)/include/traceevent,644); \ > > > > + $(call > > > > do_install,trace-seq.h,$(prefix)/include/traceevent,644); \ > > > > $(call > > > > do_install,kbuffer.h,$(prefix)/include/traceevent,644) > > > > > > Do you still wanna have 'traceevent' directory prefix? I just > > > sometimes feel a bit annoying to type it. ;-) > > > > I'd still want the separate directory for it. I'll probably have a > > ftrace.h file added to this for ftrace specific code in the future. > > > > > > > > Or you can rename it something like 'tep' or 'libtep' - and hopefully > > > having only single header file to include.. > > > > > > > Hmm, I wonder if we should just call the directory "trace"? > > hum, I think it should match the library name, like 'include/tep/' I was hoping to add other headers in this directly, like ftrace.h and perf.h ;-) > > also we should change the plugin installation directory > > [jolsa@krava traceevent]$ rpm -ql perf | grep traceevent > /usr/lib64/traceevent > /usr/lib64/traceevent/plugins > /usr/lib64/traceevent/plugins/plugin_cfg80211.so > /usr/lib64/traceevent/plugins/plugin_function.so > /usr/lib64/traceevent/plugins/plugin_hrtimer.so > /usr/lib64/traceevent/plugins/plugin_jbd2.so > /usr/lib64/traceevent/plugins/plugin_kmem.so > /usr/lib64/traceevent/plugins/plugin_kvm.so > /usr/lib64/traceevent/plugins/plugin_mac80211.so > /usr/lib64/traceevent/plugins/plugin_sched_switch.so > /usr/lib64/traceevent/plugins/plugin_scsi.so > /usr/lib64/traceevent/plugins/plugin_xen.so Change it to tep? -- Steve
Re: [PATCH 3/9] tools/lib/traceevent: Install trace-seq.h API header file
On Wed, 5 Dec 2018 13:25:17 +0100 Jiri Olsa wrote: > On Tue, Dec 04, 2018 at 02:41:45PM -0500, Steven Rostedt wrote: > > On Tue, 4 Dec 2018 16:47:39 +0900 > > Namhyung Kim wrote: > > > > > > > > @@ -302,6 +302,7 @@ install_headers: > > > > $(call QUIET_INSTALL, headers) \ > > > > $(call > > > > do_install,event-parse.h,$(prefix)/include/traceevent,644); \ > > > > $(call > > > > do_install,event-utils.h,$(prefix)/include/traceevent,644); \ > > > > + $(call > > > > do_install,trace-seq.h,$(prefix)/include/traceevent,644); \ > > > > $(call > > > > do_install,kbuffer.h,$(prefix)/include/traceevent,644) > > > > > > Do you still wanna have 'traceevent' directory prefix? I just > > > sometimes feel a bit annoying to type it. ;-) > > > > I'd still want the separate directory for it. I'll probably have a > > ftrace.h file added to this for ftrace specific code in the future. > > > > > > > > Or you can rename it something like 'tep' or 'libtep' - and hopefully > > > having only single header file to include.. > > > > > > > Hmm, I wonder if we should just call the directory "trace"? > > hum, I think it should match the library name, like 'include/tep/' I was hoping to add other headers in this directly, like ftrace.h and perf.h ;-) > > also we should change the plugin installation directory > > [jolsa@krava traceevent]$ rpm -ql perf | grep traceevent > /usr/lib64/traceevent > /usr/lib64/traceevent/plugins > /usr/lib64/traceevent/plugins/plugin_cfg80211.so > /usr/lib64/traceevent/plugins/plugin_function.so > /usr/lib64/traceevent/plugins/plugin_hrtimer.so > /usr/lib64/traceevent/plugins/plugin_jbd2.so > /usr/lib64/traceevent/plugins/plugin_kmem.so > /usr/lib64/traceevent/plugins/plugin_kvm.so > /usr/lib64/traceevent/plugins/plugin_mac80211.so > /usr/lib64/traceevent/plugins/plugin_sched_switch.so > /usr/lib64/traceevent/plugins/plugin_scsi.so > /usr/lib64/traceevent/plugins/plugin_xen.so Change it to tep? -- Steve
Re: [PATCH 3/9] tools/lib/traceevent: Install trace-seq.h API header file
On Tue, Dec 04, 2018 at 02:41:45PM -0500, Steven Rostedt wrote: > On Tue, 4 Dec 2018 16:47:39 +0900 > Namhyung Kim wrote: > > > > > @@ -302,6 +302,7 @@ install_headers: > > > $(call QUIET_INSTALL, headers) \ > > > $(call > > > do_install,event-parse.h,$(prefix)/include/traceevent,644); \ > > > $(call > > > do_install,event-utils.h,$(prefix)/include/traceevent,644); \ > > > + $(call > > > do_install,trace-seq.h,$(prefix)/include/traceevent,644); \ > > > $(call do_install,kbuffer.h,$(prefix)/include/traceevent,644) > > > > Do you still wanna have 'traceevent' directory prefix? I just > > sometimes feel a bit annoying to type it. ;-) > > I'd still want the separate directory for it. I'll probably have a > ftrace.h file added to this for ftrace specific code in the future. > > > > > Or you can rename it something like 'tep' or 'libtep' - and hopefully > > having only single header file to include.. > > > > Hmm, I wonder if we should just call the directory "trace"? hum, I think it should match the library name, like 'include/tep/' also we should change the plugin installation directory [jolsa@krava traceevent]$ rpm -ql perf | grep traceevent /usr/lib64/traceevent /usr/lib64/traceevent/plugins /usr/lib64/traceevent/plugins/plugin_cfg80211.so /usr/lib64/traceevent/plugins/plugin_function.so /usr/lib64/traceevent/plugins/plugin_hrtimer.so /usr/lib64/traceevent/plugins/plugin_jbd2.so /usr/lib64/traceevent/plugins/plugin_kmem.so /usr/lib64/traceevent/plugins/plugin_kvm.so /usr/lib64/traceevent/plugins/plugin_mac80211.so /usr/lib64/traceevent/plugins/plugin_sched_switch.so /usr/lib64/traceevent/plugins/plugin_scsi.so /usr/lib64/traceevent/plugins/plugin_xen.so jirka
Re: [PATCH 3/9] tools/lib/traceevent: Install trace-seq.h API header file
On Tue, Dec 04, 2018 at 02:41:45PM -0500, Steven Rostedt wrote: > On Tue, 4 Dec 2018 16:47:39 +0900 > Namhyung Kim wrote: > > > > > @@ -302,6 +302,7 @@ install_headers: > > > $(call QUIET_INSTALL, headers) \ > > > $(call > > > do_install,event-parse.h,$(prefix)/include/traceevent,644); \ > > > $(call > > > do_install,event-utils.h,$(prefix)/include/traceevent,644); \ > > > + $(call > > > do_install,trace-seq.h,$(prefix)/include/traceevent,644); \ > > > $(call do_install,kbuffer.h,$(prefix)/include/traceevent,644) > > > > Do you still wanna have 'traceevent' directory prefix? I just > > sometimes feel a bit annoying to type it. ;-) > > I'd still want the separate directory for it. I'll probably have a > ftrace.h file added to this for ftrace specific code in the future. > > > > > Or you can rename it something like 'tep' or 'libtep' - and hopefully > > having only single header file to include.. > > > > Hmm, I wonder if we should just call the directory "trace"? hum, I think it should match the library name, like 'include/tep/' also we should change the plugin installation directory [jolsa@krava traceevent]$ rpm -ql perf | grep traceevent /usr/lib64/traceevent /usr/lib64/traceevent/plugins /usr/lib64/traceevent/plugins/plugin_cfg80211.so /usr/lib64/traceevent/plugins/plugin_function.so /usr/lib64/traceevent/plugins/plugin_hrtimer.so /usr/lib64/traceevent/plugins/plugin_jbd2.so /usr/lib64/traceevent/plugins/plugin_kmem.so /usr/lib64/traceevent/plugins/plugin_kvm.so /usr/lib64/traceevent/plugins/plugin_mac80211.so /usr/lib64/traceevent/plugins/plugin_sched_switch.so /usr/lib64/traceevent/plugins/plugin_scsi.so /usr/lib64/traceevent/plugins/plugin_xen.so jirka
Re: [PATCH 3/9] tools/lib/traceevent: Install trace-seq.h API header file
On Tue, 4 Dec 2018 16:47:39 +0900 Namhyung Kim wrote: > > @@ -302,6 +302,7 @@ install_headers: > > $(call QUIET_INSTALL, headers) \ > > $(call > > do_install,event-parse.h,$(prefix)/include/traceevent,644); \ > > $(call > > do_install,event-utils.h,$(prefix)/include/traceevent,644); \ > > + $(call > > do_install,trace-seq.h,$(prefix)/include/traceevent,644); \ > > $(call do_install,kbuffer.h,$(prefix)/include/traceevent,644) > > Do you still wanna have 'traceevent' directory prefix? I just > sometimes feel a bit annoying to type it. ;-) I'd still want the separate directory for it. I'll probably have a ftrace.h file added to this for ftrace specific code in the future. > > Or you can rename it something like 'tep' or 'libtep' - and hopefully > having only single header file to include.. > Hmm, I wonder if we should just call the directory "trace"? -- Steve
Re: [PATCH 3/9] tools/lib/traceevent: Install trace-seq.h API header file
On Tue, 4 Dec 2018 16:47:39 +0900 Namhyung Kim wrote: > > @@ -302,6 +302,7 @@ install_headers: > > $(call QUIET_INSTALL, headers) \ > > $(call > > do_install,event-parse.h,$(prefix)/include/traceevent,644); \ > > $(call > > do_install,event-utils.h,$(prefix)/include/traceevent,644); \ > > + $(call > > do_install,trace-seq.h,$(prefix)/include/traceevent,644); \ > > $(call do_install,kbuffer.h,$(prefix)/include/traceevent,644) > > Do you still wanna have 'traceevent' directory prefix? I just > sometimes feel a bit annoying to type it. ;-) I'd still want the separate directory for it. I'll probably have a ftrace.h file added to this for ftrace specific code in the future. > > Or you can rename it something like 'tep' or 'libtep' - and hopefully > having only single header file to include.. > Hmm, I wonder if we should just call the directory "trace"? -- Steve
Re: [PATCH 3/9] tools/lib/traceevent: Install trace-seq.h API header file
On Fri, Nov 30, 2018 at 10:44:06AM -0500, Steven Rostedt wrote: > From: Tzvetomir Stoyanov > > This patch installs trace-seq.h header file on "make install". > > Signed-off-by: Tzvetomir Stoyanov > Signed-off-by: Steven Rostedt (VMware) > --- > tools/lib/traceevent/Makefile | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/tools/lib/traceevent/Makefile b/tools/lib/traceevent/Makefile > index adb16f845ab3..67fe5d7ef190 100644 > --- a/tools/lib/traceevent/Makefile > +++ b/tools/lib/traceevent/Makefile > @@ -285,7 +285,7 @@ define do_install_pkgconfig_file > fi > endef > > -install_lib: all_cmd install_plugins install_pkgconfig > +install_lib: all_cmd install_plugins install_headers install_pkgconfig > $(call QUIET_INSTALL, $(LIB_TARGET)) \ > $(call do_install_mkdir,$(libdir_SQ)); \ > cp -fpR $(LIB_INSTALL) $(DESTDIR)$(libdir_SQ) > @@ -302,6 +302,7 @@ install_headers: > $(call QUIET_INSTALL, headers) \ > $(call > do_install,event-parse.h,$(prefix)/include/traceevent,644); \ > $(call > do_install,event-utils.h,$(prefix)/include/traceevent,644); \ > + $(call > do_install,trace-seq.h,$(prefix)/include/traceevent,644); \ > $(call do_install,kbuffer.h,$(prefix)/include/traceevent,644) Do you still wanna have 'traceevent' directory prefix? I just sometimes feel a bit annoying to type it. ;-) Or you can rename it something like 'tep' or 'libtep' - and hopefully having only single header file to include.. Thanks, Namhyung > > install: install_lib > -- > 2.19.1 > >
Re: [PATCH 3/9] tools/lib/traceevent: Install trace-seq.h API header file
On Fri, Nov 30, 2018 at 10:44:06AM -0500, Steven Rostedt wrote: > From: Tzvetomir Stoyanov > > This patch installs trace-seq.h header file on "make install". > > Signed-off-by: Tzvetomir Stoyanov > Signed-off-by: Steven Rostedt (VMware) > --- > tools/lib/traceevent/Makefile | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/tools/lib/traceevent/Makefile b/tools/lib/traceevent/Makefile > index adb16f845ab3..67fe5d7ef190 100644 > --- a/tools/lib/traceevent/Makefile > +++ b/tools/lib/traceevent/Makefile > @@ -285,7 +285,7 @@ define do_install_pkgconfig_file > fi > endef > > -install_lib: all_cmd install_plugins install_pkgconfig > +install_lib: all_cmd install_plugins install_headers install_pkgconfig > $(call QUIET_INSTALL, $(LIB_TARGET)) \ > $(call do_install_mkdir,$(libdir_SQ)); \ > cp -fpR $(LIB_INSTALL) $(DESTDIR)$(libdir_SQ) > @@ -302,6 +302,7 @@ install_headers: > $(call QUIET_INSTALL, headers) \ > $(call > do_install,event-parse.h,$(prefix)/include/traceevent,644); \ > $(call > do_install,event-utils.h,$(prefix)/include/traceevent,644); \ > + $(call > do_install,trace-seq.h,$(prefix)/include/traceevent,644); \ > $(call do_install,kbuffer.h,$(prefix)/include/traceevent,644) Do you still wanna have 'traceevent' directory prefix? I just sometimes feel a bit annoying to type it. ;-) Or you can rename it something like 'tep' or 'libtep' - and hopefully having only single header file to include.. Thanks, Namhyung > > install: install_lib > -- > 2.19.1 > >
[PATCH 3/9] tools/lib/traceevent: Install trace-seq.h API header file
From: Tzvetomir Stoyanov This patch installs trace-seq.h header file on "make install". Signed-off-by: Tzvetomir Stoyanov Signed-off-by: Steven Rostedt (VMware) --- tools/lib/traceevent/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/lib/traceevent/Makefile b/tools/lib/traceevent/Makefile index adb16f845ab3..67fe5d7ef190 100644 --- a/tools/lib/traceevent/Makefile +++ b/tools/lib/traceevent/Makefile @@ -285,7 +285,7 @@ define do_install_pkgconfig_file fi endef -install_lib: all_cmd install_plugins install_pkgconfig +install_lib: all_cmd install_plugins install_headers install_pkgconfig $(call QUIET_INSTALL, $(LIB_TARGET)) \ $(call do_install_mkdir,$(libdir_SQ)); \ cp -fpR $(LIB_INSTALL) $(DESTDIR)$(libdir_SQ) @@ -302,6 +302,7 @@ install_headers: $(call QUIET_INSTALL, headers) \ $(call do_install,event-parse.h,$(prefix)/include/traceevent,644); \ $(call do_install,event-utils.h,$(prefix)/include/traceevent,644); \ + $(call do_install,trace-seq.h,$(prefix)/include/traceevent,644); \ $(call do_install,kbuffer.h,$(prefix)/include/traceevent,644) install: install_lib -- 2.19.1
[PATCH 3/9] tools/lib/traceevent: Install trace-seq.h API header file
From: Tzvetomir Stoyanov This patch installs trace-seq.h header file on "make install". Signed-off-by: Tzvetomir Stoyanov Signed-off-by: Steven Rostedt (VMware) --- tools/lib/traceevent/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/lib/traceevent/Makefile b/tools/lib/traceevent/Makefile index adb16f845ab3..67fe5d7ef190 100644 --- a/tools/lib/traceevent/Makefile +++ b/tools/lib/traceevent/Makefile @@ -285,7 +285,7 @@ define do_install_pkgconfig_file fi endef -install_lib: all_cmd install_plugins install_pkgconfig +install_lib: all_cmd install_plugins install_headers install_pkgconfig $(call QUIET_INSTALL, $(LIB_TARGET)) \ $(call do_install_mkdir,$(libdir_SQ)); \ cp -fpR $(LIB_INSTALL) $(DESTDIR)$(libdir_SQ) @@ -302,6 +302,7 @@ install_headers: $(call QUIET_INSTALL, headers) \ $(call do_install,event-parse.h,$(prefix)/include/traceevent,644); \ $(call do_install,event-utils.h,$(prefix)/include/traceevent,644); \ + $(call do_install,trace-seq.h,$(prefix)/include/traceevent,644); \ $(call do_install,kbuffer.h,$(prefix)/include/traceevent,644) install: install_lib -- 2.19.1