Re: [GIT PULL 0/5] perf/urgent fixes

From: Ingo Molnar
Date: Wed Sep 11 2013 - 01:55:38 EST



Hm, after this pull request, 'perf top' started misbehaving on older
kernels:

ââError:âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
âThe sys_perf_event_open() syscall returned with 22 (Invalid argument) for event (cycles). â
â/bin/dmesg may provide additional information. â
âNo CONFIG_PERF_EVENTS=y kernel support configured? â

But:

$ cat /proc/sys/kernel/perf_event_paranoid
-1

The syscall really fails:

16645 perf_event_open(0x1eb7f00, 0xffffffff, 0, 0xffffffff, 0) = -1 EINVAL (Invalid argument)
16645 perf_event_open(0x1eb7f00, 0xffffffff, 0, 0xffffffff, 0) = -1 EINVAL (Invalid argument)
16645 perf_event_open(0x1eb7f00, 0xffffffff, 0, 0xffffffff, 0) = -1 EINVAL (Invalid argument)

Caused by:

575a9aab0f85 perf tools: Add attr->mmap2 support

We must not force mmap2 support to be present on the kernel side - new
perf top should work on older kernels just as well.

So I've unpulled the tree for now.

Thanks,

Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/