[PATCH] trace-cmd: Make the build messages to show only file names

2018-02-08 Thread Vladislav Valtchev (VMware)
actly like in the past by stripping the directory part of each file path, before printing the message. Signed-off-by: Vladislav Valtchev (VMware) --- scripts/utils.mk | 26 +- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/scripts/utils.mk b/scripts/utils.mk inde

[PATCH v4 3/3] trace-cmd: Making stat to report when the stack tracer is ON

2018-01-16 Thread Vladislav Valtchev (VMware)
trace-cmd stat is a handy way for users to see what tracing is currently going on, but currently it does not say anything about the stack tracing. This patch makes the command to show a message when the stack tracer is ON. Signed-off-by: Vladislav Valtchev (VMware) --- trace-cmd.h | 2

[PATCH v4 1/3] trace-cmd: Make read_proc() to return int status via OUT arg

2018-01-16 Thread Vladislav Valtchev (VMware)
il in case there is something wrong with the stack tracer. Only the call to die() in case the file is empty has been left in this patch: it will be removed as well in a separate commit. Signed-off-by: Vladislav Valtchev (VMware) --- trace-st

[PATCH v4 0/3] Integrate stack tracer status in 'stat'

2018-01-16 Thread Vladislav Valtchev (VMware)
This short patch series makes trace-cmd stat aware of the stack tracer: now, when the stack tracker is ON, the command will report that. Vladislav Valtchev (VMware) (3): trace-cmd: Make read_proc() to return int status via OUT arg trace-cmd: Remove the die() call from read_proc() trace-cmd

[PATCH v4 2/3] trace-cmd: Remove the die() call from read_proc()

