• Ian Rogers's avatar
    perf unwind: Use function to add missing maps lock · 16f533ad
    Ian Rogers authored
    Switch read_unwind_spec_eh_frame() from loop macro
    maps__for_each_entry() to maps__for_each_map() function that takes a
    callback. The function holds the maps lock, which should be held during
    iteration.
    
    Committer notes:
    
    Fixed up conflict with:
    
      4fb54994 ("perf unwind-libunwind: Fix base address for .eh_frame")
    Signed-off-by: default avatarIan Rogers <irogers@google.com>
    Cc: Adrian Hunter <adrian.hunter@intel.com>
    Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
    Cc: Andi Kleen <ak@linux.intel.com>
    Cc: Athira Rajeev <atrajeev@linux.vnet.ibm.com>
    Cc: German Gomez <german.gomez@arm.com>
    Cc: James Clark <james.clark@arm.com>
    Cc: Jiri Olsa <jolsa@kernel.org>
    Cc: Kajol Jain <kjain@linux.ibm.com>
    Cc: Kan Liang <kan.liang@linux.intel.com>
    Cc: Leo Yan <leo.yan@linaro.org>
    Cc: Mark Rutland <mark.rutland@arm.com>
    Cc: Masami Hiramatsu <mhiramat@kernel.org>
    Cc: Namhyung Kim <namhyung@kernel.org>
    Cc: Nick Terrell <terrelln@fb.com>
    Cc: Paolo Bonzini <pbonzini@redhat.com>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Ravi Bangoria <ravi.bangoria@amd.com>
    Cc: Sandipan Das <sandipan.das@amd.com>
    Cc: Steinar H. Gunderson <sesse@google.com>
    Cc: Wenyu Liu <liuwenyu7@huawei.com>
    Cc: Yang Jihong <yangjihong1@huawei.com>
    Cc: changbin du <changbin.du@huawei.com>
    Cc: colin ian king <colin.i.king@gmail.com>
    Cc: dmitrii dolgov <9erthalion6@gmail.com>
    Cc: guilherme amadio <amadio@gentoo.org>
    Cc: huacai chen <chenhuacai@kernel.org>
    Cc: k prateek nayak <kprateek.nayak@amd.com>
    Cc: li dong <lidong@vivo.com>
    Cc: liam howlett <liam.howlett@oracle.com>
    Cc: miguel ojeda <ojeda@kernel.org>
    Cc: ming wang <wangming01@loongson.cn>
    Cc: sean christopherson <seanjc@google.com>
    Cc: vincent whitchurch <vincent.whitchurch@axis.com>
    Link: http://lore.kernel.org/lkml/20231207011722.1220634-12-irogers@google.comSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
    16f533ad
unwind-libunwind-local.c 19 KB