@@ -364,7 +364,7 @@ struct perf_event_mmap_page {
364
364
/*
365
365
* Bits needed to read the hw events in user-space.
366
366
*
367
- * u32 seq, time_mult, time_shift, idx , width;
367
+ * u32 seq, time_mult, time_shift, index , width;
368
368
* u64 count, enabled, running;
369
369
* u64 cyc, time_offset;
370
370
* s64 pmc = 0;
@@ -383,11 +383,11 @@ struct perf_event_mmap_page {
383
383
* time_shift = pc->time_shift;
384
384
* }
385
385
*
386
- * idx = pc->index;
386
+ * index = pc->index;
387
387
* count = pc->offset;
388
- * if (pc->cap_usr_rdpmc && idx ) {
388
+ * if (pc->cap_user_rdpmc && index ) {
389
389
* width = pc->pmc_width;
390
- * pmc = rdpmc(idx - 1);
390
+ * pmc = rdpmc(index - 1);
391
391
* }
392
392
*
393
393
* barrier();
@@ -415,7 +415,7 @@ struct perf_event_mmap_page {
415
415
};
416
416
417
417
/*
418
- * If cap_usr_rdpmc this field provides the bit-width of the value
418
+ * If cap_user_rdpmc this field provides the bit-width of the value
419
419
* read using the rdpmc() or equivalent instruction. This can be used
420
420
* to sign extend the result like:
421
421
*
@@ -439,10 +439,10 @@ struct perf_event_mmap_page {
439
439
*
440
440
* Where time_offset,time_mult,time_shift and cyc are read in the
441
441
* seqcount loop described above. This delta can then be added to
442
- * enabled and possible running (if idx ), improving the scaling:
442
+ * enabled and possible running (if index ), improving the scaling:
443
443
*
444
444
* enabled += delta;
445
- * if (idx )
445
+ * if (index )
446
446
* running += delta;
447
447
*
448
448
* quot = count / running;
0 commit comments