tools/mm/page_owner_sort.c: fix TGID output when cull=tg is used
authorSteve Chou <steve_chou@pesi.com.tw>
Tue, 11 Apr 2023 03:49:28 +0000 (11:49 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Apr 2023 12:28:39 +0000 (14:28 +0200)
commitf6a5f61200ff0f41137b383812ae43898480ed69
treed11da13c3d5a91487c873dfe49a7b30fb45ad3f8
parenta0aa4827f79100e23b2614be155a7be5872748b7
tools/mm/page_owner_sort.c: fix TGID output when cull=tg is used

commit 9235756885e865070c4be2facda75262dbd85967 upstream.

When using cull option with 'tg' flag, the fprintf is using pid instead
of tgid. It should use tgid instead.

Link: https://lkml.kernel.org/r/20230411034929.2071501-1-steve_chou@pesi.com.tw
Fixes: 9c8a0a8e599f4a ("tools/vm/page_owner_sort.c: support for user-defined culling rules")
Signed-off-by: Steve Chou <steve_chou@pesi.com.tw>
Cc: Jiajian Ye <yejiajian2018@email.szu.edu.cn>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/vm/page_owner_sort.c