commit | b31291ab6b9cce1229c4a3328f59fa7e703bd930 | [log] [tgz] |
---|---|---|
author | Mark Rutland <mark.rutland@arm.com> | Tue Aug 13 16:20:20 2019 +0100 |
committer | Mark Rutland <mark.rutland@arm.com> | Wed Aug 14 17:48:14 2019 +0100 |
tree | 569d9125d52e6588e25a08134e2d06982caf16a1 | |
parent | 2e72ec1bcb9ebf0d4b8095fd4b7632abc5e63e2b [diff] |
samples/kretprobe: correctly check for kthreads In general, a non-NULL current->mm doesn't imply that current is a kthread, as kthreads can install an mm via use_mm(), and so it's preferable to use is_kthread() to determine whether a thread is a kthread. For consistency, let's use is_kthread() here. Signed-off-by: Mark Rutland <mark.rutland@arm.com> Cc: Ingo Molnar <mingo@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Andrew Morton <akpm@linux-foundation.org>