diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2020-11-06 07:10:14 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2020-11-12 08:12:02 +0100 |
commit | f753b808d7bd86a1d4e215c0002b013f307dd91e (patch) | |
tree | 540ccd8b1df9cc9318a362b39ece4aa067caded7 | |
parent | dae6b6b81075aa294c9150473c7f9fb6252d9807 (diff) | |
download | ptxdist-f753b808d7bd86a1d4e215c0002b013f307dd91e.tar.gz ptxdist-f753b808d7bd86a1d4e215c0002b013f307dd91e.tar.xz |
trace-cmd: version bump 2.8.3 -> 2.9.1
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r-- | patches/trace-cmd-v2.8.3/0001-trace-cmd-Fix-multiple-definition-compiler-errors.patch | 129 | ||||
-rw-r--r-- | patches/trace-cmd-v2.8.3/series | 4 | ||||
-rw-r--r-- | rules/trace-cmd.make | 6 |
3 files changed, 3 insertions, 136 deletions
diff --git a/patches/trace-cmd-v2.8.3/0001-trace-cmd-Fix-multiple-definition-compiler-errors.patch b/patches/trace-cmd-v2.8.3/0001-trace-cmd-Fix-multiple-definition-compiler-errors.patch deleted file mode 100644 index 9ff3f4424..000000000 --- a/patches/trace-cmd-v2.8.3/0001-trace-cmd-Fix-multiple-definition-compiler-errors.patch +++ /dev/null @@ -1,129 +0,0 @@ -From: "Tzvetomir Stoyanov (VMware)" <tz.stoyanov@gmail.com> -Date: Mon, 10 Feb 2020 10:50:10 +0200 -Subject: [PATCH] trace-cmd: Fix "multiple definition" compiler errors - -When compiling with gcc and option "-fno-common", there are -errors because of multiple global variables with the same names. -The "-fno-common" gcc option is turned on by default on gcc 10, so -trace-cmd build fails on this compiler. - -Proposed solution: set the variables to be static, as their scope is -only the current C file. - -Link: http://lore.kernel.org/linux-trace-devel/20200210085010.7974-1-tz.stoyanov@gmail.com - -Reported-by: Ziqian SUN (Zamir) <sztsian@gmail.com> -Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=206467 -Signed-off-by: Tzvetomir Stoyanov (VMware) <tz.stoyanov@gmail.com> -Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org> ---- - tracecmd/trace-hist.c | 40 ++++++++++++++++++++-------------------- - tracecmd/trace-mem.c | 38 +++++++++++++++++++------------------- - 2 files changed, 39 insertions(+), 39 deletions(-) - -diff --git a/tracecmd/trace-hist.c b/tracecmd/trace-hist.c -index 384a7ff09306..2e30d021c3f3 100644 ---- a/tracecmd/trace-hist.c -+++ b/tracecmd/trace-hist.c -@@ -27,26 +27,26 @@ static int kernel_stack_type; - - static int long_size; - --struct tep_format_field *common_type_field; --struct tep_format_field *common_pid_field; --struct tep_format_field *sched_wakeup_comm_field; --struct tep_format_field *sched_wakeup_new_comm_field; --struct tep_format_field *sched_wakeup_pid_field; --struct tep_format_field *sched_wakeup_new_pid_field; --struct tep_format_field *sched_switch_prev_field; --struct tep_format_field *sched_switch_next_field; --struct tep_format_field *sched_switch_prev_pid_field; --struct tep_format_field *sched_switch_next_pid_field; --struct tep_format_field *function_ip_field; --struct tep_format_field *function_parent_ip_field; --struct tep_format_field *function_graph_entry_func_field; --struct tep_format_field *function_graph_entry_depth_field; --struct tep_format_field *function_graph_exit_func_field; --struct tep_format_field *function_graph_exit_depth_field; --struct tep_format_field *function_graph_exit_calltime_field; --struct tep_format_field *function_graph_exit_rettime_field; --struct tep_format_field *function_graph_exit_overrun_field; --struct tep_format_field *kernel_stack_caller_field; -+static struct tep_format_field *common_type_field; -+static struct tep_format_field *common_pid_field; -+static struct tep_format_field *sched_wakeup_comm_field; -+static struct tep_format_field *sched_wakeup_new_comm_field; -+static struct tep_format_field *sched_wakeup_pid_field; -+static struct tep_format_field *sched_wakeup_new_pid_field; -+static struct tep_format_field *sched_switch_prev_field; -+static struct tep_format_field *sched_switch_next_field; -+static struct tep_format_field *sched_switch_prev_pid_field; -+static struct tep_format_field *sched_switch_next_pid_field; -+static struct tep_format_field *function_ip_field; -+static struct tep_format_field *function_parent_ip_field; -+static struct tep_format_field *function_graph_entry_func_field; -+static struct tep_format_field *function_graph_entry_depth_field; -+static struct tep_format_field *function_graph_exit_func_field; -+static struct tep_format_field *function_graph_exit_depth_field; -+static struct tep_format_field *function_graph_exit_calltime_field; -+static struct tep_format_field *function_graph_exit_rettime_field; -+static struct tep_format_field *function_graph_exit_overrun_field; -+static struct tep_format_field *kernel_stack_caller_field; - - static int compact; - -diff --git a/tracecmd/trace-mem.c b/tracecmd/trace-mem.c -index 078a61bc702a..25bdbaee8160 100644 ---- a/tracecmd/trace-mem.c -+++ b/tracecmd/trace-mem.c -@@ -30,31 +30,31 @@ static int kmem_cache_alloc_type; - static int kmem_cache_alloc_node_type; - static int kmem_cache_free_type; - --struct tep_format_field *common_type_field; -+static struct tep_format_field *common_type_field; - --struct tep_format_field *kmalloc_callsite_field; --struct tep_format_field *kmalloc_bytes_req_field; --struct tep_format_field *kmalloc_bytes_alloc_field; --struct tep_format_field *kmalloc_ptr_field; -+static struct tep_format_field *kmalloc_callsite_field; -+static struct tep_format_field *kmalloc_bytes_req_field; -+static struct tep_format_field *kmalloc_bytes_alloc_field; -+static struct tep_format_field *kmalloc_ptr_field; - --struct tep_format_field *kmalloc_node_callsite_field; --struct tep_format_field *kmalloc_node_bytes_req_field; --struct tep_format_field *kmalloc_node_bytes_alloc_field; --struct tep_format_field *kmalloc_node_ptr_field; -+static struct tep_format_field *kmalloc_node_callsite_field; -+static struct tep_format_field *kmalloc_node_bytes_req_field; -+static struct tep_format_field *kmalloc_node_bytes_alloc_field; -+static struct tep_format_field *kmalloc_node_ptr_field; - --struct tep_format_field *kfree_ptr_field; -+static struct tep_format_field *kfree_ptr_field; - --struct tep_format_field *kmem_cache_callsite_field; --struct tep_format_field *kmem_cache_bytes_req_field; --struct tep_format_field *kmem_cache_bytes_alloc_field; --struct tep_format_field *kmem_cache_ptr_field; -+static struct tep_format_field *kmem_cache_callsite_field; -+static struct tep_format_field *kmem_cache_bytes_req_field; -+static struct tep_format_field *kmem_cache_bytes_alloc_field; -+static struct tep_format_field *kmem_cache_ptr_field; - --struct tep_format_field *kmem_cache_node_callsite_field; --struct tep_format_field *kmem_cache_node_bytes_req_field; --struct tep_format_field *kmem_cache_node_bytes_alloc_field; --struct tep_format_field *kmem_cache_node_ptr_field; -+static struct tep_format_field *kmem_cache_node_callsite_field; -+static struct tep_format_field *kmem_cache_node_bytes_req_field; -+static struct tep_format_field *kmem_cache_node_bytes_alloc_field; -+static struct tep_format_field *kmem_cache_node_ptr_field; - --struct tep_format_field *kmem_cache_free_ptr_field; -+static struct tep_format_field *kmem_cache_free_ptr_field; - - static void *zalloc(size_t size) - { diff --git a/patches/trace-cmd-v2.8.3/series b/patches/trace-cmd-v2.8.3/series deleted file mode 100644 index a68d7d9eb..000000000 --- a/patches/trace-cmd-v2.8.3/series +++ /dev/null @@ -1,4 +0,0 @@ -# generated by git-ptx-patches -#tag:base --start-number 1 -0001-trace-cmd-Fix-multiple-definition-compiler-errors.patch -# ed8a3a93914f8a8c6f5aa66e55b156be - git-ptx-patches magic diff --git a/rules/trace-cmd.make b/rules/trace-cmd.make index 242708212..ccff58dd2 100644 --- a/rules/trace-cmd.make +++ b/rules/trace-cmd.make @@ -14,8 +14,8 @@ PACKAGES-$(PTXCONF_TRACE_CMD) += trace-cmd # # Paths and names # -TRACE_CMD_VERSION := 2.8.3 -TRACE_CMD_MD5 := f0e0b7df8e38c1b4842e8037c2292066 +TRACE_CMD_VERSION := 2.9.1 +TRACE_CMD_MD5 := c699c6df78faa18af3f2742dcf3e5e3c TRACE_CMD := trace-cmd-v$(TRACE_CMD_VERSION) TRACE_CMD_SUFFIX := tar.gz TRACE_CMD_URL := https://git.kernel.org/pub/scm/utils/trace-cmd/trace-cmd.git/snapshot/$(TRACE_CMD).$(TRACE_CMD_SUFFIX) @@ -68,7 +68,7 @@ $(STATEDIR)/trace-cmd.targetinstall: @$(foreach plugin, $(TRACE_CMD_PLUGINS), \ $(call install_lib, trace-cmd, 0, 0, 0644, \ - trace-cmd/plugins/plugin_$(plugin));) + traceevent/plugins/plugin_$(plugin));) @$(call install_finish, trace-cmd) |