From: Robert Richter Date: Thu, 16 Aug 2012 19:10:17 +0000 (+0200) Subject: perf tools: Fix type for evsel->ids and add size check for ids X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~97^2~31^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f4d834367cda98eee3769638da6ad687607c74e6;p=pandora-kernel.git perf tools: Fix type for evsel->ids and add size check for ids Use same type for ids everywhere. In case of writing to perf.data the size is u32. In pipe mode it is limited to header.size (less than u16). Adding a size check here. Size overflow due to casting shouldn't actually happen in practice, but during development this may cause type missmatch warninngs/errors, unifying types avoids this. Signed-off-by: Robert Richter Cc: Ingo Molnar Cc: Jiri Olsa Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/1345144224-27280-2-git-send-email-robert.richter@amd.com Signed-off-by: Arnaldo Carvalho de Melo --- Reading git-diff-tree failed