diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-10-31 17:01:47 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-10-31 17:01:47 -0400 |
| commit | 5656b408ff2696551c0f572689edcad3113e3a32 (patch) | |
| tree | 100c6e62acb6d3672763a1160c5ef54e634a91f6 /include/uapi | |
| parent | c958f9200fb48d092b17d3784168e4a6c56bbddc (diff) | |
| parent | d785452c9972fac2808479eb561d5c426b6e7d3b (diff) | |
Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull perf fixes from Ingo Molnar:
"Mostly tooling fixes, plus on the kernel side:
- a revert for a newly introduced PMU driver which isn't complete yet
and where we ran out of time with fixes (to be tried again in
v3.19) - this makes up for a large chunk of the diffstat.
- compilation warning fixes
- a printk message fix
- event_idx usage fixes/cleanups"
* 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
perf probe: Trivial typo fix for --demangle
perf tools: Fix report -F dso_from for data without branch info
perf tools: Fix report -F dso_to for data without branch info
perf tools: Fix report -F symbol_from for data without branch info
perf tools: Fix report -F symbol_to for data without branch info
perf tools: Fix report -F mispredict for data without branch info
perf tools: Fix report -F in_tx for data without branch info
perf tools: Fix report -F abort for data without branch info
perf tools: Make CPUINFO_PROC an array to support different kernel versions
perf callchain: Use global caching provided by libunwind
perf/x86/intel: Revert incomplete and undocumented Broadwell client support
perf/x86: Fix compile warnings for intel_uncore
perf: Fix typos in sample code in the perf_event.h header
perf: Fix and clean up initialization of pmu::event_idx
perf: Fix bogus kernel printk
perf diff: Add missing hists__init() call at tool start
Diffstat (limited to 'include/uapi')
| -rw-r--r-- | include/uapi/linux/perf_event.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/include/uapi/linux/perf_event.h b/include/uapi/linux/perf_event.h index 9269de254874..9d845404d875 100644 --- a/include/uapi/linux/perf_event.h +++ b/include/uapi/linux/perf_event.h | |||
| @@ -364,7 +364,7 @@ struct perf_event_mmap_page { | |||
| 364 | /* | 364 | /* |
| 365 | * Bits needed to read the hw events in user-space. | 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 | * u64 count, enabled, running; | 368 | * u64 count, enabled, running; |
| 369 | * u64 cyc, time_offset; | 369 | * u64 cyc, time_offset; |
| 370 | * s64 pmc = 0; | 370 | * s64 pmc = 0; |
| @@ -383,11 +383,11 @@ struct perf_event_mmap_page { | |||
| 383 | * time_shift = pc->time_shift; | 383 | * time_shift = pc->time_shift; |
| 384 | * } | 384 | * } |
| 385 | * | 385 | * |
| 386 | * idx = pc->index; | 386 | * index = pc->index; |
| 387 | * count = pc->offset; | 387 | * count = pc->offset; |
| 388 | * if (pc->cap_usr_rdpmc && idx) { | 388 | * if (pc->cap_user_rdpmc && index) { |
| 389 | * width = pc->pmc_width; | 389 | * width = pc->pmc_width; |
| 390 | * pmc = rdpmc(idx - 1); | 390 | * pmc = rdpmc(index - 1); |
| 391 | * } | 391 | * } |
| 392 | * | 392 | * |
| 393 | * barrier(); | 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 | * read using the rdpmc() or equivalent instruction. This can be used | 419 | * read using the rdpmc() or equivalent instruction. This can be used |
| 420 | * to sign extend the result like: | 420 | * to sign extend the result like: |
| 421 | * | 421 | * |
| @@ -439,10 +439,10 @@ struct perf_event_mmap_page { | |||
| 439 | * | 439 | * |
| 440 | * Where time_offset,time_mult,time_shift and cyc are read in the | 440 | * Where time_offset,time_mult,time_shift and cyc are read in the |
| 441 | * seqcount loop described above. This delta can then be added to | 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 | * enabled += delta; | 444 | * enabled += delta; |
| 445 | * if (idx) | 445 | * if (index) |
| 446 | * running += delta; | 446 | * running += delta; |
| 447 | * | 447 | * |
| 448 | * quot = count / running; | 448 | * quot = count / running; |
