perf evlist: Add evlist__for_each_entry_from() macro
authorRiccardo Mancini <rickyman7@gmail.com>
Sat, 21 Aug 2021 09:19:33 +0000 (11:19 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 1 Sep 2021 14:24:43 +0000 (11:24 -0300)
commit79e7ed56d7e8899827d977d9dbd381b0ddb7a52a
tree7b532fc8b8276409282ff9a3a1b681d08c7d3059
parent28667a526980bd713ccd55e955e9a9a9c9bc7724
perf evlist: Add evlist__for_each_entry_from() macro

This patch adds a new iteration macro for evlist that resumes iteration
from a given evsel in the evlist.

This macro will be used in the workqueue series.

Signed-off-by: Riccardo Mancini <rickyman7@gmail.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lore.kernel.org/lkml/2386505f8b598adf0dbcd04ec21804c6bcf00826.1629490974.git.rickyman7@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/evlist.h