From: Hendrik Brueckner Date: Thu, 12 Dec 2013 16:03:48 +0000 (+0100) Subject: s390/cpum_sf: Dynamically extend the sampling buffer if overflows occur X-Git-Tag: v3.14-rc1~184^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=69f239ed335a4b03265cae3ca930f3f166e42e35;p=pandora-kernel.git s390/cpum_sf: Dynamically extend the sampling buffer if overflows occur Improve the sampling buffer allocation and add a function to reallocate and increase the sampling buffer structure. The number of allocated buffer elements (sample-data-blocks) are accounted. You can control the minimum and maximum number these sample-data-blocks through the cpum_sfb_size kernel parameter. The number hardware sample overflows (if any) are also accounted and stored per perf event. During the PMU disable/enable calls, the accumulated overflow counter is analyzed and, if necessary, the sampling buffer is dynamically increased. Signed-off-by: Hendrik Brueckner Signed-off-by: Martin Schwidefsky --- Reading git-diff-tree failed