[PATCH 1/2] trace-cmd: Fix the detection for swig

2018-02-03 Thread sztsian
From: Zamir SUN The current detection for swig will cause output to be /usr/bin/swig y So this will never be equal to y. With this patch, the swig path is removed from output, so the detection can work as expected. Fixes 3bf187a43b7e6302592552ecbc294e5820249687 Signed-off-by: Zamir SUN (Red Hat

[PATCH 2/2] trace-cmd: Change the way of getting python ldflags.

2018-02-03 Thread sztsian
From: Zamir SUN Prior than this patch, Makefile detects python ldflags using a hardcoded python command. It will cause problems if we are building against python3 in the future when ldflags for python2 and python3 are different. With this patch, python ldflags are detected by corresponding python

[PATCH 0/2] trace-cmd: Improves python plugin support

2018-02-03 Thread sztsian
From: Zamir SUN (Red Hat) This is a set of patch to improve trace-cmd python plugin support. Patch 1 fixes the detection for swig. With this patch, python-plugin can be built successfully. Patch 2 improves the detection for python ldflags. With this patch, ldflags can be detected with python3 i