All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] LTP: '/proc/self/io' for reading at readahead02.c:113: ENOENT No such file or directory
@ 2019-01-15 11:24 Naresh Kamboju
  2019-01-15 11:33 ` Rafael David Tinoco
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Naresh Kamboju @ 2019-01-15 11:24 UTC (permalink / raw)
  To: ltp

readahead02 used to pass on arm32 on LTP-20180926 release. Now using
the latest LTP master it is getting FAILED.

tst_device.c:230: INFO: Using test device LTP_DEV='/dev/loop0'
tst_mkfs.c:90: INFO: Formatting /dev/loop0 with ext2 opts='' extra opts=''
mke2fs 1.43.5 (04-Aug-2017)
[  603.092608] EXT4-fs (loop0): mounting ext2 file system using the
ext4 subsystem
[  603.107967] EXT4-fs (loop0): mounted filesystem without journal. Opts: (null)
tst_test.c:1085: INFO: Timeout per run is 0h 15m 00s
readahead02.c:359: INFO: overlayfs is not configured in this kernel.
readahead02.c:244: INFO: Test #0: readahead on file
readahead02.c:134: INFO: creating test file of size: 67108864
safe_file_ops.c:202: BROK: Failed to open FILE '/proc/self/io' for
reading at readahead02.c:113: ENOENT

Best regards
Naresh Kamboju

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [LTP] LTP: '/proc/self/io' for reading at readahead02.c:113: ENOENT No such file or directory
  2019-01-15 11:24 [LTP] LTP: '/proc/self/io' for reading at readahead02.c:113: ENOENT No such file or directory Naresh Kamboju
@ 2019-01-15 11:33 ` Rafael David Tinoco
  2019-01-15 11:36 ` Jan Stancek
  2019-01-15 13:03 ` Cyril Hrubis
  2 siblings, 0 replies; 9+ messages in thread
From: Rafael David Tinoco @ 2019-01-15 11:33 UTC (permalink / raw)
  To: ltp

Naresh Kamboju <naresh.kamboju@linaro.org> wrote:

> readahead02 used to pass on arm32 on LTP-20180926 release. Now using
> the latest LTP master it is getting FAILED.
> 
> tst_device.c:230: INFO: Using test device LTP_DEV='/dev/loop0'
> tst_mkfs.c:90: INFO: Formatting /dev/loop0 with ext2 opts='' extra opts=''
> mke2fs 1.43.5 (04-Aug-2017)
> [  603.092608] EXT4-fs (loop0): mounting ext2 file system using the
> ext4 subsystem
> [  603.107967] EXT4-fs (loop0): mounted filesystem without journal. Opts: (null)
> tst_test.c:1085: INFO: Timeout per run is 0h 15m 00s
> readahead02.c:359: INFO: overlayfs is not configured in this kernel.
> readahead02.c:244: INFO: Test #0: readahead on file
> readahead02.c:134: INFO: creating test file of size: 67108864
> safe_file_ops.c:202: BROK: Failed to open FILE '/proc/self/io' for
> reading at readahead02.c:113: ENOENT
> 
> Best regards
> Naresh Kamboju

Naresh,

Commit 75506e4f1b52ea6bb63a52afb34035d9dde55d14 (syscalls/readahead02:
Simplify reading proc files) has added SAFE_FILE_LINES_SCANF() macro,
that is causing test to be BROKEN because it can’t find “/proc/self/io”.
IIRC, proc/self/io needs CONFIG_TASKSTATS to be enabled in kernel config
(looks like we are not enabling CONFIG_TASKSTATS in our config files for
beagle board, for example).

Looks like this test was passing by accident before, since there was no
/proc/self/io to be read in function get_bytes_read().

Cheers o/

