Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 314216 Details for
Bug 458824
Oprofile need to enable/disable all the counters for intel family 6
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Make oprofile enable all perf counters on intel family 6
linux-2.6-oprofile-intel-family-6.patch (text/plain), 1.33 KB, created by
Markus Armbruster
on 2008-08-13 15:39:36 UTC
(
hide
)
Description:
Make oprofile enable all perf counters on intel family 6
Filename:
MIME Type:
Creator:
Markus Armbruster
Created:
2008-08-13 15:39:36 UTC
Size:
1.33 KB
patch
obsolete
>diff -up linux-2.6.18.noarch/arch/i386/oprofile/op_model_ppro.c~ linux-2.6.18.noarch/arch/i386/oprofile/op_model_ppro.c >--- linux-2.6.18.noarch/arch/i386/oprofile/op_model_ppro.c~ 2008-08-12 13:32:56.000000000 -0400 >+++ linux-2.6.18.noarch/arch/i386/oprofile/op_model_ppro.c 2008-08-12 13:53:16.000000000 -0400 >@@ -93,6 +93,8 @@ static int ppro_check_ctrs(struct pt_reg > int i; > > for (i = 0 ; i < NUM_COUNTERS; ++i) { >+ if (!reset_value[i]) >+ continue; > CTR_READ(low, high, msrs, i); > if (CTR_OVERFLOWED(low)) { > oprofile_add_sample(regs, i); >@@ -118,18 +120,30 @@ static int ppro_check_ctrs(struct pt_reg > static void ppro_start(struct op_msrs const * const msrs) > { > unsigned int low,high; >- CTRL_READ(low, high, msrs, 0); >- CTRL_SET_ACTIVE(low); >- CTRL_WRITE(low, high, msrs, 0); >+ int i; >+ >+ for (i = 0; i < NUM_COUNTERS; ++i) { >+ if (reset_value[i]) { >+ CTRL_READ(low, high, msrs, i); >+ CTRL_SET_ACTIVE(low); >+ CTRL_WRITE(low, high, msrs, i); >+ } >+ } > } > > > static void ppro_stop(struct op_msrs const * const msrs) > { > unsigned int low,high; >- CTRL_READ(low, high, msrs, 0); >- CTRL_SET_INACTIVE(low); >- CTRL_WRITE(low, high, msrs, 0); >+ int i; >+ >+ for (i = 0; i < NUM_COUNTERS; ++i) { >+ if (!reset_value[i]) >+ continue; >+ CTRL_READ(low, high, msrs, i); >+ CTRL_SET_INACTIVE(low); >+ CTRL_WRITE(low, high, msrs, i); >+ } > } > >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 458824
: 314216