]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
perf annotate: Defer searching for comma in raw line till it is needed
authorArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 23 Mar 2018 13:57:08 +0000 (10:57 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 23 Mar 2018 19:46:19 +0000 (16:46 -0300)
commitc448234cfe46ec5abc0014dca8b3b49989bffe9e
treed6b22391f3e67bc9c8b94b57b085fac4d49487da
parente4cc91b8027dbbb8a1f7c24cdecf58cd0b50375f
perf annotate: Defer searching for comma in raw line till it is needed

That strchr() in jump__scnprintf() needs to be nuked somehow, as it,
IIRC is already done in jump__parse() and if needed at scnprintf() time,
should be stashed in the struct filled in parse() time.

For now jus defer it to just before where it is used.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jin Yao <yao.jin@linux.intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: https://lkml.kernel.org/n/tip-j0t5hagnphoz9xw07bh3ha3g@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/annotate.c