Rafael
—
Rafael D. Tinoco
Linaro Kernel Validation

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [LTP] LTP: '/proc/self/io' for reading at readahead02.c:113: ENOENT No such file or directory
  2019-01-15 11:24 [LTP] LTP: '/proc/self/io' for reading at readahead02.c:113: ENOENT No such file or directory Naresh Kamboju
  2019-01-15 11:33 ` Rafael David Tinoco
@ 2019-01-15 11:36 ` Jan Stancek
  2019-01-15 11:42   ` Rafael David Tinoco
                     ` (2 more replies)
  2019-01-15 13:03 ` Cyril Hrubis
  2 siblings, 3 replies; 9+ messages in thread
From: Jan Stancek @ 2019-01-15 11:36 UTC (permalink / raw)
  To: ltp



----- Original Message -----
> readahead02 used to pass on arm32 on LTP-20180926 release. Now using
> the latest LTP master it is getting FAILED.
> 
> tst_device.c:230: INFO: Using test device LTP_DEV='/dev/loop0'
> tst_mkfs.c:90: INFO: Formatting /dev/loop0 with ext2 opts='' extra opts=''
> mke2fs 1.43.5 (04-Aug-2017)
> [  603.092608] EXT4-fs (loop0): mounting ext2 file system using the
> ext4 subsystem
> [  603.107967] EXT4-fs (loop0): mounted filesystem without journal. Opts:
> (null)
> tst_test.c:1085: INFO: Timeout per run is 0h 15m 00s
> readahead02.c:359: INFO: overlayfs is not configured in this kernel.
> readahead02.c:244: INFO: Test #0: readahead on file
> readahead02.c:134: INFO: creating test file of size: 67108864
> safe_file_ops.c:202: BROK: Failed to open FILE '/proc/self/io' for
> reading at readahead02.c:113: ENOENT

We switched from /proc/$pid to /proc/self in December:
  commit 75506e4f1b52ea6bb63a52afb34035d9dde55d14
  Date:   Tue Dec 4 14:54:19 2018 +0100
    syscalls/readahead02: Simplify reading proc files
   
    Use SAFE_FILE_LINES_SCANF() for parsing multiline /proc/ files
     Use /proc/self/io instead of /proc/$pid/io.

@Naresh, what is the kernel version you see this fail with?

> 
> Best regards
> Naresh Kamboju
> 
> --
> Mailing list info: https://lists.linux.it/listinfo/ltp
> 

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [LTP] LTP: '/proc/self/io' for reading at readahead02.c:113: ENOENT No such file or directory
  2019-01-15 11:36 ` Jan Stancek
@ 2019-01-15 11:42   ` Rafael David Tinoco
  2019-01-15 12:06     ` Rafael David Tinoco
  2019-01-15 11:43   ` Jan Stancek
  2019-01-15 12:08   ` Naresh Kamboju
  2 siblings, 1 reply; 9+ messages in thread
From: Rafael David Tinoco @ 2019-01-15 11:42 UTC (permalink / raw)
  To: ltp

> On 15 Jan 2019, at 09:36, Jan Stancek <jstancek@redhat.com> wrote:
> 
> ----- Original Message -----
>> readahead02 used to pass on arm32 on LTP-20180926 release. Now using
>> the latest LTP master it is getting FAILED.
>> 
>> tst_device.c:230: INFO: Using test device LTP_DEV='/dev/loop0'
>> tst_mkfs.c:90: INFO: Formatting /dev/loop0 with ext2 opts='' extra opts=''
>> mke2fs 1.43.5 (04-Aug-2017)
>> [  603.092608] EXT4-fs (loop0): mounting ext2 file system using the
>> ext4 subsystem
>> [  603.107967] EXT4-fs (loop0): mounted filesystem without journal. Opts:
>> (null)
>> tst_test.c:1085: INFO: Timeout per run is 0h 15m 00s
>> readahead02.c:359: INFO: overlayfs is not configured in this kernel.
>> readahead02.c:244: INFO: Test #0: readahead on file
>> readahead02.c:134: INFO: creating test file of size: 67108864
>> safe_file_ops.c:202: BROK: Failed to open FILE '/proc/self/io' for
>> reading at readahead02.c:113: ENOENT
> 
> We switched from /proc/$pid to /proc/self in December:
>  commit 75506e4f1b52ea6bb63a52afb34035d9dde55d14
>  Date:   Tue Dec 4 14:54:19 2018 +0100
>    syscalls/readahead02: Simplify reading proc files
> 
>    Use SAFE_FILE_LINES_SCANF() for parsing multiline /proc/ files
>     Use /proc/self/io instead of /proc/$pid/io.
> 
> @Naresh, what is the kernel version you see this fail with?

