[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20171127094156.rbq7i7it7ojsblfj@hirez.programming.kicks-ass.net>
Date: Mon, 27 Nov 2017 10:41:56 +0100
From: Peter Zijlstra <peterz@...radead.org>
To: Thomas Gleixner <tglx@...utronix.de>
Cc: LKML <linux-kernel@...r.kernel.org>,
Dave Hansen <dave.hansen@...ux.intel.com>,
Andy Lutomirski <luto@...nel.org>,
Ingo Molnar <mingo@...nel.org>, Borislav Petkov <bp@...en8.de>,
Brian Gerst <brgerst@...il.com>,
Denys Vlasenko <dvlasenk@...hat.com>,
"H. Peter Anvin" <hpa@...or.com>,
Josh Poimboeuf <jpoimboe@...hat.com>,
Linus Torvalds <torvalds@...ux-foundation.org>,
Rik van Riel <riel@...hat.com>, daniel.gruss@...k.tugraz.at,
hughd@...gle.com, keescook@...gle.com, linux-mm@...ck.org,
michael.schwarz@...k.tugraz.at, moritz.lipp@...k.tugraz.at,
richard.fellner@...dent.tugraz.at
Subject: Re: [patch V2 4/5] x86/mm/debug_pagetables: Allow dumping current
pagetables
On Mon, Nov 27, 2017 at 12:14:07AM +0100, Thomas Gleixner wrote:
> static int __init pt_dump_debug_init(void)
> {
> + pe_knl = debugfs_create_file("kernel_page_tables", S_IRUSR, NULL, NULL,
> + &ptdump_fops);
> + if (!pe_knl)
> return -ENOMEM;
>
> + pe_curknl = debugfs_create_file("current_page_tables_knl", S_IRUSR,
> + NULL, NULL, &ptdump_curknl_fops);
> + if (!pe_curknl)
> + goto err;
> +
> +#ifdef CONFIG_KAISER
> + pe_curusr = debugfs_create_file("current_page_tables_usr", S_IRUSR,
> + NULL, NULL, &ptdump_curusr_fops);
> + if (!pe_curusr)
> + goto err;
> +#endif
> return 0;
> +err:
> + pt_dump_debug_remove_files();
> + return -ENOMEM;
> }
Could we pretty please use the octal permission thing? I can't read
thise S_crap nonsense.
Powered by blists - more mailing lists