From: Cyril Hrubis <chrubis@suse.cz>
To: Richard Palethorpe <rpalethorpe@suse.com>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] [PATCH 2/3] memcontrol02: Fix anon memory comparison
Date: Tue, 25 Jan 2022 12:54:29 +0100 [thread overview]
Message-ID: <Ye/k9bYtALTieq7B@yuki> (raw)
In-Reply-To: <Ye/kxq1oXnj5z1hd@yuki>
Hi!
> > All memory is being compared with the size malloc'ed instead of just
> > anon.
> >
> > Signed-off-by: Richard Palethorpe <rpalethorpe@suse.com>
> > ---
> > testcases/kernel/controllers/memcg/memcontrol02.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/testcases/kernel/controllers/memcg/memcontrol02.c b/testcases/kernel/controllers/memcg/memcontrol02.c
> > index 411f5aea6..0d144cf2d 100644
> > --- a/testcases/kernel/controllers/memcg/memcontrol02.c
> > +++ b/testcases/kernel/controllers/memcg/memcontrol02.c
> > @@ -68,7 +68,7 @@ static void alloc_anon_50M_check(void)
> >
> > TST_EXP_EXPR(anon > 0, "(memory.stat.anon=%zd) > 0", anon);
> > TST_EXP_EXPR(values_close(size, current, 3),
> > - "(size=%zd) ~= (memory.stat.anon=%zd)", size, current);
> > + "(size=%zd) ~= (memory.stat.anon=%zd)", size, anon);
>
> I do not get this, we compare size and current and then print anon?
>
> Should we just change the memory.stat.annon to memory.current instead?
Or did you forget to change the current in the values_close() to annon
as well?
--
Cyril Hrubis
chrubis@suse.cz
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next prev parent reply other threads:[~2022-01-25 11:52 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-24 17:36 [LTP] [PATCH 1/3] memcontrol02: Add VFAT/MSDOS magic and set error to 50% for it also Richard Palethorpe via ltp
2022-01-24 17:36 ` [LTP] [PATCH 2/3] memcontrol02: Fix anon memory comparison Richard Palethorpe via ltp
2022-01-25 11:53 ` Cyril Hrubis
2022-01-25 11:54 ` Cyril Hrubis [this message]
2022-01-25 14:19 ` Richard Palethorpe
2022-01-24 17:36 ` [LTP] [PATCH 3/3] memcontrol02: Increase expected error with increase in pagesize Richard Palethorpe via ltp
2022-01-25 14:58 ` Cyril Hrubis
2022-01-25 11:46 ` [LTP] [PATCH 1/3] memcontrol02: Add VFAT/MSDOS magic and set error to 50% for it also Cyril Hrubis
2022-01-25 14:49 ` [LTP] [PATCH v2 " Richard Palethorpe via ltp
2022-01-25 14:49 ` [LTP] [PATCH v2 2/3] memcontrol02: Fix anon memory comparison Richard Palethorpe via ltp
2022-01-25 15:31 ` Cyril Hrubis
2022-01-25 14:49 ` [LTP] [PATCH v2 3/3] memcontrol02: Increase expected error with increase in pagesize Richard Palethorpe via ltp
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Ye/k9bYtALTieq7B@yuki \
--to=chrubis@suse.cz \
--cc=ltp@lists.linux.it \
--cc=rpalethorpe@suse.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox