Skip to content

Commit

Permalink
Update smcntrpmf.adoc
Browse files Browse the repository at this point in the history
Minor text improvements

Signed-off-by: Beeman Strong <97133824+bcstrongx@users.noreply.github.com>
  • Loading branch information
bcstrongx committed Apr 29, 2024
1 parent 20cc27d commit 491f57f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/smcntrpmf.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
[[intro]]
=== Introduction

The cycle and instret counters serve to support user mode self-profiling usages, wherein a user can read the counter(s) twice and compute the delta(s) to evaluate user software performance and behavior. Currently, these counters are not filtered by privilege mode, and thus they continue to increment while traps (e.g., page faults or interrupts) to more privileged code are handled. This causes two problems:
The cycle and instret counters serve to support user mode self-profiling usages, wherein a user can read the counter(s) twice and compute the delta(s) to evaluate user software performance and behavior. By default, these counters are not filtered by privilege mode, and thus they continue to increment while traps (e.g., page faults or interrupts) to more privileged code are handled. This causes two problems:

* It introduces unpredictable noise to the counter values observed by the user.
* It leaks information about privileged software execution to user mode.

This proposal remedies these issues by introducing privilege mode filtering for the cycle and instret counters.
Smcntrpmf remedies these issues by introducing privilege mode filtering for the cycle and instret counters.

[[csrs]]
=== CSRs
Expand Down

0 comments on commit 491f57f

Please sign in to comment.