2021-09-14 04:26:52

by Imran Khan

[permalink] [raw]
Subject: [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(-)

--
2.30.2