2018-01-16 Thread Vladislav Valtchev (VMware)
d of using die(). Signed-off-by: Vladislav Valtchev (VMware) --- trace-stack.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/trace-stack.c b/trace-stack.c index fada62d..3e1e41b 100644 --- a/trace-stack.c +++ b/trace-stack.c @@ -79,7 +79,7 @@ static int read_proc(i

[PATCH v3 1/3] trace-cmd: Make read_proc() to return int status via OUT arg

2018-01-15 Thread Vladislav Valtchev (VMware)
il in case there is something wrong with the stack tracer. Only the call to die() in case the file is empty has been left in this patch: it will be removed as well in a separate commit. Signed-off-by: Vladislav Valtchev (VMware) --- trace-st

[PATCH v3 2/3] trace-cmd: Remove the die() call from read_proc()

2018-01-15 Thread Vladislav Valtchev (VMware)
d of using die(). Signed-off-by: Vladislav Valtchev (VMware) --- trace-stack.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trace-stack.c b/trace-stack.c index c1058ca..d55d994 100644 --- a/trace-stack.c +++ b/trace-stack.c @@ -79,9 +79,9 @@ static int read_proc(i

[PATCH v3 0/3] Integrate stack tracer status in 'stat'

2018-01-15 Thread Vladislav Valtchev (VMware)
This short patch series makes trace-cmd stat aware of the stack tracer: now, when the stack tracker is ON, the command will report that. Vladislav Valtchev (VMware) (3): trace-cmd: Make read_proc() to return int status via OUT arg trace-cmd: Remove the die() call from read_proc() trace-cmd

[PATCH v3 3/3] trace-cmd: Making stat to report when the stack tracer is ON

2018-01-15 Thread Vladislav Valtchev (VMware)
trace-cmd stat is a handy way for users to see what tracing is currently going on, but currently it does not say anything about the stack tracing. This patch makes the command to show a message when the stack tracer is ON. Signed-off-by: Vladislav Valtchev (VMware) --- trace-cmd.h | 2

[PATCH v2 13/18] trace-cmd: Move python-related files in python/

2018-01-11 Thread Vladislav Valtchev (VMware)
making the parent Makefile to invoke it. Signed-off-by: Vladislav Valtchev (VMware) --- Makefile | 42 +-- python/Makefile | 40 + ctracecmd.i => python/ctracecmd.i | 0 c

[PATCH v2 2/3] trace-cmd: Remove the die() call from read_proc()

2017-12-21 Thread Vladislav Valtchev (VMware)
d of using die(). Signed-off-by: Vladislav Valtchev (VMware) --- trace-stack.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trace-stack.c b/trace-stack.c index c1058ca..d55d994 100644 --- a/trace-stack.c +++ b/trace-stack.c @@ -79,9 +79,9 @@ static int read_proc(i

[PATCH v2 3/3] trace-cmd: Making stat to report when the stack tracer is ON

2017-12-21 Thread Vladislav Valtchev (VMware)
trace-cmd stat is a handy way for users to see what tracing is currently going on, but currently it does not say anything about the stack tracing. This patch makes the command to show a message when the stack tracer is ON. Signed-off-by: Vladislav Valtchev (VMware) --- trace-cmd.h | 2

[PATCH v2 1/3] trace-cmd: Make read_proc() to return int status via OUT arg

2017-12-21 Thread Vladislav Valtchev (VMware)
il in case there is something wrong with the stack tracer. Only the call to die() in case the file is empty has been left in this patch: it will be removed as well in a separate commit. Signed-off-by: Vladislav Valtchev (VMware) --- trace-st

[PATCH v2 0/3] trace-cmd: Integrate stack tracer status in 'stat'

2017-12-21 Thread Vladislav Valtchev (VMware)
This short patch series makes trace-cmd stat aware of the stack tracer: now, when the stack tracker is ON, the stat command will report that. Vladislav Valtchev (VMware) (3): trace-cmd: Make read_proc() to return int status via OUT arg trace-cmd: Remove the die() call from read_proc() trace

[PATCH 03/18] trace-cmd: Move trace-cmd headers in include/trace-cmd

2017-12-20 Thread Vladislav Valtchev (VMware)
This patch moves trace-cmd.h and trace-hash.h in include/trace-cmd as part of a bigger restructuring plan of trace-cmd's code base. In this case, the new directory will be the "public headers" directory of the trace-cmd library. Signed-off-by: Vladislav Valtchev (VMware)

[PATCH 02/18] trace-cmd: Move libtraceevent headers in include/traceevent

2017-12-20 Thread Vladislav Valtchev (VMware)
This patch moves event-parse.h and kbuffer.h in include/traceevent as part of a bigger restructuring plan of trace-cmd's code base. In this case, the new directory will be the "public headers" directory of the traceevent library. Signed-off-by: Vladislav Valtchev (VMware)

[PATCH 07/18] trace-cmd: Move trace-hash-local.h in lib/trace-cmd/include

2017-12-20 Thread Vladislav Valtchev (VMware)
ed in lib/trace-cmd. Signed-off-by: Vladislav Valtchev (VMware) --- Makefile | 1 + trace-hash-local.h => lib/trace-cmd/include/trace-hash-local.h | 0 2 files changed, 1 insertion(+) rename trace-hash-local.h => lib/trace-cmd/include/tr

[PATCH 06/18] trace-cmd: Move libtraceevent *.c files in lib/traceevent

2017-12-20 Thread Vladislav Valtchev (VMware)
Valtchev (VMware) --- Makefile | 42 - lib/traceevent/Makefile | 45 +++ event-parse.c => lib/traceevent/event-parse.c | 0 event-plugin.c => lib/traceevent/event-plugin.c | 0 k

[PATCH 01/18] trace-cmd: Rename libparsevent to libtraceevent

2017-12-20 Thread Vladislav Valtchev (VMware)
This simple patch renames libparsevent to libtraceevent in order to trace-cmd to be consistent with the kernel. Signed-off-by: Vladislav Valtchev (VMware) --- Makefile | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index b7bb3cc..bd2d844

[PATCH 08/18] trace-cmd: Move libtracecmd *.c files in lib/trace-cmd

2017-12-20 Thread Vladislav Valtchev (VMware)
-by: Vladislav Valtchev (VMware) --- Makefile | 54 ++ lib/trace-cmd/Makefile | 45 ++ trace-blk-hack.c => lib/trace-cmd/trace-blk-hack.c | 0 trace-ftrace.c => lib/trace-cmd/trace-ft

[PATCH 10/18] trace-cmd: Move GUI *.c files in kernel-shark/

2017-12-20 Thread Vladislav Valtchev (VMware)
Makefile to invoke it. Signed-off-by: Vladislav Valtchev (VMware) --- Makefile | 190 - kernel-shark/Makefile | 84 + kernel-shark.c => kernel-shark/kernel-shark.c | 0 trace-capture.c =>

[PATCH 12/18] trace-cmd: Fix the broken target ctracecmdgui.so

2017-12-20 Thread Vladislav Valtchev (VMware)
Currenly the ctracecmdgui.so target is broken beacause the object files trace-view.o trace-view-store.o are not built with -fPIC. This patch just fixes the kernel-shark/Makefile in order to those files to be built with -fPIC. Signed-off-by: Vladislav Valtchev (VMware) --- kernel-shark/Makefile

[PATCH 11/18] trace-cmd: Move plugin_* files in plugins/

2017-12-20 Thread Vladislav Valtchev (VMware)
le to invoke it. Signed-off-by: Vladislav Valtchev (VMware) --- Makefile | 115 ++--- lib/trace-cmd/Makefile | 2 + plugins/Makefile | 69 + plugin_blk.c =>

[PATCH 14/18] trace-cmd: Move tracecmd headers in tracecmd/include

2017-12-20 Thread Vladislav Valtchev (VMware)
This patch moves trace-cmd's private headers in a dedicated directory called tracecmd/include, as part of a bigger restructuring plan of trace-cmd's code base. Signed-off-by: Vladislav Valtchev (VMware) --- Makefile| 1 + bug.h => tra

[PATCH 13/18] trace-cmd: Move python-related files in python/

2017-12-20 Thread Vladislav Valtchev (VMware)
making the parent Makefile to invoke it. Signed-off-by: Vladislav Valtchev (VMware) --- Makefile | 41 +-- python/Makefile | 40 ++ ctracecmd.i => python/ctracecmd.i | 0 c

[PATCH 16/18] trace-cmd: Move trace-cmd app files in tracecmd/

2017-12-20 Thread Vladislav Valtchev (VMware)
This patch moves all the remaining C files in the project's root directory to tracecmd, a directory dedicated to the trace-cmd application itself. This patch completes the bigger restructuring plan of trace-cmd's code base. Signed-off-by: Vladislav Valtchev (VMware) ---

[PATCH 15/18] trace-cmd: Move version.h in include/

2017-12-20 Thread Vladislav Valtchev (VMware)
This trivial patch just moves the only header file remained in project's root directory to the include/ directory, common for all of the trace-cmd's sub-projects. Signed-off-by: Vladislav Valtchev (VMware) --- version.h => include/version.h | 0 1 file changed, 0 insertions(+)

[PATCH 18/18] trace-cmd: Make the build to tell when python-dev is missing

2017-12-20 Thread Vladislav Valtchev (VMware)
. Signed-off-by: Vladislav Valtchev (VMware) --- Makefile | 7 +++ 1 file changed, 7 insertions(+) diff --git a/Makefile b/Makefile index 0a2a78d..f463d1f 100644 --- a/Makefile +++ b/Makefile @@ -119,6 +119,8 @@ ifeq ($(shell sh -c "pkg-config --cflags $(PYTHON_VERS) > /dev/null 2>

[PATCH 17/18] trace-cmd: Fix the logic behind SWIG_DEFINED in the Makefile

2017-12-20 Thread Vladislav Valtchev (VMware)
the problem by using the POSIX 'comamnd -v {CMD}' in $(shell ...) to detect the presence of the swig and restores this way the fake report_noswig target. Signed-off-by: Vladislav Valtchev (VMware) --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Mak

[PATCH 09/18] trace-cmd: Move GUI headers in kernel-shark/include

2017-12-20 Thread Vladislav Valtchev (VMware)
This patch moves, as part of a bigger code base restructuring, all the header files of kernelshark in a dedicated directory. The next patch will move all of kernelshark's source files in kernel-shark/. Signed-off-by: Vladislav Valtchev (VMware) --- Mak

[PATCH 05/18] trace-cmd: Extract part of Makefile in scripts/utils.mk

2017-12-20 Thread Vladislav Valtchev (VMware)
This patch extracts useful functions for Makefile in order to allow the new Makefiles that will be introduced in the next steps to reuse them. Signed-off-by: Vladislav Valtchev (VMware) --- Makefile | 57 +++-- scripts/utils.mk | 64

[PATCH 04/18] trace-cmd: Move event-utils.h in lib/traceevent/include

2017-12-20 Thread Vladislav Valtchev (VMware)
moved there as well. Signed-off-by: Vladislav Valtchev (VMware) --- Makefile | 1 + event-utils.h => lib/traceevent/include/event-utils.h | 0 2 files changed, 1 insertion(+) rename event-utils.h => lib/traceevent/include/event-utils.h (100%) d

[PATCH 00/18] trace-cmd: restructure the project's source tree

2017-12-20 Thread Vladislav Valtchev (VMware)
ost all of the effort in this series has been spent on updating the build system to support the new structure. The side-effect of that is a simpler and easier to maintain build system. Vladislav Valtchev (VMware) (18): trace-cmd: Rename libparsevent to libtraceevent trace-cmd: Move libtraceevent

[PATCH v2 06/10] trace-cmd: Extr. profile-specific code from record_trace

2017-11-30 Thread Vladislav Valtchev (VMware)
This patch extracts the code in record_trace() under if (IS_PROFILE(ctx)): now that profile has its own function, that code could be moved there after removing the IS_PROFILE(ctx) checks, clearly. Signed-off-by: Vladislav Valtchev (VMware) --- trace-record.c | 18 -- 1 file

[PATCH v2 04/10] trace-cmd: Rename trace_profile() to do_trace_profile()

2017-11-30 Thread Vladislav Valtchev (VMware)
made to call do_trace_profile() after some initialization. Signed-off-by: Vladislav Valtchev (VMware) --- trace-local.h | 2 +- trace-profile.c | 2 +- trace-read.c| 2 +- trace-record.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/trace-local.h b/trace-local.h index c01

[PATCH v2 05/10] trace-cmd: Making start,extract,stream,profile separate funcs

2017-11-30 Thread Vladislav Valtchev (VMware)
int, making the code simpler to maintain. Signed-off-by: Vladislav Valtchev (VMware) --- trace-cmd.c| 8 +++ trace-local.h | 8 +++ trace-record.c | 72 ++ 3 files changed, 64 insertions(+), 24 deletions(-) diff --git a/trac

[PATCH v2 02/10] trace-cmd: Replacing cmd flags w/ a trace_cmd enum

2017-11-30 Thread Vladislav Valtchev (VMware)
This patch replaces 5 mutually exclusive flag variables (extract, start, stream, record, profile) in trace_record() with a more convenient enum. The point of doing that is to make the code simpler and easier to maintain. Signed-off-by: Vladislav Valtchev (VMware) --- trace-record.c | 94

[PATCH v2 01/10] trace-cmd: Extract parse_record_options() from trace_record()

2017-11-30 Thread Vladislav Valtchev (VMware)
scope and the complexity of trace_record(). Signed-off-by: Vladislav Valtchev (VMware) --- trace-record.c | 335 ++--- 1 file changed, 179 insertions(+), 156 deletions(-) diff --git a/trace-record.c b/trace-record.c index 770b5bd..487d35e

[PATCH v2 07/10] trace-cmd: Mov init_common_record_context in parse_record_options

2017-11-30 Thread Vladislav Valtchev (VMware)
after the call of parse_record_option(), since they did not actually affect it. Signed-off-by: Vladislav Valtchev (VMware) --- trace-record.c | 19 --- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/trace-record.c b/trace-record.c index 55e81cf..7688565 100644 --- a

[PATCH v2 08/10] trace-cmd: Introducing get_trace_cmd_type()

2017-11-30 Thread Vladislav Valtchev (VMware)
This patch aims to reduce the size of common_record_commads_code() by removing a relatively long 'else if' sequence that was used to do the mapping between the current trace command and the trace_type used by it. Signed-off-by: Vladislav Valtchev (VMware) --- trace-rec

[PATCH v2 10/10] trace-cmd: Fork record_trace() for the extract case

2017-11-30 Thread Vladislav Valtchev (VMware)
false] has been applyed to record_trace(). The purpose of doing that is to reduce the amount of branches in both the cases (extract and everything else), making the code simpler to understand and follow but at the price of having some copy-pasted code. Signed-off-by: Vladislav Valtchev (VMware

[PATCH v2 03/10] trace-cmd: Extracting record_trace()

2017-11-30 Thread Vladislav Valtchev (VMware)
#x27;stream' and 'profile' to have an independent entry-point from 'record'. Signed-off-by: Vladislav Valtchev (VMware) --- trace-record.c | 146 + 1 file changed, 75 insertions(+), 71 deletions(-) diff --git a/trac

[PATCH v2 09/10] trace-cmd: Extract finalize_record_trace()

2017-11-30 Thread Vladislav Valtchev (VMware)
This patch splits record_trace() in two parts by moving its finalization part in a separate function. This will also allow splitting out trace-cmd extract code from trace-cmd record code, by using a shared function. Signed-off-by: Vladislav Valtchev (VMware) --- trace-record.c | 48

[PATCH v2 00/10] trace-cmd: Refactoring trace_record()

2017-11-30 Thread Vladislav Valtchev (VMware)
this effort is to make the code much easier to maintain. Vladislav Valtchev (VMware) (10): trace-cmd: Extract parse_record_options() from trace_record() trace-cmd: Replacing cmd flags w/ a trace_cmd enum trace-cmd: Extracting record_trace() trace-cmd: Rename trace_profile() to

[PATCH 02/11] trace-cmd: Extract trace_restart() from trace_record()

2017-11-23 Thread Vladislav Valtchev (VMware)
ned-off-by: Vladislav Valtchev (VMware) --- trace-cmd.c| 2 +- trace-local.h | 2 ++ trace-record.c | 74 -- 3 files changed, 44 insertions(+), 34 deletions(-) diff --git a/trace-cmd.c b/trace-cmd.c index de5283c..2b9146e 100644 -

[PATCH 03/11] trace-cmd: Extract trace_reset() from trace_record()

2017-11-23 Thread Vladislav Valtchev (VMware)
ned-off-by: Vladislav Valtchev (VMware) --- trace-cmd.c| 2 +- trace-local.h | 2 + trace-record.c | 147 ++--- 3 files changed, 81 insertions(+), 70 deletions(-) diff --git a/trace-cmd.c b/trace-cmd.c index 2b9146e..7bab476 100644 --- a/t

[PATCH 00/11] trace-cmd: Refactoring trace_record()

2017-11-23 Thread Vladislav Valtchev (VMware)
this effort is to make the code much easier to maintain. Vladislav Valtchev (VMware) (11): trace-cmd: Extract trace_stop() from trace_record() trace-cmd: Extract trace_restart() from trace_record() trace-cmd: Extract trace_reset() from trace_record() trace-cmd: Extract parse_record_options

[PATCH 04/11] trace-cmd: Extract parse_record_options() from trace_record()

2017-11-23 Thread Vladislav Valtchev (VMware)
scope and the complexity of trace_record(). Signed-off-by: Vladislav Valtchev (VMware) --- trace-record.c | 336 ++--- 1 file changed, 180 insertions(+), 156 deletions(-) diff --git a/trace-record.c b/trace-record.c index 8f8d270..6dc828b

[PATCH 10/11] trace-cmd: Making the "die" functions noreturn

2017-11-23 Thread Vladislav Valtchev (VMware)
Vladislav Valtchev (VMware) --- trace-cmd.h | 2 ++ trace-local.h | 6 +++--- trace-util.c | 8 +++- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/trace-cmd.h b/trace-cmd.h index 3fb6aab..6fd34d7 100644 --- a/trace-cmd.h +++ b/trace-cmd.h @@ -23,6 +23,8 @@ #include &quo

[PATCH 08/11] trace-cmd: Making start,extract,stream,profile separate funcs

2017-11-23 Thread Vladislav Valtchev (VMware)
int, making the code simpler to maintain. Signed-off-by: Vladislav Valtchev (VMware) --- trace-cmd.c| 8 ++--- trace-local.h | 8 + trace-record.c | 102 + 3 files changed, 78 insertions(+), 40 deletions(-) diff --git a/trac

[PATCH 09/11] trace-cmd: Consolidate ARRAY_SIZE() in trace-cmd.h

2017-11-23 Thread Vladislav Valtchev (VMware)
Since ARRAY_SIZE() is a very useful macro, it makes sense to move it in a common header file, in order to avoid several C files to re-define it. Signed-off-by: Vladislav Valtchev (VMware) --- plugin_blk.c | 1 - trace-cmd.c | 2 -- trace-cmd.h | 2 ++ 3 files changed, 2 insertions(+), 3

[PATCH 07/11] trace-cmd: Extracting record_trace()

2017-11-23 Thread Vladislav Valtchev (VMware)
#x27;stream' and 'profile' to have an independent entry-point from 'record'. Signed-off-by: Vladislav Valtchev (VMware) --- trace-record.c | 148 + 1 file changed, 76 insertions(+), 72 deletions(-) diff --git a/trac

[PATCH 06/11] trace-cmd: Replacing cmd flags w/ a trace_cmd enum

2017-11-23 Thread Vladislav Valtchev (VMware)
This patch replaces 5 mutually exclusive flag variables (extract, start, stream, record, profile) in trace_record() with a more convenient enum. The point of doing that is to make the code simpler and easier to maintain. Signed-off-by: Vladislav Valtchev (VMware) --- trace-record.c | 94

[PATCH 11/11] trace-cmd: Introducing get_trace_cmd_type()

2017-11-23 Thread Vladislav Valtchev (VMware)
This patch aims to reduce the size of common_record_commads_code() by removing a relatively long 'else if' sequence that was used to do the mapping between the current trace command and the trace_type used by it. Signed-off-by: Vladislav Valtchev (VMware) --- trace-rec

[PATCH 05/11] trace-cmd: Rename trace_profile() to trace_profile_int()

2017-11-23 Thread Vladislav Valtchev (VMware)
made to call trace_profile_int() after some initialization. Signed-off-by: Vladislav Valtchev (VMware) --- trace-local.h | 2 +- trace-profile.c | 2 +- trace-read.c| 2 +- trace-record.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/trace-local.h b/trace-local.h index 49e

[PATCH 01/11] trace-cmd: Extract trace_stop() from trace_record()

2017-11-23 Thread Vladislav Valtchev (VMware)
ned-off-by: Vladislav Valtchev (VMware) --- trace-cmd.c| 2 +- trace-local.h | 2 ++ trace-record.c | 78 -- 3 files changed, 46 insertions(+), 36 deletions(-) diff --git a/trace-cmd.c b/trace-cmd.c index 5a10605..de5283c 100644 --- a/t

[PATCH 2/3] trace-cmd: s/plugin/tracer/ in record's man page

2017-11-22 Thread Vladislav Valtchev (VMware)
anged over time: what we call today "tracers" use to be called "plugins" when ftrace was created. This simple patch updates trace-cmd record's man page accordingly, in order to avoid any confusion and improve the user experience. Signed-off-by: Vladislav Valtchev (VMware) --

[PATCH 1/3] trace-cmd: Fix err msg for record w/o the -e option

2017-11-22 Thread Vladislav Valtchev (VMware)
trace_record() allowing, in the same case, the execution to continue a few more statements and fail more gracefully in the function check_doing_something() with the following message: no event or plugin was specified... aborting Signed-off-by: Vladislav Valtchev (VMware) --- trace-record.c | 6

[PATCH 3/3] trace-cmd: Making stat to report when the stack tracer is ON

2017-11-22 Thread Vladislav Valtchev (VMware)
trace-cmd stat is a handy way for users to see what tracing is currently going on, but currently is does not say anything about the stack tracing. This simple patch makes the command to show a message when the stack tracer is ON. Signed-off-by: Vladislav Valtchev (VMware) --- trace-cmd.h | 3

[PATCH 0/3] trace-cmd: fixing three minor user experience issues

2017-11-22 Thread Vladislav Valtchev (VMware)
is enabled The purpose of this effort is to improve the user experience of the tool. Vladislav Valtchev (VMware) (3): trace-cmd: Fix err msg for record w/o the -e option trace-cmd: s/plugin/tracer/ in record's man page trace-cmd: Making stat to report when the stack tracer is ON Document

[PATCH] trace-cmd: s/plugin/tracer/ in record's man page

2017-11-17 Thread Vladislav Valtchev (VMware)
anged over time: what we call today "tracers" use to be called "plugins" when ftrace was created. This simple patch updates trace-cmd record's man page accordingly, in order to avoid any confusion and improve the user experience. Signed-off-by: Vladislav Valtchev (VMware) --

[PATCH] trace-cmd: Making stat to report when the stack tracer is ON

2017-11-17 Thread Vladislav Valtchev (VMware)
trace-cmd stat is a handy way for users to see what tracing is currently going on, but currently is does not say anything about the stack tracing. This simple patch makes the command to show a message when the stack tracer is ON. Signed-off-by: Vladislav Valtchev (VMware) --- trace-cmd.h | 3

[PATCH] trace-cmd: Fix err msg for record w/o the -e option

2017-11-17 Thread Vladislav Valtchev (VMware)
trace_record() allowing, in the same case, the execution to continue a few more statements and fail more gracefully in the function check_doing_something() with the following message: no event or plugin was specified... aborting Signed-off-by: Vladislav Valtchev (VMware) --- trace-record.c | 6