Re: Why is PCE not set in CR4?

From: Bruce M Simpson (bms_at_spc.org)
Date: 10/01/03

  • Next message: Jason Stewart: "Re: onstream out of business?"
    Date: Wed, 1 Oct 2003 12:41:56 +0100
    To: Grumble <invalid@kma.eu.org>
    
    
    

    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 documentation and source code. For several
    > reasons, I do not think it is totally adequate in my situation.
    [snip]

    Hi,

    Eat this. Diff attached. Test this and I'll commit it to -CURRENT if you're
    happy with it. If you can tell me more about what perfmon needs I'll give
    it love too.

    This is an extension to the i386_vm86() syscall which will let you turn
    PCE on and off if you're the superuser.

    BMS

    
    
    

    _______________________________________________
    freebsd-questions@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"



  • Next message: Jason Stewart: "Re: onstream out of business?"