summaryrefslogtreecommitdiff
path: root/tools/perf/util/parse-events.c
diff options
context:
space:
mode:
authorAdrian Hunter <adrian.hunter@intel.com>2015-07-17 19:33:50 +0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2015-08-06 22:49:28 +0300
commit0efe6b67690b6546daa0d2f34a17eb3ca46c9dea (patch)
tree55795acedd7e8433dde154f13d15518424f75091 /tools/perf/util/parse-events.c
parent09ff607176ab2bf7e038150100fdf9290a6fbe47 (diff)
downloadlinux-0efe6b67690b6546daa0d2f34a17eb3ca46c9dea.tar.xz
perf tools: Validate config term maximum value
Currently the value of a PMU config term is silently truncated if it is too big. This is an impediment to validating the value for other criteria later on i.e. the user provides an invalid value that gets truncated to a valid one. The maximum value validation is only done for the parser where the error is passed back to the user. In other cases the silent truncation continues so as not to affect tools that perhaps rely on it. Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> Cc: Jiri Olsa <jolsa@redhat.com> Link: http://lkml.kernel.org/r/1437150840-31811-16-git-send-email-adrian.hunter@intel.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/parse-events.c')
0 files changed, 0 insertions, 0 deletions