summaryrefslogtreecommitdiff
path: root/kernel/trace/trace.h
diff options
context:
space:
mode:
authorTom Zanussi <tom.zanussi@linux.intel.com>2016-03-03 18:54:54 (GMT)
committerSteven Rostedt <rostedt@goodmis.org>2016-04-19 22:55:56 (GMT)
commit6a475cb17fe161dbde62eca7e4c2cf59edff182f (patch)
treefbefd55d805dc29787252361305f853ec2b3a4d3 /kernel/trace/trace.h
parent79e577cbce4c4c2bf0d64ec315adb04eda40736b (diff)
downloadlinux-6a475cb17fe161dbde62eca7e4c2cf59edff182f.tar.xz
tracing: Remove restriction on string position in hist trigger keys
If we assume the maximum size for a string field, we don't have to worry about its position. Since we only allow two keys in a compound key and having more than one string key in a given compound key doesn't make much sense anyway, trading a bit of extra space instead of introducing an arbitrary restriction makes more sense. We also need to use the event field size for static strings when copying the contents, otherwise we get random garbage in the key. Also, cast string return values to avoid warnings on 32-bit compiles. Finally, rearrange the code without changing any functionality by moving the compound key updating code into a separate function. Link: http://lkml.kernel.org/r/8976e1ab04b66bc2700ad1ed0768a2de85ac1983.1457029949.git.tom.zanussi@linux.intel.com Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com> Tested-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com> Reviewed-by: Namhyung Kim <namhyung@kernel.org> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace.h')
0 files changed, 0 insertions, 0 deletions