I missed /proc/$pid/io in my previous e-mail, so it is likely that
the only thing missing is CONFIG_TASKSTATS and CONFIG_TASK_IO_ACCOUNTING
to be set in kernel config for our builds. This shall enable
/proc/self/io and get rid of this error.

>> Best regards
>> Naresh Kamboju
>> 
>> --
>> Mailing list info: https://lists.linux.it/listinfo/ltp
> 
> -- 
> Mailing list info: https://lists.linux.it/listinfo/ltp



^ permalink raw reply	[flat|nested] 9+ messages in thread

* [LTP] LTP: '/proc/self/io' for reading at readahead02.c:113: ENOENT No such file or directory
  2019-01-15 11:36 ` Jan Stancek
  2019-01-15 11:42   ` Rafael David Tinoco
@ 2019-01-15 11:43   ` Jan Stancek
  2019-01-15 12:08   ` Naresh Kamboju
  2 siblings, 0 replies; 9+ messages in thread
From: Jan Stancek @ 2019-01-15 11:43 UTC (permalink / raw)
  To: ltp



----- Original Message -----
> 
> 
> ----- Original Message -----
> > readahead02 used to pass on arm32 on LTP-20180926 release. Now using
> > the latest LTP master it is getting FAILED.
> > 
> > tst_device.c:230: INFO: Using test device LTP_DEV='/dev/loop0'
> > tst_mkfs.c:90: INFO: Formatting /dev/loop0 with ext2 opts='' extra opts=''
> > mke2fs 1.43.5 (04-Aug-2017)
> > [  603.092608] EXT4-fs (loop0): mounting ext2 file system using the
> > ext4 subsystem
> > [  603.107967] EXT4-fs (loop0): mounted filesystem without journal. Opts:
> > (null)
> > tst_test.c:1085: INFO: Timeout per run is 0h 15m 00s
> > readahead02.c:359: INFO: overlayfs is not configured in this kernel.
> > readahead02.c:244: INFO: Test #0: readahead on file
> > readahead02.c:134: INFO: creating test file of size: 67108864
> > safe_file_ops.c:202: BROK: Failed to open FILE '/proc/self/io' for
> > reading at readahead02.c:113: ENOENT
> 
> We switched from /proc/$pid to /proc/self in December:
>   commit 75506e4f1b52ea6bb63a52afb34035d9dde55d14
>   Date:   Tue Dec 4 14:54:19 2018 +0100
>     syscalls/readahead02: Simplify reading proc files
>    
>     Use SAFE_FILE_LINES_SCANF() for parsing multiline /proc/ files
>      Use /proc/self/io instead of /proc/$pid/io.
> 
> @Naresh, what is the kernel version you see this fail with?

I see Rafael found possible explanation. get_bytes_read() wouldn't
loudly fail before commit above. Now it's using SAFE_ func, that
triggers TBROK if file doesn't exist.

