mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
perf ui browser hists: Set actions->thread before calling do_zoom_thread()
[ Upstream commit 1741189d843a1d5ef38538bc52a3760e2e46cb2e ] In7cecb7fe83("perf hists: Move sort__has_comm into struct perf_hpp_list") it assumes that act->thread is set prior to calling do_zoom_thread(). This doesn't happen when we use ESC or the Left arrow key to Zoom out of a specific thread, making this operation not to work and we get stuck into the thread zoom. In6422184b08("perf hists browser: Simplify zooming code using pstack_peek()") it says no need to set actions->thread, and at that point that was true, but in7cecb7fe83a actions->thread == NULL check was added before the zoom out of thread could kick in. We can zoom out using the alternative 't' thread zoom toggle hotkey to finally set actions->thread before calling do_zoom_thread() and zoom out, but lets also fix the ESC/Zoom out of thread case. Fixes:7cecb7fe83("perf hists: Move sort__has_comm into struct perf_hpp_list") Reported-by: Ingo Molnar <[email protected]> Tested-by: Ingo Molnar <[email protected]> Cc: Adrian Hunter <[email protected]> Cc: Ian Rogers <[email protected]> Cc: James Clark <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Kan Liang <[email protected]> Cc: Namhyung Kim <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
This commit is contained in:
parent
9027ce4c03
commit
43fe88b963
1 changed files with 1 additions and 1 deletions
|
|
@ -3065,10 +3065,10 @@ static int perf_evsel__hists_browse(struct evsel *evsel, int nr_events,
|
|||
/*
|
||||
* No need to set actions->dso here since
|
||||
* it's just to remove the current filter.
|
||||
* Ditto for thread below.
|
||||
*/
|
||||
do_zoom_dso(browser, actions);
|
||||
} else if (top == &browser->hists->thread_filter) {
|
||||
actions->thread = thread;
|
||||
do_zoom_thread(browser, actions);
|
||||
} else if (top == &browser->hists->socket_filter) {
|
||||
do_zoom_socket(browser, actions);
|
||||
|
|
|
|||
Loading…
Reference in a new issue