[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <tip-3ef5b4023c64c16c793a066a7a2ed6ea3767e0d7@git.kernel.org>
Date: Wed, 15 Mar 2017 11:38:32 -0700
From: tip-bot for Changbin Du <tipbot@...or.com>
To: linux-tip-commits@...r.kernel.org
Cc: feng.tang@...el.com, changbin.du@...el.com, mingo@...nel.org,
acme@...hat.com, tglx@...utronix.de, linux-kernel@...r.kernel.org,
hpa@...or.com, peterz@...radead.org
Subject: [tip:perf/core] perf hists browser: Fix typo in function
switch_data_file
Commit-ID: 3ef5b4023c64c16c793a066a7a2ed6ea3767e0d7
Gitweb: http://git.kernel.org/tip/3ef5b4023c64c16c793a066a7a2ed6ea3767e0d7
Author: Changbin Du <changbin.du@...el.com>
AuthorDate: Mon, 13 Mar 2017 19:46:52 +0800
Committer: Arnaldo Carvalho de Melo <acme@...hat.com>
CommitDate: Mon, 13 Mar 2017 11:58:57 -0300
perf hists browser: Fix typo in function switch_data_file
Should clear buf 'abs_path', not 'options'.
Signed-off-by: Changbin Du <changbin.du@...el.com>
Cc: Feng Tang <feng.tang@...el.com>
Cc: Peter Zijlstra <peterz@...radead.org>
Fixes: 341487ab561f ("perf hists browser: Add option for runtime switching perf data file")
Link: http://lkml.kernel.org/r/20170313114652.9207-1-changbin.du@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@...hat.com>
---
tools/perf/ui/browsers/hists.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/perf/ui/browsers/hists.c b/tools/perf/ui/browsers/hists.c
index fc4fb66..2dc82be 100644
--- a/tools/perf/ui/browsers/hists.c
+++ b/tools/perf/ui/browsers/hists.c
@@ -2308,7 +2308,7 @@ static int switch_data_file(void)
return ret;
memset(options, 0, sizeof(options));
- memset(options, 0, sizeof(abs_path));
+ memset(abs_path, 0, sizeof(abs_path));
while ((dent = readdir(pwd_dir))) {
char path[PATH_MAX];
Powered by blists - more mailing lists