summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/string.c
diff options
context:
space:
mode:
authorDavid Ahern <dsa@cumulusnetworks.com>2016-11-29 18:15:41 +0100
committerArnaldo Carvalho de Melo <acme@redhat.com>2016-12-01 17:02:32 +0100
commitfdf9dc4b34f5f40919370c4601eccfd0db726aa5 (patch)
tree035673547bf98ad5bf0208421683e05c593c6070 /tools/perf/util/string.c
parentperf script: Add option to stop printing callchain (diff)
downloadlinux-fdf9dc4b34f5f40919370c4601eccfd0db726aa5.tar.xz
linux-fdf9dc4b34f5f40919370c4601eccfd0db726aa5.zip
perf tools: Add time-based utility functions
Add function to parse a user time string of the form <start>,<stop> where start and stop are time in sec.nsec format. Both start and stop times are optional. Add function to determine if a sample time is within a given time time window of interest. Signed-off-by: David Ahern <dsahern@gmail.com> Acked-by: Namhyung Kim <namhyung@kernel.org> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Link: http://lkml.kernel.org/r/1480439746-42695-2-git-send-email-dsahern@gmail.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/string.c')
0 files changed, 0 insertions, 0 deletions