> 
> > 
> > Best regards
> > Naresh Kamboju
> > 
> > --
> > Mailing list info: https://lists.linux.it/listinfo/ltp
> > 
> 
> --
> Mailing list info: https://lists.linux.it/listinfo/ltp
> 

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [LTP] LTP: '/proc/self/io' for reading at readahead02.c:113: ENOENT No such file or directory
  2019-01-15 11:42   ` Rafael David Tinoco
@ 2019-01-15 12:06     ` Rafael David Tinoco
  2019-01-15 12:29       ` Naresh Kamboju
  0 siblings, 1 reply; 9+ messages in thread
From: Rafael David Tinoco @ 2019-01-15 12:06 UTC (permalink / raw)
  To: ltp

> On 15 Jan 2019, at 09:36, Jan Stancek <jstancek@redhat.com> wrote:
> 
> ----- Original Message -----
>> readahead02 used to pass on arm32 on LTP-20180926 release. Now using
>> the latest LTP master it is getting FAILED.
>> 
>> tst_device.c:230: INFO: Using test device LTP_DEV='/dev/loop0'
>> tst_mkfs.c:90: INFO: Formatting /dev/loop0 with ext2 opts='' extra opts=''
>> mke2fs 1.43.5 (04-Aug-2017)
>> [  603.092608] EXT4-fs (loop0): mounting ext2 file system using the
>> ext4 subsystem
>> [  603.107967] EXT4-fs (loop0): mounted filesystem without journal. Opts:
>> (null)
>> tst_test.c:1085: INFO: Timeout per run is 0h 15m 00s
>> readahead02.c:359: INFO: overlayfs is not configured in this kernel.
>> readahead02.c:244: INFO: Test #0: readahead on file
>> readahead02.c:134: INFO: creating test file of size: 67108864
>> safe_file_ops.c:202: BROK: Failed to open FILE '/proc/self/io' for
>> reading at readahead02.c:113: ENOENT
> 
> We switched from /proc/$pid to /proc/self in December:
> commit 75506e4f1b52ea6bb63a52afb34035d9dde55d14
> Date:   Tue Dec 4 14:54:19 2018 +0100
>   syscalls/readahead02: Simplify reading proc files
> 
>   Use SAFE_FILE_LINES_SCANF() for parsing multiline /proc/ files
>    Use /proc/self/io instead of /proc/$pid/io.
> 
> @Naresh, what is the kernel version you see this fail with?

I missed /proc/$pid/io in my previous e-mail, as Jan stated. So the test
was likely working because of that.

So, the only thing missing might be CONFIG_TASKSTATS and
CONFIG_TASK_IO_ACCOUNTING to be set in kernel config for our arm 32-bit
builds.

This shall enable /proc/self/io and get rid of this error.

-Rafael

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [LTP] LTP: '/proc/self/io' for reading at readahead02.c:113: ENOENT No such file or directory
  2019-01-15 11:36 ` Jan Stancek
  2019-01-15 11:42   ` Rafael David Tinoco
  2019-01-15 11:43   ` Jan Stancek
@ 2019-01-15 12:08   ` Naresh Kamboju
  2 siblings, 0 replies; 9+ messages in thread
From: Naresh Kamboju @ 2019-01-15 12:08 UTC (permalink / raw)
  To: ltp

On Tue, 15 Jan 2019 at 17:06, Jan Stancek <jstancek@redhat.com> wrote:
>
>
>
> ----- Original Message -----
> > readahead02 used to pass on arm32 on LTP-20180926 release. Now using
> > the latest LTP master it is getting FAILED.
> >
> > tst_device.c:230: INFO: Using test device LTP_DEV='/dev/loop0'
> > tst_mkfs.c:90: INFO: Formatting /dev/loop0 with ext2 opts='' extra opts=''
> > mke2fs 1.43.5 (04-Aug-2017)
> > [  603.092608] EXT4-fs (loop0): mounting ext2 file system using the
> > ext4 subsystem
> > [  603.107967] EXT4-fs (loop0): mounted filesystem without journal. Opts:
> > (null)
> > tst_test.c:1085: INFO: Timeout per run is 0h 15m 00s
> > readahead02.c:359: INFO: overlayfs is not configured in this kernel.
> > readahead02.c:244: INFO: Test #0: readahead on file
> > readahead02.c:134: INFO: creating test file of size: 67108864
> > safe_file_ops.c:202: BROK: Failed to open FILE '/proc/self/io' for
> > reading at readahead02.c:113: ENOENT
>
> We switched from /proc/$pid to /proc/self in December:
>   commit 75506e4f1b52ea6bb63a52afb34035d9dde55d14
>   Date:   Tue Dec 4 14:54:19 2018 +0100
>     syscalls/readahead02: Simplify reading proc files
>
>     Use SAFE_FILE_LINES_SCANF() for parsing multiline /proc/ files
>      Use /proc/self/io instead of /proc/$pid/io.
>
> @Naresh, what is the kernel version you see this fail with?
@Jan Stancek , We are using Linux stable 4.20.1.

>
> >
> > Best regards
> > Naresh Kamboju
> >
> > --
> > Mailing list info: https://lists.linux.it/listinfo/ltp
> >

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [LTP] LTP: '/proc/self/io' for reading at readahead02.c:113: ENOENT No such file or directory
  2019-01-15 12:06     ` Rafael David Tinoco
