trouble running lkp-tests

2023-05-19 Thread jim . cromie
hi all,

anyone familiar enough with running lkp-tests to recognize these errors ?

1st, from inside a virtme VM -

bash-5.2# /usr/local/bin/lkp split-job --compatible
/home/jimc/projects/lkp-tests.git/jobs/kmemleak-test.yaml
/home/jimc/projects/lkp-tests.git/jobs/kmemleak-test.yaml =>
./kmemleak-test-defaults.yaml
bash-5.2# /usr/local/bin/lkp run ./kmemleak-test-defaults.yaml
2023-05-19 13:04:31 -0600 WARN -- Jobfile is a dirty file, better to
run 'lkp split-job --compatible ./kmemleak-test-defaults.yaml' first
sh: -c: line 1: syntax error near unexpected token `('
sh: -c: line 1: `grep -w '^memory:'
/home/jimc/projects/lkp-tests.git/hosts/(none)'
/home/jimc/projects/lkp-tests.git/bin/run-local:121:in `':
undefined method `chomp' for nil:NilClass (NoMethodError)

job['memory'] ||= `grep -w '^memory:'
#{LKP_SRC}/hosts/#{HOSTNAME}`.split(' ')[1].chomp

  ^^
bash-5.2# /usr/local/bin/lkp split-job --compatible
./kmemleak-test-defaults.yaml
/tmp/20230519-534-276vfc => ./20230519-534-276vfc-defaults.yaml
bash-5.2# /usr/local/bin/lkp run ./20230519-534-276vfc-defaults.yaml
2023-05-19 13:05:41 -0600 WARN -- Jobfile is a dirty file, better to
run 'lkp split-job --compatible ./20230519-534-276vfc-defaults.yaml'
first
sh: -c: line 1: syntax error near unexpected token `('
sh: -c: line 1: `grep -w '^memory:'
/home/jimc/projects/lkp-tests.git/hosts/(none)'
/home/jimc/projects/lkp-tests.git/bin/run-local:121:in `':
undefined method `chomp' for nil:NilClass (NoMethodError)

job['memory'] ||= `grep -w '^memory:'
#{LKP_SRC}/hosts/#{HOSTNAME}`.split(' ')[1].chomp

  ^^

somehow, ruby is broken / unavailable inside the VM.

2 - on the host itself

[jimc@frodo lkp-tests.git]$ sudo lkp run ./20230519-819840-khtr75-defaults.yaml
[sudo] password for jimc:
2023-05-19 13:08:54 -0600 WARN -- Jobfile is a dirty file, better to
run 'lkp split-job --compatible
./20230519-819840-khtr75-defaults.yaml' first
current kernel cannot support kmemleak, please check CONFIG_DEBUG_KMEMLEAK
  /home/jimc/projects/lkp-tests.git/lib/debug.sh:12: die
  /home/jimc/projects/lkp-tests.git/tests/kmemleak-test:8: main
  :0:
