On Fri, May 15, 2020 at 9:50 AM Ian Rogers <irogers@xxxxxxxxxx> wrote: > > Allow use of hashmap in perf. Modify perf's check-headers.sh script to > check that the files are kept in sync, in the same way kernel headers are > checked. This will warn if they are out of sync at the start of a perf > build. > > Signed-off-by: Ian Rogers <irogers@xxxxxxxxxx> > --- Given you want to make sure they stay 1 to 1, would just creating a symlink work instead of copying the code? Either way, I think hashmap is stable and not going to change frequently, so whichever way is fine with me. Acked-by: Andrii Nakryiko <andriin@xxxxxx> > tools/perf/check-headers.sh | 4 + > tools/perf/util/Build | 4 + > tools/perf/util/hashmap.c | 238 ++++++++++++++++++++++++++++++++++++ > tools/perf/util/hashmap.h | 177 +++++++++++++++++++++++++++ > 4 files changed, 423 insertions(+) > create mode 100644 tools/perf/util/hashmap.c > create mode 100644 tools/perf/util/hashmap.h > [...]