perf trace: Warn when trying to resolve kernel addresses with kptr_restrict=1
[cascardo/linux.git] / tools / perf / util / machine.c
index b277984..bdc33ce 100644 (file)
@@ -43,6 +43,7 @@ int machine__init(struct machine *machine, const char *root_dir, pid_t pid)
 
        machine->symbol_filter = NULL;
        machine->id_hdr_size = 0;
+       machine->kptr_restrict_warned = false;
        machine->comm_exec = false;
        machine->kernel_start = 0;