linux-kselftest.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] KUnit-Kmemleak Integration
@ 2020-07-06 21:13 Uriel Guajardo
  2020-07-06 21:13 ` [PATCH 1/2] kunit: support kunit failures from debugging tools Uriel Guajardo
  2020-07-06 21:13 ` [PATCH 2/2] kunit: kmemleak integration Uriel Guajardo
  0 siblings, 2 replies; 9+ messages in thread
From: Uriel Guajardo @ 2020-07-06 21:13 UTC (permalink / raw)
  To: brendanhiggins, catalin.marinas, akpm
  Cc: changbin.du, rdunlap, masahiroy, 0x7f454c46, urielguajardo, krzk,
	kernel, linux-kselftest, kunit-dev, linux-mm

From: Uriel Guajardo <urielguajardo@google.com>

With these patches, KUnit can access and manually run kmemleak in every test
case. Any errors caught by kmemleak will cause the KUnit test to fail.

This patchset relies on "kunit: KASAN integration", which places the
currently running kunit test in task_struct. [1]

[1] https://lore.kernel.org/linux-kselftest/20200606040349.246780-2-davidgow@google.com

Uriel Guajardo (2):
  kunit: support kunit failures from debugging tools
  kunit: kmemleak integration

 include/kunit/test-bug.h | 15 +++++++++++++
 include/kunit/test.h     |  1 +
 include/linux/kmemleak.h | 11 ++++++++++
 lib/Kconfig.debug        | 26 +++++++++++++++++++++++
 lib/kunit/test.c         | 46 +++++++++++++++++++++++++++++++++++-----
 mm/kmemleak.c            | 27 +++++++++++++++++------
 6 files changed, 115 insertions(+), 11 deletions(-)
 create mode 100644 include/kunit/test-bug.h

-- 
2.27.0.212.ge8ba1cc988-goog


^ permalink raw reply	[flat|nested] 9+ messages in thread
* [PATCH 0/2] KUnit-Kmemleak Integration
@ 2020-07-06 21:03 Uriel Guajardo
  2020-07-06 21:03 ` [PATCH 2/2] kunit: kmemleak integration Uriel Guajardo
  0 siblings, 1 reply; 9+ messages in thread
From: Uriel Guajardo @ 2020-07-06 21:03 UTC (permalink / raw)
  To: brendanhiggins, catalin.marinas, akpm
  Cc: changbin.du, rdunlap, masahiroy, 0x7f454c46, urielguajardo, krzk,
	kernel, linux-kselftest, kunit-dev, linux-mm

From: Uriel Guajardo <urielguajardo@google.com>

With these patches, KUnit can access and manually run kmemleak in every test
case. Any errors caught by kmemleak will cause the KUnit test to fail.

This patchset relies on "kunit: KASAN integration", which places the
currently running kunit test in task_struct. [1]

[1] https://lore.kernel.org/linux-kselftest/20200606040349.246780-2-davidgow@google.com

Uriel Guajardo (2):
  kunit: support kunit failures from debugging tools
  kunit: kmemleak integration

 include/kunit/test-bug.h | 15 +++++++++++++
 include/kunit/test.h     |  1 +
 include/linux/kmemleak.h | 11 ++++++++++
 lib/Kconfig.debug        | 26 +++++++++++++++++++++++
 lib/kunit/test.c         | 46 +++++++++++++++++++++++++++++++++++-----
 mm/kmemleak.c            | 27 +++++++++++++++++------
 6 files changed, 115 insertions(+), 11 deletions(-)
 create mode 100644 include/kunit/test-bug.h

-- 
2.27.0.212.ge8ba1cc988-goog


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2020-07-07 19:34 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-07-06 21:13 [PATCH 0/2] KUnit-Kmemleak Integration Uriel Guajardo
2020-07-06 21:13 ` [PATCH 1/2] kunit: support kunit failures from debugging tools Uriel Guajardo
2020-07-06 21:13 ` [PATCH 2/2] kunit: kmemleak integration Uriel Guajardo
2020-07-06 21:39   ` Qian Cai
2020-07-06 22:48     ` Uriel Guajardo
2020-07-06 23:17       ` Qian Cai
2020-07-07 17:26         ` Uriel Guajardo
2020-07-07 19:34           ` Qian Cai
  -- strict thread matches above, loose matches on Subject: below --
2020-07-06 21:03 [PATCH 0/2] KUnit-Kmemleak Integration Uriel Guajardo
2020-07-06 21:03 ` [PATCH 2/2] kunit: kmemleak integration Uriel Guajardo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).