* [PATCH] trace-cmd: add trace-record.o to the python shared lib
@ 2014-07-21 20:50 Josef Bacik
2014-07-21 21:01 ` Steven Rostedt
0 siblings, 1 reply; 4+ messages in thread
From: Josef Bacik @ 2014-07-21 20:50 UTC (permalink / raw)
To: rostedt, linux-kernel
When trying to use the python library it was giving me an error about not being
able to resolve tracecmd_stat_cpu. This is because we weren't linking
trace-record.o to ctracecmd.so. Fix this in the makefile and now I can import
trace-cmd in python properly. Thanks,
Signed-off-by: Josef Bacik <jbacik@fb.com>
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index df5ec72..f6c2875 100644
--- a/Makefile
+++ b/Makefile
@@ -321,7 +321,7 @@ KERNEL_SHARK_OBJS = $(TRACE_VIEW_OBJS) $(TRACE_GRAPH_OBJS) $(TRACE_GUI_OBJS) \
PEVENT_LIB_OBJS = event-parse.o trace-seq.o parse-filter.o parse-utils.o
TCMD_LIB_OBJS = $(PEVENT_LIB_OBJS) trace-util.o trace-input.o trace-ftrace.o \
trace-output.o trace-recorder.o trace-restore.o trace-usage.o \
- trace-blk-hack.o kbuffer-parse.o event-plugin.o
+ trace-blk-hack.o kbuffer-parse.o event-plugin.o trace-record.o
PLUGIN_OBJS =
PLUGIN_OBJS += plugin_jbd2.o
--
1.8.3.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] trace-cmd: add trace-record.o to the python shared lib
2014-07-21 20:50 [PATCH] trace-cmd: add trace-record.o to the python shared lib Josef Bacik
@ 2014-07-21 21:01 ` Steven Rostedt
2014-07-22 12:58 ` Johannes Berg
0 siblings, 1 reply; 4+ messages in thread
From: Steven Rostedt @ 2014-07-21 21:01 UTC (permalink / raw)
To: Josef Bacik; +Cc: linux-kernel, Darren Hart, Johannes Berg
Cc'd my python gurus.
Acks?
-- Steve
On Mon, 21 Jul 2014 16:50:44 -0400
Josef Bacik <jbacik@fb.com> wrote:
> When trying to use the python library it was giving me an error about not being
> able to resolve tracecmd_stat_cpu. This is because we weren't linking
> trace-record.o to ctracecmd.so. Fix this in the makefile and now I can import
> trace-cmd in python properly. Thanks,
>
> Signed-off-by: Josef Bacik <jbacik@fb.com>
> ---
> Makefile | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/Makefile b/Makefile
> index df5ec72..f6c2875 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -321,7 +321,7 @@ KERNEL_SHARK_OBJS = $(TRACE_VIEW_OBJS) $(TRACE_GRAPH_OBJS) $(TRACE_GUI_OBJS) \
> PEVENT_LIB_OBJS = event-parse.o trace-seq.o parse-filter.o parse-utils.o
> TCMD_LIB_OBJS = $(PEVENT_LIB_OBJS) trace-util.o trace-input.o trace-ftrace.o \
> trace-output.o trace-recorder.o trace-restore.o trace-usage.o \
> - trace-blk-hack.o kbuffer-parse.o event-plugin.o
> + trace-blk-hack.o kbuffer-parse.o event-plugin.o trace-record.o
>
> PLUGIN_OBJS =
> PLUGIN_OBJS += plugin_jbd2.o
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] trace-cmd: add trace-record.o to the python shared lib
2014-07-21 21:01 ` Steven Rostedt
@ 2014-07-22 12:58 ` Johannes Berg
2014-07-30 16:11 ` Josef Bacik
0 siblings, 1 reply; 4+ messages in thread
From: Johannes Berg @ 2014-07-22 12:58 UTC (permalink / raw)
To: Steven Rostedt; +Cc: Josef Bacik, linux-kernel, Darren Hart
On Mon, 2014-07-21 at 17:01 -0400, Steven Rostedt wrote:
> Cc'd my python gurus.
>
> Acks?
> > When trying to use the python library it was giving me an error about not being
> > able to resolve tracecmd_stat_cpu. This is because we weren't linking
> > trace-record.o to ctracecmd.so. Fix this in the makefile and now I can import
> > trace-cmd in python properly. Thanks,
I guess, I don't see anything wrong with that. I don't usually use
ctracecmd.so standalone, only as part of trace-cmd, which may explain
why I didn't see any problem?
johannes
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] trace-cmd: add trace-record.o to the python shared lib
2014-07-22 12:58 ` Johannes Berg
@ 2014-07-30 16:11 ` Josef Bacik
0 siblings, 0 replies; 4+ messages in thread
From: Josef Bacik @ 2014-07-30 16:11 UTC (permalink / raw)
To: Johannes Berg, Steven Rostedt; +Cc: linux-kernel, Darren Hart
On 07/22/2014 08:58 AM, Johannes Berg wrote:
> On Mon, 2014-07-21 at 17:01 -0400, Steven Rostedt wrote:
>> Cc'd my python gurus.
>>
>> Acks?
>
>>> When trying to use the python library it was giving me an error about not being
>>> able to resolve tracecmd_stat_cpu. This is because we weren't linking
>>> trace-record.o to ctracecmd.so. Fix this in the makefile and now I can import
>>> trace-cmd in python properly. Thanks,
>
> I guess, I don't see anything wrong with that. I don't usually use
> ctracecmd.so standalone, only as part of trace-cmd, which may explain
> why I didn't see any problem?
>
Maybe? I'm not sure how it worked for you, with just a normal install I can
load up python and import tracecmd and it blows up immediately. This is
pointing at the /usr/local/lib/trace-cmd/python stuff, not using it from
trace-cmd directly. Steve can you take these two patches so I can close out my
internal stuff? I don't like carrying patches I can't point at an upstream
commit for. Thanks,
Josef
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-07-30 16:13 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-21 20:50 [PATCH] trace-cmd: add trace-record.o to the python shared lib Josef Bacik
2014-07-21 21:01 ` Steven Rostedt
2014-07-22 12:58 ` Johannes Berg
2014-07-30 16:11 ` Josef Bacik
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.