Re: [LTP] numastats updates

2014-04-09 Thread Stanislav Kholmanskikh
On 04/08/2014 10:03 PM, Christoph Lameter wrote: > On Tue, 8 Apr 2014, Stanislav Kholmanskikh wrote: > >> Forgot to mention. This eight-node system has 8k pages, two-node - 4k pages. > > So they are not x86? There are some counter races on !x86. Yes. This is Linux on SPARC. > > -- > To unsubscr

[LTP] [PATCH v2 1/3] kernel/performance_counters: move tests to syscalls/perf_event_open directory.

2014-04-09 Thread Xiaoguang Wang
Performance_counter01 and performance_counter02 in kernel/performance_counters actually have tests on perf_event_open system call, so we move these two tests to syscalls/perf_event_open. Signed-off-by: Xiaoguang Wang --- testcases/kernel/Makefile | 1 - testcases/kerne

[LTP] [PATCH v2 2/3] perf_event_open/perf_event_open01.c: cleanup

2014-04-09 Thread Xiaoguang Wang
Create ltp-perf_event_open.m4 to determine whether struct perf_event_attr is defined in . And according to perf_event_open()'s manpage, the official way of knowing if perf_event_open() support is enabled is checking for the existence of the file /proc/sys/kernel/perf_event_paranoid, so add this ch

[LTP] [PATCH v2 3/3] perf_event_open/perf_event_open02.c: cleanup

2014-04-09 Thread Xiaoguang Wang
According to perf_event_open()'s manpage, the official way of knowing if perf_event_open() support is enabled is checking for the existence of the file /proc/sys/kernel/perf_event_paranoid, so add this check. According to this perf_event_open API description, rewrite this test. int perf_event_open

Re: [LTP] [PATCH 3/3] performance_counters: make performance_counters run default

2014-04-09 Thread Xiaoguang Wang
Hi, On 04/10/2014 01:04 AM, chru...@suse.cz wrote: > >> I tried to figure out how papi_avail gets the number of hardware counters, >> It seems that it just predefines some const values for >> specific cpus, but I am not very sure, I do not have much time to read the >> papi_library source code.

Re: [LTP] [PATCH 2/2] testcases/lib/misc.sh: add tst_fs_has_free function

2014-04-09 Thread Xiaoguang Wang
On 04/10/2014 01:06 AM, chru...@suse.cz wrote: > Hi! >> Ping :-) > You are in the queue :). I will have a look tomorrow, but I cannot > promise that the patch will get merged before next release which should > happen anytime soon. That's OK, thanks. Regards Xiaoguang Wang > -

Re: [LTP] [PATCH 2/2] testcases/lib/misc.sh: add tst_fs_has_free function

2014-04-09 Thread chrubis
Hi! > Ping :-) You are in the queue :). I will have a look tomorrow, but I cannot promise that the patch will get merged before next release which should happen anytime soon. -- Cyril Hrubis chru...@suse.cz -- Put Bad D

Re: [LTP] [PATCH 3/3] performance_counters: make performance_counters run default

2014-04-09 Thread chrubis
Hi! Hi! > The Number Hardware Counters is 7, But according to above ./perf_event_open02 > in RHEL7.0beta, the output is 5. > Whether two slots in PMU has been used, or the output of papi_avail is not > correct :-) . I would guess that these are used by kernel or system for something else. > I

Re: [LTP] [PATCH] lib/tst_uid_gid.c: fix checking return value errors about getpwuid_r/getgrgid_r

2014-04-09 Thread chrubis
Hi! > > Just to make it clear. Are you going to remove it by yourself? Or do you > > want me to prepare a patch for this? > > > > Actually, I would like the first option :) > > OK, I will remove them. And, done. -- Cyril Hrubis chru...@suse.cz

Re: [LTP] [PATCH] lib/tst_uid_gid.c: fix checking return value errors about getpwuid_r/getgrgid_r

2014-04-09 Thread chrubis
Hi! > >> Thank you very-very much. > >> > >> It's not bad that we included GET_UNUSED* in LTP. Maybe somebody someday > >> will need it for their purposes... :) > >> > > > > I'm personaly for removing any unused code because > > > > * you may readd it later when needed because it's in the git his

Re: [LTP] [PATCH] lib/tst_uid_gid.c: fix checking return value errors about getpwuid_r/getgrgid_r

2014-04-09 Thread Stanislav Kholmanskikh
On 04/09/2014 05:08 PM, chru...@suse.cz wrote: > Hi! >> >> Thank you very-very much. >> >> It's not bad that we included GET_UNUSED* in LTP. Maybe somebody someday >> will need it for their purposes... :) >> > > I'm personaly for removing any unused code because > > * you may readd it later whe

