Skip to content

lib, stackdepot: Add helper to print stack entries into buffer.

Imran Khan dri-devel intel-gfx linux-mm lkml 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest1 patch 0 repliesNew
  2. v11 patch 5 repliesSuperseded

Changes in v2 from the cover letter

- Addressed review comment.
- Added Acked from Vlastimil.
- Fixed one mistake, due to which stack_trace_snprint was always getting invoked with 0 as space value.
Changed it to make use of space argument, because users that are printing stack entries into buffer, may intend to specify indentation as well.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1lib, stackdepot: Add helper to print stack entries into buffer.drivers/gpu/drm/drm_dp_mst_topology.c drivers/gpu/drm/drm_mm.c drivers/gpu/drm/i915/i915_vma.c +4 more+36 -310 replies

Reviews trailers per patch

The patch has a Reviewed-by or Acked-by.

PatchVlastimil Babka
1/1A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/1] lib, stackdepot: Add helper to print stack entries into buffer.

Changes in v2:
- Addressed review comment.
- Added Acked from Vlastimil.
- Fixed one mistake, due to which stack_trace_snprint was always getting invoked with 0 as space value.
Changed it to make use of space argument, because users that are printing stack entries into buffer, may intend to specify indentation as well.

I also observed build error reported at [4]. This is happening due to failure in cherry-picking this patch and this happens because the earlier patches (mentioned in original cover lette), are not there in the tree.

Please let me know, if it would be better if I send earlier patches with this change as well. I can resend those patches keeping the Acked-by and Reviewed-by tags, obtained in those patches.

[4] https://urldefense.com/v3/__https://patchwork.freedesktop.org/series/94553/__;!!ACWV5N9M2RV99hQ!f4tVsbn8O3mxUrGV-8udpN7kFqqQ84bFeSgkqV0aOmatwAJStZV0dkai1xkpsOSDpQ$

Original cover letter
----------------------
This change is in response to discussion at [1].
The patch has been created on top of my earlier changes [2] and [3]. If needed I can resend all of these patches together, though my earlier patches have been Acked.

[1] https://lore.kernel.org/lkml/[email protected]/
[2] https://lore.kernel.org/lkml/[email protected]/
[3] https://lore.kernel.org/lkml/[email protected]/

Imran Khan (1):
lib, stackdepot: Add helper to print stack entries into buffer.

 drivers/gpu/drm/drm_dp_mst_topology.c   |  5 +----
 drivers/gpu/drm/drm_mm.c                |  5 +----
 drivers/gpu/drm/i915/i915_vma.c         |  5 +----
 drivers/gpu/drm/i915/intel_runtime_pm.c | 20 +++++---------------
 include/linux/stackdepot.h              |  3 +++
 lib/stackdepot.c                        | 24 ++++++++++++++++++++++++
 mm/page_owner.c                         |  5 +----
 7 files changed, 36 insertions(+), 31 deletions(-)
Signature · 1 line
2.30.2