public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: yangxiao <yangx.jy@cn.fujitsu.com>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH] controllers/cpuacct: add kernel version check
Date: Fri, 20 Nov 2015 11:10:03 +0800	[thread overview]
Message-ID: <564E8F0B.5090208@cn.fujitsu.com> (raw)
In-Reply-To: <20151119120501.GC28969@rei.lan>

Hi !
> Hi!
>>   	tst_require_root
>>
>> +	tst_kvercmp 2 6 30
>> +	if [ $? -eq 0 ]; then
>> +		tst_brkm TCONF "Test should be run with kernel 2.6.30 or newer"
>> +	fi
> Can we do 'grep -q cpuacct /proc/cgroups' to figure out if it's
> supported instead?
>
Thanks, I will rewirte it as what you suggested.

  reply	other threads:[~2015-11-20  3:10 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-19  9:49 [LTP] [PATCH] controllers/cpuacct: add kernel version check Xiao Yang
2015-11-19 12:05 ` Cyril Hrubis
2015-11-20  3:10   ` yangxiao [this message]
2015-11-20  5:36   ` [LTP] [PATCH v2] controllers/cpuacct: add cpuacct availability check Xiao Yang
2015-11-24 13:02     ` Cyril Hrubis

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=564E8F0B.5090208@cn.fujitsu.com \
    --to=yangx.jy@cn.fujitsu.com \
    --cc=ltp@lists.linux.it \
    /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