Re: [LTP] [PATCH] lib/tst_uid_gid.c: fix checking return value errors about getpwuid_r/getgrgid_r

2014-04-09 Thread chrubis
Hi! > > Thank you very-very much. > > It's not bad that we included GET_UNUSED* in LTP. Maybe somebody someday > will need it for their purposes... :) > I'm personaly for removing any unused code because * you may readd it later when needed because it's in the git history * there is a price

Re: [LTP] [PATCH] shm_open_23-1: modified memory protection attributes

2014-04-09 Thread chrubis
Hi! > POSIX doesn't state that if mmap() is given only PROT_WRITE, then > that memory region will have read access too. It's an implementation > issue of the platform. > > On a platform which don't imply read access when only PROT_WRITE is given, > such a situation happens: > 1) a child process

Re: [LTP] [PATCH v3] lib/tst_path_has_mnt_flags.c: create a function tst_path_has_mnt_flags()

2014-04-09 Thread chrubis
Hi! > This function looks OK for one testcase that needs to check for > OR logic between flags. I was thinking, whether we should change > this function to return number matched flags. That way we could > also check easily for AND logic (matches all flags) if we need > that in future. I was going

Re: [LTP] numastats updates

2014-04-09 Thread Christoph Lameter
On Tue, 8 Apr 2014, Stanislav Kholmanskikh wrote: > Forgot to mention. This eight-node system has 8k pages, two-node - 4k pages. So they are not x86? There are some counter races on !x86. -- Put Bad Developers to Shame

Re: [LTP] [Ltp-coverage] running LCOV/LTP on Beagle Bone Black - Cannot Allocate Memory Error

2014-04-09 Thread shinto . john
Hi Peter/Naresh,   good news!!   After Applying  the gcov 4.7 patches on kernel/gcov, and enabled CONFIG_GCOV_FORMAT_4_7 the issue with gcno is resolved. so it was due to the version incompatibility as you told.   now while running "lcov -c -o coverage.info", this runs for ~5 minutes without any i

Re: [LTP] numastats updates

2014-04-09 Thread Christoph Lameter
On Tue, 8 Apr 2014, Stanislav Kholmanskikh wrote: > On a two-node system it prints: > 1: 294 .. > 20: 294 > > i.e. everything is ok. > > But on an eight-node system: > 1: 173 > 2: 0 > 3: 0 > 4: 173 > 5: 173 > So in general we can't rely on stat_interval value. Correct? Owww... This could have

Re: [LTP] [Ltp-coverage] running LCOV/LTP on Beagle Bone Black - Cannot Allocate Memory Error

2014-04-09 Thread Peter Oberparleiter
On 09.04.2014 11:18, shinto.j...@smartplayin.com wrote: > now while running "lcov -c -o coverage.info", this runs for ~5 minutes > without any issues and then is stuck at this below*red *point for long > time and never exits. > > So i did ctrl-C and tried the "genhtml coverage.info -o out" and it

Re: [LTP] [PATCH v3] lib/tst_path_has_mnt_flags.c: create a function tst_path_has_mnt_flags()

2014-04-09 Thread Jan Stancek
- Original Message - > From: "gux fnst" > To: ltp-list@lists.sourceforge.net > Sent: Wednesday, 9 April, 2014 5:46:34 AM > Subject: [LTP] [PATCH v3] lib/tst_path_has_mnt_flags.c: create a function > tst_path_has_mnt_flags() > > Create a function tst_path_has_mnt_flags() for checking

Re: [LTP] [PATCH 2/2] testcases/lib/misc.sh: add tst_fs_has_free function

2014-04-09 Thread Xiaoguang Wang
Ping :-) Regards, Xiaoguang Wang On 03/21/2014 07:44 PM, Xiaoguang Wang wrote: > Create misc.sh to place miscellaneous functions, which will be > useful for tests written in shell but do not have a proper place > to place. > > Currenly add tst_fs_has_free(), which will check if the mounted > file

Re: [LTP] [PATCH 3/3] performance_counters: make performance_counters run default

2014-04-09 Thread Xiaoguang Wang
Hi, On 04/01/2014 07:58 PM, chru...@suse.cz wrote: > Hi! Make performance_counter01 run default. This performance_counter01 case is to use perf_event_open() to test hardware CPU events. Do not let performance_counter02 run defalult. This test need to know an upper bound on