Skip to content

Commit 35d8d5d

Browse files
committed
Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull perf fixes from Thomas Gleixner: "Three fixlets for perf: - Return the proper error code if aux buffers for a event are not supported. - Calculate the probe offset for inlined functions correctly - Update the Skylake DTLB load/store miss event so it can count 1G TLB entries as well" * 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: perf probe: Fix probe definition for inlined functions perf/x86/intel: Add 1G DTLB load/store miss support for SKL perf/aux: Correct return code of rb_alloc_aux() if !has_aux(ev)
2 parents 1a8cca1 + 977282e commit 35d8d5d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

arch/x86/events/intel/core.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -431,11 +431,11 @@ static __initconst const u64 skl_hw_cache_event_ids
431431
[ C(DTLB) ] = {
432432
[ C(OP_READ) ] = {
433433
[ C(RESULT_ACCESS) ] = 0x81d0, /* MEM_INST_RETIRED.ALL_LOADS */
434-
[ C(RESULT_MISS) ] = 0x608, /* DTLB_LOAD_MISSES.WALK_COMPLETED */
434+
[ C(RESULT_MISS) ] = 0xe08, /* DTLB_LOAD_MISSES.WALK_COMPLETED */
435435
},
436436
[ C(OP_WRITE) ] = {
437437
[ C(RESULT_ACCESS) ] = 0x82d0, /* MEM_INST_RETIRED.ALL_STORES */
438-
[ C(RESULT_MISS) ] = 0x649, /* DTLB_STORE_MISSES.WALK_COMPLETED */
438+
[ C(RESULT_MISS) ] = 0xe49, /* DTLB_STORE_MISSES.WALK_COMPLETED */
439439
},
440440
[ C(OP_PREFETCH) ] = {
441441
[ C(RESULT_ACCESS) ] = 0x0,

kernel/events/ring_buffer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ int rb_alloc_aux(struct ring_buffer *rb, struct perf_event *event,
580580
int ret = -ENOMEM, max_order = 0;
581581

582582
if (!has_aux(event))
583-
return -ENOTSUPP;
583+
return -EOPNOTSUPP;
584584

585585
if (event->pmu->capabilities & PERF_PMU_CAP_AUX_NO_SG) {
586586
/*

tools/perf/util/probe-event.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ static int post_process_probe_trace_point(struct probe_trace_point *tp,
619619
struct map *map, unsigned long offs)
620620
{
621621
struct symbol *sym;
622-
u64 addr = tp->address + tp->offset - offs;
622+
u64 addr = tp->address - offs;
623623

624624
sym = map__find_symbol(map, addr);
625625
if (!sym)

0 commit comments

Comments
 (0)