@ 2019-01-15 12:29       ` Naresh Kamboju
  0 siblings, 0 replies; 9+ messages in thread
From: Naresh Kamboju @ 2019-01-15 12:29 UTC (permalink / raw)
  To: ltp

On Tue, 15 Jan 2019 at 17:36, Rafael David Tinoco
<rafael.tinoco@linaro.org> wrote:
>
> > On 15 Jan 2019, at 09:36, Jan Stancek <jstancek@redhat.com> wrote:
> >
> > ----- Original Message -----
> >> readahead02 used to pass on arm32 on LTP-20180926 release. Now using
> >> the latest LTP master it is getting FAILED.
> >>
> >> tst_device.c:230: INFO: Using test device LTP_DEV='/dev/loop0'
> >> tst_mkfs.c:90: INFO: Formatting /dev/loop0 with ext2 opts='' extra opts=''
> >> mke2fs 1.43.5 (04-Aug-2017)
> >> [  603.092608] EXT4-fs (loop0): mounting ext2 file system using the
> >> ext4 subsystem
> >> [  603.107967] EXT4-fs (loop0): mounted filesystem without journal. Opts:
> >> (null)
> >> tst_test.c:1085: INFO: Timeout per run is 0h 15m 00s
> >> readahead02.c:359: INFO: overlayfs is not configured in this kernel.
> >> readahead02.c:244: INFO: Test #0: readahead on file
> >> readahead02.c:134: INFO: creating test file of size: 67108864
> >> safe_file_ops.c:202: BROK: Failed to open FILE '/proc/self/io' for
> >> reading at readahead02.c:113: ENOENT
> >
> > We switched from /proc/$pid to /proc/self in December:
> > commit 75506e4f1b52ea6bb63a52afb34035d9dde55d14
> > Date:   Tue Dec 4 14:54:19 2018 +0100
> >   syscalls/readahead02: Simplify reading proc files
> >
> >   Use SAFE_FILE_LINES_SCANF() for parsing multiline /proc/ files
> >    Use /proc/self/io instead of /proc/$pid/io.
> >
> > @Naresh, what is the kernel version you see this fail with?
>
> I missed /proc/$pid/io in my previous e-mail, as Jan stated. So the test
> was likely working because of that.
>
> So, the only thing missing might be CONFIG_TASKSTATS and
> CONFIG_TASK_IO_ACCOUNTING to be set in kernel config for our arm 32-bit
> builds.

This explanation is useful thanks Jan and Rafael.

- Naresh

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [LTP] LTP: '/proc/self/io' for reading at readahead02.c:113: ENOENT No such file or directory
  2019-01-15 11:24 [LTP] LTP: '/proc/self/io' for reading at readahead02.c:113: ENOENT No such file or directory Naresh Kamboju
  2019-01-15 11:33 ` Rafael David Tinoco
  2019-01-15 11:36 ` Jan Stancek
@ 2019-01-15 13:03 ` Cyril Hrubis
  2 siblings, 0 replies; 9+ messages in thread
From: Cyril Hrubis @ 2019-01-15 13:03 UTC (permalink / raw)
  To: ltp

Hi!
Agree with Rafael here, the test was passing by accident.

Fixed in:

https://github.com/linux-test-project/ltp/commit/a78e15494bfdc6be68026031ee6d7abd1e7ae9f2

Now the test should report skipped status.

-- 
Cyril Hrubis
chrubis@suse.cz

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2019-01-15 13:03 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-15 11:24 [LTP] LTP: '/proc/self/io' for reading at readahead02.c:113: ENOENT No such file or directory Naresh Kamboju
2019-01-15 11:33 ` Rafael David Tinoco
2019-01-15 11:36 ` Jan Stancek
2019-01-15 11:42   ` Rafael David Tinoco
2019-01-15 12:06     ` Rafael David Tinoco
2019-01-15 12:29       ` Naresh Kamboju
2019-01-15 11:43   ` Jan Stancek
2019-01-15 12:08   ` Naresh Kamboju
2019-01-15 13:03 ` Cyril Hrubis

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.