tag name | perf-core-for-mingo-20160525 (b4efc3c33a39d72901fed2f62acb0b9da68ebbab) |
tag date | 2016-05-25 17:30:19 -0300 |
tagged by | Arnaldo Carvalho de Melo <acme@redhat.com> |
tagged object | commit 83e1e314ba... |
perf/core improvements and fixes:
User visible/kernel ABI:
- Per event callchain limit: Recently we introduced a sysctl to tune the
max-stack for all events for which callchains were requested:
$ sysctl kernel.perf_event_max_stack
kernel.perf_event_max_stack = 127
Now this patch introduces a way to configure this per event, i.e. this
becomes possible:
$ perf record -e sched:*/max-stack=2/ -e block:*/max-stack=10/ -a
allowing finer tuning of how much buffer space callchains use.
This uses an u16 from the reserved space at the end, leaving another
u16 for future use.
There has been interest in even finer tuning, namely to control the
max stack for kernel and userspace callchains separately. Further
discussion is needed, we may for instance use the remaining u16 for
that and when it is present, assume that the sample_max_stack introduced
in this patch applies for the kernel, and the u16 left is used for
limiting the userspace callchain. (Arnaldo Carvalho de Melo)
- Fix kptr_restrict=2 related 'perf record' segfault (Wang Nan)
Infrastructure;
- Adopt get_main_thread from db-export.c (Andi Kleen)
- More prep work for backward ring buffer support (Wang Nan)
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iQIcBAABCAAGBQJXRg6TAAoJENZQFvNTUqpABgkP/1bGqUXA7j224mkE6jpY5DYm
uAIl6mRk1ZUl2Gm6l+kN6UmsRS/MnbAYENnrCZJxWtq3C8HYaYfn/Wpi2eZzX+q8
n5HzUps7a8Of+K9aug4fzV+G55mSkFH50NKEdq/rRD+QossTP8o4/Bj3/7R0xC4i
nEJvZOuuqM+COZQ29fYgAXNMMhzfspOvOBeTv0kfuEqmuIqIPMxqmZMKYGwH+Tij
QNpEMzCwUupND6B3/sfy7+nKpveGsikPva8QfaE5k4ii0NCx9Zqpty0EO6Fo6p1L
uoxtBazjYaPgSBkM16L83yDE0LkUoT5EdNbkdnu/J9om2Jot9/knKxi60yGOxHGn
sf2d0xrQ9nCHQ6KIHsf+g7Ck4LefNsz7+hyG2m/7jZLYhAtOlztE6Fe7W0VuhdE3
ASdeZyFWKQV138DW1B15XE56+t7tjUXdpCT+o8ZxqfvVhQSYfYGm/TLY//islela
bUOmEm9OQmh/KiAvKaGkdMhEEa60JAWPp8QBxGT19H8TPJYF6T/zeLmfAVteEy+r
l3ZRKc9sWW4+03JJ6FV3+JS3u+zL+taY0dWuRCzdV3+eTvMu4dfQ4TBkxlteozO7
ZPCyTK4RQMTUme5W8tftjmGNd2fe/AnSLxgpoYGX9w535OjaDdWbQZTe53uMmXbX
624UGxXJLaIg2Jlvvvpx
=xJpT
-----END PGP SIGNATURE-----