File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -732,7 +732,7 @@ static void perf_event__process_sample(struct perf_tool *tool,
732
732
if (machine__resolve (machine , & al , sample ) < 0 )
733
733
return ;
734
734
735
- if (!top -> kptr_restrict_warned &&
735
+ if (!machine -> kptr_restrict_warned &&
736
736
symbol_conf .kptr_restrict &&
737
737
al .cpumode == PERF_RECORD_MISC_KERNEL ) {
738
738
ui__warning (
@@ -743,7 +743,7 @@ static void perf_event__process_sample(struct perf_tool *tool,
743
743
" modules" : "" );
744
744
if (use_browser <= 0 )
745
745
sleep (5 );
746
- top -> kptr_restrict_warned = true;
746
+ machine -> kptr_restrict_warned = true;
747
747
}
748
748
749
749
if (al .sym == NULL ) {
@@ -759,7 +759,7 @@ static void perf_event__process_sample(struct perf_tool *tool,
759
759
* --hide-kernel-symbols, even if the user specifies an
760
760
* invalid --vmlinux ;-)
761
761
*/
762
- if (!top -> kptr_restrict_warned && !top -> vmlinux_warned &&
762
+ if (!machine -> kptr_restrict_warned && !top -> vmlinux_warned &&
763
763
al .map == machine -> vmlinux_maps [MAP__FUNCTION ] &&
764
764
RB_EMPTY_ROOT (& al .map -> dso -> symbols [MAP__FUNCTION ])) {
765
765
if (symbol_conf .vmlinux_name ) {
Original file line number Diff line number Diff line change @@ -27,7 +27,6 @@ struct perf_top {
27
27
int max_stack ;
28
28
bool hide_kernel_symbols , hide_user_symbols , zero ;
29
29
bool use_tui , use_stdio ;
30
- bool kptr_restrict_warned ;
31
30
bool vmlinux_warned ;
32
31
bool dump_symtab ;
33
32
struct hist_entry * sym_filter_entry ;
You can’t perform that action at this time.
0 commit comments