1. 11 Jul, 2023 3 commits
    • Arnaldo Carvalho de Melo's avatar
      tools headers UAPI: Sync drm/i915_drm.h with the kernel sources · 142256d2
      Arnaldo Carvalho de Melo authored
        81b1b599 ("drm/i915: Allow user to set cache at BO creation")
        98d2722a ("drm/i915/huc: differentiate the 2 steps of the MTL HuC auth flow")
        bc4be0a3 ("drm/i915/pmu: Prepare for multi-tile non-engine counters")
        d1da138f ("drm/i915/uapi/pxp: Add a GET_PARAM for PXP")
      
      That adds some ioctls but use the __I915_PMU_OTHER() macro, not
      supported yet in the tools/perf/trace/beauty/drm_ioctl.sh conversion
      script.
      
      This silences this perf build warning:
      
        Warning: Kernel ABI header differences:
          diff -u tools/include/uapi/drm/i915_drm.h include/uapi/drm/i915_drm.h
      
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Alan Previn <alan.previn.teres.alexis@intel.com>
      Cc: Andi Shyti <andi.shyti@linux.intel.com>
      Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
      Cc: Fei Yang <fei.yang@intel.com>
      Cc: Ian Rogers <irogers@google.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Radhakrishna Sripada <radhakrishna.sripada@intel.com>
      Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
      Cc: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
      Link: https://lore.kernel.org/lkml/ZK1R%2FIyWcUKYQbQV@kernel.org/Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      142256d2
    • Georg Müller's avatar
      perf probe: Read DWARF files from the correct CU · c66e1c68
      Georg Müller authored
      After switching from dwarf_decl_file() to die_get_decl_file(), it is not
      possible to add probes for certain functions:
      
        $ perf probe -x /usr/lib/systemd/systemd-logind match_unit_removed
        A function DIE doesn't have decl_line. Maybe broken DWARF?
        A function DIE doesn't have decl_line. Maybe broken DWARF?
        Probe point 'match_unit_removed' not found.
           Error: Failed to add events.
      
      The problem is that die_get_decl_file() uses the wrong CU to search for
      the file. elfutils commit e1db5cdc9f has some good explanation for this:
      
          dwarf_decl_file uses dwarf_attr_integrate to get the DW_AT_decl_file
          attribute. This means the attribute might come from a different DIE
          in a different CU. If so, we need to use the CU associated with the
          attribute, not the original DIE, to resolve the file name.
      
      This patch uses the same source of information as elfutils: use attribute
      DW_AT_decl_file and use this CU to search for the file.
      
      Fixes: dc9a5d2c ("perf probe: Fix to get declared file name from clang DWARF5")
      Signed-off-by: default avatarGeorg Müller <georgmueller@gmx.net>
      Acked-by: default avatarMasami Hiramatsu (Google) <mhiramat@kernel.org>
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Ian Rogers <irogers@google.com>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: regressions@lists.linux.dev
      Cc: stable@vger.kernel.org
      Link: https://lore.kernel.org/r/20230628084551.1860532-6-georgmueller@gmx.netSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      c66e1c68
    • Georg Müller's avatar
      perf probe: Add test for regression introduced by switch to die_get_decl_file() · 56cbeacf
      Georg Müller authored
      This patch adds a test to validate that 'perf probe' works for binaries
      where DWARF info is split into multiple CUs
      Signed-off-by: default avatarGeorg Müller <georgmueller@gmx.net>
      Acked-by: default avatarMasami Hiramatsu (Google) <mhiramat@kernel.org>
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Ian Rogers <irogers@google.com>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: regressions@lists.linux.dev
      Cc: stable@vger.kernel.org
      Link: https://lore.kernel.org/r/20230628084551.1860532-5-georgmueller@gmx.netSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      56cbeacf
  2. 10 Jul, 2023 2 commits
  3. 09 Jul, 2023 10 commits
  4. 08 Jul, 2023 25 commits