kill 825577 vmstat --timestamp -n 10
kill 825575 dmesg --follow --decode
wait for background processes: 825579 meminfo
grep: warning: stray \ before :
grep: warning: stray \ before :
2023-05-19 13:08:58 WARN -- job exited due to die
/lkp/result/kmemleak-test/defaults/frodo/fedora/defconfig/gcc/6.2.15-300.fc38.x86_64/3
grep: warning: stray \ before :
2023-05-19 13:08:58 WARN -- job exited due to die
/lkp/result/kmemleak-test/defaults/frodo/fedora/defconfig/gcc/6.2.15-300.fc38.x86_64/3
grep: warning: stray \ before :
2023-05-19 13:08:58 WARN -- job exited due to die
/lkp/result/kmemleak-test/defaults/frodo/fedora/defconfig/gcc/6.2.15-300.fc38.x86_64/3
grep: warning: stray \ before :
2023-05-19 13:08:58 WARN -- job exited due to die
/lkp/result/kmemleak-test/defaults/frodo/fedora/defconfig/gcc/6.2.15-300.fc38.x86_64/3
grep: warning: stray \ before :
2023-05-19 13:08:58 WARN -- job exited due to die
/lkp/result/kmemleak-test/defaults/frodo/fedora/defconfig/gcc/6.2.15-300.fc38.x86_64/3
grep: warning: stray \ before :
2023-05-19 13:08:58 WARN -- job exited due to die
/lkp/result/kmemleak-test/defaults/frodo/fedora/defconfig/gcc/6.2.15-300.fc38.x86_64/3
grep: warning: stray \ before :
grep: warning: stray \ before :
2023-05-19 13:08:58 WARN -- job exited due to die
/lkp/result/kmemleak-test/defaults/frodo/fedora/defconfig/gcc/6.2.15-300.fc38.x86_64/3
/home/jimc/projects/lkp-tests.git/lib/data_store.rb:62:in
`initialize': wrong number of arguments (given 2, expected 1)
(ArgumentError)
from /home/jimc/projects/lkp-tests.git/lib/common.rb:24:in `new'
from /home/jimc/projects/lkp-tests.git/lib/common.rb:24:in `block in
add_cached_method'
from /home/jimc/projects/lkp-tests.git/lib/data_store.rb:246:in `create_new'
from /home/jimc/projects/lkp-tests.git/lib/nresult_root.rb:241:in
`create_layout'
from /home/jimc/projects/lkp-tests.git/lib/nresult_root.rb:337:in
`create_tables_layout'
from /home/jimc/projects/lkp-tests.git/bin/run-local:167:in `'


any hints / guesses welcome !

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Starting to learn Linux...

2023-05-19 Thread Constantine Shulyupin
Here you are: https://en.wikibooks.org/wiki/The_Linux_Kernel

On Fri, 19 May 2023 at 10:54, Deepak Goel  wrote:

> This link is good. However it is listing all the software which runs on
> Linux-kernel. I want to know what's going on inside the Linux-kernel
> (thread management, memory management, interface to devices, etc).
>
>
> Deepak
> "The greatness of a nation can be judged by the way its animals are
> treated - Mahatma Gandhi"
>
> +91 73500 12833
> deic...@gmail.com
>
> Facebook: https://www.facebook.com/deicool
> LinkedIn: www.linkedin.com/in/deicool
>
> "Plant a Tree, Go Green"
>
> Make In India : http://www.makeinindia.com/home
>
>
> On Thu, May 18, 2023 at 12:20 PM Constantine Shulyupin <
> constantine.shulyu...@gmail.com> wrote:
>
>> Almost complete list of Linux SW:
>> https://en.wikipedia.org/wiki/Category:Linux_software
>>
>> On Tue, 16 May 2023 at 10:13, Deepak Goel  wrote:
>>
>>> Hello
>>>
>>> I want to learn more about Linux. Is there a complete list of programs
>>> in Linux OS? And what do they do?
>>>
>>> Please let me know.
>>>
>>> Thank you.
>>>
>>>
>>> Deepak
>>> "The greatness of a nation can be judged by the way its animals are
>>> treated - Mahatma Gandhi"
>>>
>>> +91 73500 12833
>>> deic...@gmail.com
>>>
>>> Facebook: https://www.facebook.com/deicool
>>> LinkedIn: www.linkedin.com/in/deicool
>>>
>>> "Plant a Tree, Go Green"
>>>
>>> Make In India : http://www.makeinindia.com/home
>>> ___
>>> Kernelnewbies mailing list
>>> Kernelnewbies@kernelnewbies.org
>>> https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>>>
>>
>>
>> --
>> Constantine Shulyupin
>>
>

-- 
Constantine Shulyupin
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Starting to learn Linux...

2023-05-19 Thread Fernando Apesteguía
On Fri, May 19, 2023 at 11:49 AM Greg KH  wrote:

> On Fri, May 19, 2023 at 01:24:18PM +0530, Deepak Goel wrote:
> > This link is good. However it is listing all the software which runs on
> > Linux-kernel. I want to know what's going on inside the Linux-kernel
> > (thread management, memory management, interface to devices, etc).
>
> What of the many free books and other online resources have you read
> that did not cover this well already?  Specific questions are best, and
> also, you have access to the whole source code of Linux, have you tried
> reading that and just following the basic code flows of something
> "simple" to understand this type of thing?
>

Is there a tiered list of portions of the kernel to have a look at? I'm
thinking of something like this:

* If you want to learn about USB drivers, have a look at the very simple
foo-driver. Then, you could look at bar-driver. If you grasped all the
concepts, have a look at veryadvanced-driver.
* For char drivers, you could start with this driver, then this other
driver and end with...
* For block drivers...
* For network drivers...

I think this might be extended to core components of the kernel, although
it might be a bit more complicated:

* For process creation and destruction have a look at this. For advanced
topics, have a look at that (this would be specific code parts/snippets).
* For memory management, have a look at this for simple
usage/understanding, and that for advanced topics.

 Sometimes it can be a bit overwhelming to open foo.c and get lost in the
details.

Do you know if there is such a list? Would it be difficult to create one?

Thanks,

>
> thanks,
>
> greg k-h
>
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Starting to learn Linux...

2023-05-19 Thread Deepak Goel
Thank you for the feedback. Agreed. Will bounce specific questions as and
when I hit a wall.

Deepak
"The greatness of a nation can be judged by the way its animals are treated
- Mahatma Gandhi"

+91 73500 12833
deic...@gmail.com

Facebook: https://www.facebook.com/deicool
LinkedIn: www.linkedin.com/in/deicool

"Plant a Tree, Go Green"

Make In India : http://www.makeinindia.com/home


On Fri, May 19, 2023 at 3:42 PM Robert P. J. Day 
wrote:

> On Fri, 19 May 2023, Deepak Goel wrote:
>
> > Will buy a book. Thank you. Debugging the whole source code of
> > Linux, might be a bit tricky at the beginning. Will try ChatGPT.
>
>   Respectfully, you are completely missing the point of this mailing
> list. You started by asking for a list of programs that run on Linux;
> when that was provided, you changed your mind entirely and insisted
> that you wanted to know more about Linux internals like device drivers
> and memory management and so on. Now you're suggesting you will
> (finally?) buy a book and will further consult ChatGPT.
>
>   Nowhere here have you demonstrated that you've actually put in any
> effort of your own to start learning. Your entire approach seems to
> be, "Could everyone drop what they're doing and teach me all about
> Linux?" One starts to suspect you haven't even installed Linux to
> start using it.
>
>   This mailing list is for *kernel* newbies -- people starting to play
> with the kernel and who have *specific* questions about something
> they're trying. You, on the other hand, are asking to be spoon-fed the
> most basic information about simply *running* Linux. You need to go
> and invest some effort in learning the simplest things about Linux,
> and not ask others to do that for you.
>
> rday
>
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Starting to learn Linux...

2023-05-19 Thread Robert P. J. Day
On Fri, 19 May 2023, Deepak Goel wrote:

> Will buy a book. Thank you. Debugging the whole source code of
> Linux, might be a bit tricky at the beginning. Will try ChatGPT.

  Respectfully, you are completely missing the point of this mailing
list. You started by asking for a list of programs that run on Linux;
when that was provided, you changed your mind entirely and insisted
that you wanted to know more about Linux internals like device drivers
and memory management and so on. Now you're suggesting you will
(finally?) buy a book and will further consult ChatGPT.

  Nowhere here have you demonstrated that you've actually put in any
effort of your own to start learning. Your entire approach seems to
be, "Could everyone drop what they're doing and teach me all about
Linux?" One starts to suspect you haven't even installed Linux to
start using it.

  This mailing list is for *kernel* newbies -- people starting to play
with the kernel and who have *specific* questions about something
they're trying. You, on the other hand, are asking to be spoon-fed the
most basic information about simply *running* Linux. You need to go
and invest some effort in learning the simplest things about Linux,
and not ask others to do that for you.

rday

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Starting to learn Linux...

2023-05-19 Thread Deepak Goel
Will buy a book. Thank you. Debugging the whole source code of Linux, might
be a bit tricky at the beginning. Will try ChatGPT.

Deepak
"The greatness of a nation can be judged by the way its animals are treated
- Mahatma Gandhi"

+91 73500 12833
deic...@gmail.com

Facebook: https://www.facebook.com/deicool
LinkedIn: www.linkedin.com/in/deicool

"Plant a Tree, Go Green"

Make In India : http://www.makeinindia.com/home


On Fri, May 19, 2023 at 3:18 PM Greg KH  wrote:

> On Fri, May 19, 2023 at 01:24:18PM +0530, Deepak Goel wrote:
> > This link is good. However it is listing all the software which runs on
> > Linux-kernel. I want to know what's going on inside the Linux-kernel
> > (thread management, memory management, interface to devices, etc).
>
> What of the many free books and other online resources have you read
> that did not cover this well already?  Specific questions are best, and
> also, you have access to the whole source code of Linux, have you tried
> reading that and just following the basic code flows of something
> "simple" to understand this type of thing?
>
> thanks,
>
> greg k-h
>
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Starting to learn Linux...

2023-05-19 Thread Greg KH
On Fri, May 19, 2023 at 01:24:18PM +0530, Deepak Goel wrote:
> This link is good. However it is listing all the software which runs on
> Linux-kernel. I want to know what's going on inside the Linux-kernel
> (thread management, memory management, interface to devices, etc).

What of the many free books and other online resources have you read
that did not cover this well already?  Specific questions are best, and
also, you have access to the whole source code of Linux, have you tried
reading that and just following the basic code flows of something
"simple" to understand this type of thing?

thanks,

greg k-h

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Starting to learn Linux...

2023-05-19 Thread Deepak Goel
This link is good. However it is listing all the software which runs on
Linux-kernel. I want to know what's going on inside the Linux-kernel
(thread management, memory management, interface to devices, etc).


Deepak
"The greatness of a nation can be judged by the way its animals are treated
- Mahatma Gandhi"

+91 73500 12833
deic...@gmail.com

Facebook: https://www.facebook.com/deicool
LinkedIn: www.linkedin.com/in/deicool

"Plant a Tree, Go Green"

Make In India : http://www.makeinindia.com/home


On Thu, May 18, 2023 at 12:20 PM Constantine Shulyupin <
constantine.shulyu...@gmail.com> wrote:

> Almost complete list of Linux SW:
> https://en.wikipedia.org/wiki/Category:Linux_software
>
> On Tue, 16 May 2023 at 10:13, Deepak Goel  wrote:
>
>> Hello
>>
>> I want to learn more about Linux. Is there a complete list of programs in
>> Linux OS? And what do they do?
>>
>> Please let me know.
>>
>> Thank you.
>>
>>
>> Deepak
>> "The greatness of a nation can be judged by the way its animals are
>> treated - Mahatma Gandhi"
>>
>> +91 73500 12833
>> deic...@gmail.com
>>
>> Facebook: https://www.facebook.com/deicool
>> LinkedIn: www.linkedin.com/in/deicool
>>
>> "Plant a Tree, Go Green"
>>
>> Make In India : http://www.makeinindia.com/home
>> ___
>> Kernelnewbies mailing list
>> Kernelnewbies@kernelnewbies.org
>> https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>>
>
>
> --
> Constantine Shulyupin
>
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: API between modules

2023-05-19 Thread Prathu Baronia
On Thu, May 18, 2023 at 08:16:18AM +0100, Lucas Tanure wrote:
> Are there other ways for a module to wait for another module to load
> and use its API?
> Is there a default way to do that?
Hi Lucas,
IIUC you can use MODULE_SOFTDEP macro to establish loading dependencies.
This stack overflow explains it:-
https://stackoverflow.com/questions/29717761/how-do-i-define-dependency-among-kernel-modules

Prathu

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies