Kernel coverage OS11.4 ?

Hi,

I have searched a bit and I can not find a way to make kernel-coverage work.
I would really like to have a kernel pic of the current instal has this machine will be re-installed with the new 12.2.

Anyone ever made Kernel-coverage work and got the picture on OS 11.4 64 bits ?

Regards.

On Wed 19 Dec 2012 03:36:01 PM CST, keyb user wrote:

Hi,

I have searched a bit and I can not find a way to make kernel-coverage
work.
I would really like to have a kernel pic of the current instal has this
machine will be re-installed with the new 12.2.

Anyone ever made Kernel-coverage work and got the picture on OS 11.4 64
bits ?

Regards.

Hi
Does this help?
http://old-en.opensuse.org/LTP_Kernel_Coverage


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 12.2 (x86_64) Kernel 3.4.11-2.16-desktop
up 1 day 22:33, 3 users, load average: 0.20, 0.14, 0.08
CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU

Nope.
Not a bit.

I have seen that before.
lcov does not work.
The make command runs perfectly on OS11.4 64 bits but takes a Huge time to stop, about 14 hours on my q9550 …
And then the final image.ps is empty …

There are no error messages whatsoever.

Regards.

On Wed 19 Dec 2012 11:06:01 PM CST, keyb user wrote:

malcolmlewis;2511985 Wrote:
> Hi
> Does this help?
> ‘LTP Kernel Coverage - openSUSE’
> (http://old-en.opensuse.org/LTP_Kernel_Coverage)
>
> –
> Cheers Malcolm °¿° (Linux Counter #276890)
> openSUSE 12.2 (x86_64) Kernel 3.4.11-2.16-desktop
> up 1 day 22:33, 3 users, load average: 0.20, 0.14, 0.08
> CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU

Nope.
Not a bit.

I have seen that before.
lcov does not work.
The make command runs perfectly on OS11.4 64 bits but takes a Huge time
to stop, about 14 hours on my q9550 …
And then the final image.ps is empty …

There are no error messages whatsoever.

Regards.

Hi
Doesn’t sound right, the README (You have read this too?) says about
30mins on 400Mhz celeron…

Or which specific command in the README isn’t working?


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 12.2 (x86_64) Kernel 3.4.11-2.16-desktop
up 2 days 5:36, 4 users, load average: 0.03, 0.04, 0.05
CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU

Hi,

README ??? Why bother with those pesky details … :slight_smile: ??

(just kidding, I read the readme).

the main command :
when we issue the

sudo make kernel=/sr/src/linux-<version>

It does not give any error, it runs like hell all the time listing every possible kernel file from drivers to the more inner timmers related stuff …
But in the end the image.ps file, about 20MB, can not be opened with any ps editor or viewer ?!?
And the final step to make the poster, posterize also does not even output Any type of gz file as advertized on the readme.
If you ask me … “It ain’t workin” …

Regards.

On Thu 20 Dec 2012 03:46:01 PM CST, keyb user wrote:

Hi,

malcolmlewis;2512049 Wrote:
> Hi
> Doesn’t sound right, the README (You have read this too?) says about
> 30mins on 400Mhz celeron…
>
> Or which specific command in the README isn’t working?
>
> –
> Cheers Malcolm °¿° (Linux Counter #276890)
> openSUSE 12.2 (x86_64) Kernel 3.4.11-2.16-desktop
> up 2 days 5:36, 4 users, load average: 0.03, 0.04, 0.05
> CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU

README ??? Why bother with those pesky details … :slight_smile: ??

(just kidding, I read the readme).

the main command :
when we issue the

Code:

sudo make kernel=/sr/src/linux-<version>

It does not give any error, it runs like hell all the time listing
every possible kernel file from drivers to the more inner timmers
related stuff …
But in the end the image.ps file, about 20MB, can not be opened with
any ps editor or viewer ?!?
And the final step to make the poster, posterize also does not even
output Any type of gz file as advertized on the readme.
If you ask me … “It ain’t workin” …

Regards.

Hi
Sounds like it…!!! BTW if you use the -jN (N=cpus) option after the
make command, it should parallel build? Tweak the makefile so it only
build part of the coverage map to see if errors can be isolated?

Or manually run through the commands in the makefile to try and
isolate where the errors are

Maybe raise a bug?

I also wonder if an old 2.6.x kernel source is downloaded and run
against if that works?

Finally, you don’t need to run as super user (sudo) to use make…


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 12.2 (x86_64) Kernel 3.4.11-2.16-desktop
up 3 days 2:40, 3 users, load average: 0.28, 0.26, 0.17
CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU

Hi,

  • Kernel sources are installed
  • you must make sudo in order to have permissions to write the many many .ps files on the /usr/lib/kernel-coverage dir.
  • -jN option (in my case -j4) does not help. Any script command to run parallel always depends on the Software that is actually being executed. In this case Analyzing one by one every Kernel file is not a parallel process.
  • There are no errors in the entire output.

I really think the problem here is the output .ps files … none of them opens in any ps editor or viewer. So they are not output .ps files. something must be very wrong on the format of those files.

Regards.

On 12/21/2012 02:36 PM, keyb user wrote:
> - you must make sudo in order to have permissions to write the many
> many .ps files on the /usr/lib/kernel-coverage dir.

then something is wrong with the source!

you should always (see footnote) run make as a user and then ‘make
install’ as root (or as user if you want it installed just for the user
running ‘make install’ (that is, only need to run ‘make install’ if you
want all users on the machine to access the app… (been that way since
way last century)

always unless someone builds an app wrongly.


dd

On 2012-12-21 20:58, dd wrote:
> On 12/21/2012 02:36 PM, keyb user wrote:
>> - you must make sudo in order to have permissions to write the many
>> many .ps files on the /usr/lib/kernel-coverage dir.
>
> then something is wrong with the source!

No, nothing is wrong, this is how kernel sources are distributed. They
are made to be used by root. To use them as plain user you have to
previously chown or chmod the entire tree, and this is not documented.


Cheers / Saludos,

Carlos E. R.
(from 11.4, with Evergreen, x86_64 “Celadon” (Minas Tirith))

On 2012-12-21 14:36, keyb user wrote:
> I really think the problem here is the output .ps files … none of
> them opens in any ps editor or viewer. So they are not output .ps files.
> something must be very wrong on the format of those files.

Run “file” on those files and find out what they are. Maybe they are ps
files with a large preamble and no contents.


Cheers / Saludos,

Carlos E. R.
(from 11.4, with Evergreen, x86_64 “Celadon” (Minas Tirith))

On Sat 22 Dec 2012 12:08:11 AM CST, Carlos E. R. wrote:

On 2012-12-21 20:58, dd wrote:
> On 12/21/2012 02:36 PM, keyb user wrote:
>> - you must make sudo in order to have permissions to write the many
>> many .ps files on the /usr/lib/kernel-coverage dir.
>
> then something is wrong with the source!

No, nothing is wrong, this is how kernel sources are distributed. They
are made to be used by root. To use them as plain user you have to
previously chown or chmod the entire tree, and this is not documented.

Hi
In this case no, the kernel source is only read from not written too,
it’s the makefile using the file system in /usr/lib/kernel-coverage. The
program can be run all as a user thus;


mkdir ~/coverage
set -- /usr/lib/kernel-coverage/*
cp  -r "$@" ~/coverage
cd coverage
make KERNEL_DIR=/usr/src/linux


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 12.2 (x86_64) Kernel 3.4.11-2.16-desktop
up 1:25, 3 users, load average: 0.22, 0.07, 0.06
CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU

This is a very old thread, but I would like to add a comment.

I am currently running openSUSE 13.1 with kernel-default-3.17.1 and the option to use multiple cores works fine. My command was “make -j8” and all cores show a load most of the time. I have yet to learn whether or not the kernel-coverage package is compatible with the newest kernels, but I’ll find out soon enough.
I had it running yesterday using the instructions from the README file. It had been running for 26 hours when my electric service was interrupted and I had to shut down.

Everything went very quickly, then I got errors. I should clarify my comment from my last post. The number of cores necessary were used. Sometimes 8 and as few as 3 at times. I don’t think that the program ran 15 minutes before the error. If anyone can make sense of these, please do:


cd image && make image.ps
make[1]: Entering directory `/home/ronnie/coverage/image'
Making Ring 1
I got small_row_scrunch=0.900000, small_row_max=0.000000 
finished
Done Ring 1
find: ‘arch/Kconfig’: No such file or directory
Runtime error (func=(main), adr=21): Divide by zero
Runtime error (func=(main), adr=21): Divide by zero
Rendering net-ring2.ps
Rendering fs-ring2.ps
Runtime error (func=(main), adr=22): Divide by zero
Runtime error (func=(main), adr=22): Divide by zero
Runtime error (func=(main), adr=22): Divide by zero
Runtime error (func=(main), adr=22): Divide by zero
Runtime error (func=(main), adr=22): Divide by zero
Runtime error (func=(main), adr=22): Divide by zero
Runtime error (func=(main), adr=22): Divide by zero
Runtime error (func=(main), adr=22): Divide by zero
Runtime error (func=(main), adr=22): Divide by zero
Runtime error (func=(main), adr=22): Divide by zero
Runtime error (func=(main), adr=22): Divide by zero
Runtime error (func=(main), adr=22): Divide by zero
/bin/sh: line 1:   721 Segmentation fault      ../draw_arrangement 1 0 `cat net-ring2.angle` `cat ring1.radius` 0.9 2 `find net -name '*-all.ps'` &gt; net-ring2.ps
make[1]: *** [net-ring2.ps] Error 139
make[1]: *** Waiting for unfinished jobs....
Runtime error (func=(main), adr=22): Divide by zero
Runtime error (func=(main), adr=22): Divide by zero
Runtime error (func=(main), adr=22): Divide by zero
/bin/sh: line 1:   742 Segmentation fault      ../draw_arrangement 1 0 `cat fs-ring2.angle` `cat ring1.radius` 0.9 2 `find fs -name '*-all.ps'` &gt; fs-ring2.ps
make[1]: *** [fs-ring2.ps] Error 139
Runtime error (func=(main), adr=22): Divide by zero
Runtime error (func=(main), adr=22): Divide by zero
Runtime error (func=(main), adr=22): Divide by zero
rm ring1.radius
make[1]: Leaving directory `/home/ronnie/coverage/image'
make: *** [image.ps] Error 2