projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d35fa1e
)
perf hists browser: Fix typo in function switch_data_file
author
Changbin Du
<changbin.du@intel.com>
Mon, 13 Mar 2017 11:46:52 +0000
(19:46 +0800)
committer
Arnaldo Carvalho de Melo
<acme@redhat.com>
Mon, 13 Mar 2017 14:58:57 +0000
(11:58 -0300)
Should clear buf 'abs_path', not 'options'.
Signed-off-by: Changbin Du <changbin.du@intel.com>
Cc: Feng Tang <feng.tang@intel.com>
Cc: Peter Zijlstra <peterz@infradead.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@redhat.com>
tools/perf/ui/browsers/hists.c
patch
|
blob
|
history
diff --git
a/tools/perf/ui/browsers/hists.c
b/tools/perf/ui/browsers/hists.c
index
fc4fb66
..
2dc82be
100644
(file)
--- 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];