diff options
Diffstat (limited to 'kern/perfmon.c')
-rw-r--r-- | kern/perfmon.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/kern/perfmon.c b/kern/perfmon.c index e7a1dfd..156ec7a 100644 --- a/kern/perfmon.c +++ b/kern/perfmon.c @@ -15,16 +15,12 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. * - * Permormance Monitoring module. - * Provide an interface to monitor threads and/or cpu performances events. * - * Monitoring is handled through event groups (perfmon group). + * TODO Description. * * Locking order : interrupts -> thread runq -> grouplist -> group * - * TODO Interupt overflow handling. - * TODO Api to differenciate user and kernel events. - * TODO Test on multi-group events and multi-groups threads/cpus. + * TODO API to differenciate user and kernel events. */ #include <assert.h> @@ -129,6 +125,10 @@ struct perfmon_group { unsigned short type; }; +/* + * List of all groups attached to a single monitored object, either a CPU + * or a thread. + */ struct perfmon_grouplist { struct list groups; struct spinlock lock; @@ -480,9 +480,9 @@ perfmon_cpu_pmu_unload(struct perfmon_cpu_pmu *cpu_pmu, unsigned int pmc_index) } void -perfmon_handle_of_intr(struct trap_frame *frame) +perfmon_of_intr(void) { - pmu_driver.handle_of_intr(frame); + pmu_driver.handle_of_intr(); } int |