Re: Why is PCE not set in CR4?

2003-10-19 Thread Shill
>> I have read the perfmon documentation and source code. For several >> reasons, I do not think it is totally adequate in my situation. >> >> It was designed in 1996 with the Pentium Pro in mind, which, >> apparently, only has two performance counters: >> >> #define NPMC 2 >> if (pmc < 0 || p

Re: Why is PCE not set in CR4?

2003-10-18 Thread Bruce M Simpson
On Wed, Oct 01, 2003 at 11:39:36AM +0200, Grumble wrote: > I have read the perfmon documentation and source code. For several > reasons, I do not think it is totally adequate in my situation. > > It was designed in 1996 with the Pentium Pro in mind, which, > apparently, only has two performance

Re: Why is PCE not set in CR4?

2003-10-02 Thread Bruce M Simpson
On Thu, Oct 02, 2003 at 02:57:03PM +0200, Grumble wrote: > Is vm86 related to virtual-8086 mode? Probably not... What does vm86 > stand for? Virtual machine? vm86 is something of a catchall for vm86-related functions. One of the things it implements is a means of getting in and out of Virtual 808

Re: Why is PCE not set in CR4?

2003-10-02 Thread Terry Lambert
Bruce M Simpson wrote: > Now that I think on this a bit more, a sysctl might be a better place to > put this, but it seemed to belong with the i386_vm86() bits, rather than > polluting initcpu.c right away. The important thing is to allow the kernel to intermediate and control allocation of counte

Re: Why is PCE not set in CR4?

2003-10-02 Thread Terry Lambert
Bruce M Simpson wrote: > On Wed, Oct 01, 2003 at 11:39:36AM +0200, Grumble wrote: > > >>However, I am not allowed to use the RDPMC instruction from ring 3 > > >>because the PCE (Performance-monitoring Counters Enable) bit is not set. > > > > > >You can do it with /dev/perfmon. man 4 perfmon. > > >

Re: Why is PCE not set in CR4?

2003-10-02 Thread Grumble
I have read the perfmon documentation and source code. For several reasons, I do not think it is totally adequate in my situation. This is an extension to the i386_vm86() syscall which will let you turn PCE on and off if you're the superuser. Now that I think on this a bit more, a sysctl might be

Re: Why is PCE not set in CR4?

2003-10-01 Thread Bruce M Simpson
[crossposting trimmed] On Wed, Oct 01, 2003 at 12:41:56PM +0100, Bruce M Simpson wrote: > > I have read the perfmon documentation and source code. For several > > reasons, I do not think it is totally adequate in my situation. > This is an extension to the i386_vm86() syscall which will let you t

Re: Why is PCE not set in CR4?

2003-10-01 Thread Bruce M Simpson
On Wed, Oct 01, 2003 at 11:39:36AM +0200, Grumble wrote: > >>However, I am not allowed to use the RDPMC instruction from ring 3 > >>because the PCE (Performance-monitoring Counters Enable) bit is not set. > > > >You can do it with /dev/perfmon. man 4 perfmon. > > I have read the perfmon documentat

Re: Why is PCE not set in CR4?

2003-10-01 Thread Grumble
[ First posted to freebsd-questions and freebsd-ia32 ] [ Add freebsd-hackers which I hope is appropriate] The References: and In-Reply-To: headers are missing from this message. If your mail client does not thread it correctly, please accept my apologies. Before mailman, I could display messa