lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20080714155301.2661c7b6.randy.dunlap@oracle.com>
Date:	Mon, 14 Jul 2008 15:53:01 -0700
From:	Randy Dunlap <randy.dunlap@...cle.com>
To:	Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Cc:	mingo <mingo@...hat.com>, venkatesh.pallipadi@...el.com,
	tglx <tglx@...utronix.de>
Subject: Re: x86: add "debugpat" boot option

On Mon, 14 Jul 2008 22:34:22 GMT Linux Kernel Mailing List wrote:

> Gitweb:     http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=77b52b4c5c66175553ee59eb43f74366f1e54bde
> Commit:     77b52b4c5c66175553ee59eb43f74366f1e54bde
> Parent:     988f7b5789ccf5cfed14c72e28573a49f0cb4809
> Author:     Venki Pallipadi <venkatesh.pallipadi@...el.com>
> AuthorDate: Mon May 5 19:09:10 2008 -0700
> Committer:  Ingo Molnar <mingo@...e.hu>
> CommitDate: Mon May 12 21:28:07 2008 +0200
> 
>     x86: add "debugpat" boot option
>     
>     enable debug messages by a boot option "debugpat".

Is there an update to Documentation/kernel-parameters.txt for this?  (please)


>     Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@...el.com>
>     Signed-off-by: Ingo Molnar <mingo@...e.hu>
>     Signed-off-by: Thomas Gleixner <tglx@...utronix.de>
> ---
>  arch/x86/mm/pat.c |   27 ++++++++++++++++++++-------
>  1 files changed, 20 insertions(+), 7 deletions(-)
> 
> diff --git a/arch/x86/mm/pat.c b/arch/x86/mm/pat.c
> index 60adbe2..1a82f4d 100644
> --- a/arch/x86/mm/pat.c
> +++ b/arch/x86/mm/pat.c
> @@ -42,6 +42,19 @@ static int nopat(char *str)
>  early_param("nopat", nopat);
>  #endif
>  
> +
> +static int debug_enable;
> +static int __init pat_debug_setup(char *str)
> +{
> +	debug_enable = 1;
> +	return 0;
> +}
> +__setup("debugpat", pat_debug_setup);
> +
> +#define dprintk(fmt, arg...) \
> +	do { if (debug_enable) printk(KERN_INFO fmt, ##arg); } while (0)
> +
> +
>  static u64 __read_mostly boot_pat_state;
>  
>  enum {
> @@ -279,7 +292,7 @@ int reserve_memtype(u64 start, u64 end, unsigned long req_type,
>  		struct memtype *saved_ptr;
>  
>  		if (parse->start >= end) {
> -			pr_debug("New Entry\n");
> +			dprintk("New Entry\n");
>  			list_add(&new_entry->nd, parse->nd.prev);
>  			new_entry = NULL;
>  			break;
> @@ -329,7 +342,7 @@ int reserve_memtype(u64 start, u64 end, unsigned long req_type,
>  				break;
>  			}
>  
> -			pr_debug("Overlap at 0x%Lx-0x%Lx\n",
> +			dprintk("Overlap at 0x%Lx-0x%Lx\n",
>  			       saved_ptr->start, saved_ptr->end);
>  			/* No conflict. Go ahead and add this new entry */
>  			list_add(&new_entry->nd, saved_ptr->nd.prev);
> @@ -381,7 +394,7 @@ int reserve_memtype(u64 start, u64 end, unsigned long req_type,
>  				break;
>  			}
>  
> -			pr_debug(KERN_INFO "Overlap at 0x%Lx-0x%Lx\n",
> +			dprintk("Overlap at 0x%Lx-0x%Lx\n",
>  				 saved_ptr->start, saved_ptr->end);
>  			/* No conflict. Go ahead and add this new entry */
>  			list_add(&new_entry->nd, &saved_ptr->nd);
> @@ -403,16 +416,16 @@ int reserve_memtype(u64 start, u64 end, unsigned long req_type,
>  	if (new_entry) {
>  		/* No conflict. Not yet added to the list. Add to the tail */
>  		list_add_tail(&new_entry->nd, &memtype_list);
> -		pr_debug("New Entry\n");
> +		dprintk("New Entry\n");
>  	}
>  
>  	if (ret_type) {
> -		pr_debug(
> +		dprintk(
>  	"reserve_memtype added 0x%Lx-0x%Lx, track %s, req %s, ret %s\n",
>  			start, end, cattr_name(actual_type),
>  			cattr_name(req_type), cattr_name(*ret_type));
>  	} else {
> -		pr_debug(
> +		dprintk(
>  	"reserve_memtype added 0x%Lx-0x%Lx, track %s, req %s\n",
>  			start, end, cattr_name(actual_type),
>  			cattr_name(req_type));
> @@ -453,7 +466,7 @@ int free_memtype(u64 start, u64 end)
>  			current->comm, current->pid, start, end);
>  	}
>  
> -	pr_debug("free_memtype request 0x%Lx-0x%Lx\n", start, end);
> +	dprintk("free_memtype request 0x%Lx-0x%Lx\n", start, end);
>  	return err;
>  }
>  
> --

---
~Randy
Linux Plumbers Conference, 17-19 September 2008, Portland, Oregon USA
http://linuxplumbersconf.org/
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