diff options
author | Tom Zanussi <tom.zanussi@linux.intel.com> | 2016-03-03 12:54:54 -0600 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2016-04-19 18:55:56 -0400 |
commit | 6a475cb17fe161dbde62eca7e4c2cf59edff182f (patch) | |
tree | fbefd55d805dc29787252361305f853ec2b3a4d3 /net/mpls/mpls_gso.c | |
parent | 79e577cbce4c4c2bf0d64ec315adb04eda40736b (diff) | |
download | blackbird-op-linux-6a475cb17fe161dbde62eca7e4c2cf59edff182f.tar.gz blackbird-op-linux-6a475cb17fe161dbde62eca7e4c2cf59edff182f.zip |
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 'net/mpls/mpls_gso.c')
0 files changed, 0 insertions, 0 deletions