Back to Home / #uml / 2007 / 12 / Prev Day | Next Day
#uml IRC Logs for 2007-12-23

---Logopened Sun Dec 23 00:00:31 2007
00:31|-|ferret_0567 [~travis@cpe-72-191-26-86.satx.res.rr.com] has joined #uml
03:19|-|aindilis [~aindilis@75.146.96.197] has quit [Ping timeout: 480 seconds]
06:14|-|tyler29 [~tyler@ARennes-257-1-116-7.w86-210.abo.wanadoo.fr] has joined #uml
06:39|-|kos_tom [~thomas@meridon.bulix.org] has joined #uml
07:28|-|Infinito [~argos@200-140-69-91.gnace701.dsl.brasiltelecom.net.br] has joined #uml
07:36|-|Infinito [~argos@200-140-69-91.gnace701.dsl.brasiltelecom.net.br] has quit [Remote host closed the connection]
07:44|-|tyler29 [~tyler@ARennes-257-1-116-7.w86-210.abo.wanadoo.fr] has quit [Ping timeout: 480 seconds]
07:56|-|tyler29 [~tyler@ARennes-257-1-71-175.w81-53.abo.wanadoo.fr] has joined #uml
09:02|-|linux__alien [~linux__al@59.92.55.223] has joined #uml
09:03<linux__alien-#uml->>I ve a question here . My Question is will there be any difference between the UML kernel and the Normal Vanilla Kernel. My assumption is it just differs only in the build. i.e to build a UML kernel you give ARCH=um so which means that i can download the latest vanilla kernel and build it for UML and play with it .is my understanding right?
09:03<linux__alien-#uml->>When i build it for UML, i can hack into it without disturbing my running kernel right?
09:13<Magotari_-#uml->>linux__alien: Just for the future reference, patience please. It takes a while for people to respond, and you often come at a time when everyone is asleep. So please wait longer, stay in irc for 24 hours if you can.
09:13<Magotari_-#uml->>Now, to your question...
09:13<Magotari_-#uml->>Yes, UML is a different architecture of the Vanilla kernel.
09:13<Magotari_-#uml->>You can get a normal kernel, build it to be a uml.
09:14<Magotari_-#uml->>And whatever you do to the UML kernel, won't hurt your real system. (Unless you do stuff like ubda=/dev/hda1)
09:15<Magotari_-#uml->>However, if you hack a kernel, build it into an UML and then build a normal host from the same sources, the new host will have your modifications.
09:15|-|balbir [~balbir@122.167.196.255] has joined #uml
09:17|-|Magotari_ changed nick to Magotari
09:17<Magotari-#uml->>I will gladly answer any questions you throw at me, but please give me a chance to respond.
09:18<linux__alien-#uml->>:)
09:18<linux__alien-#uml->>lol
09:19<linux__alien-#uml->>Magotari, I was actually wondering how different the UML kernel would be from the normal kernel. So downloaded the source and just did a diff :) of the same version basically at a very high level so its just the build thats different :)
09:21<Magotari-#uml->>Yes, it's just an architecture. arch/um to be precise.
09:22<Magotari-#uml->>Most of the stuff you would want is in mainline, but there are a few extra patches floating around.
09:22<Magotari-#uml->>I'm using pure mainline -mm guests with skas3 patches for the 2.6.23 host.
09:23<linux__alien-#uml->>Magotari, if i make some changes in my source tree and build it for UML and then i use the same source to build my host kernel, its better to do a make mrproper .If thats done my host kernel shouldnt contain those changes right ?
09:25<linux__alien-#uml->>i am using 2.6.23
09:25<linux__alien-#uml->>from kernel.org straight :)
09:27|-|tyler29 [~tyler@ARennes-257-1-71-175.w81-53.abo.wanadoo.fr] has quit [Ping timeout: 480 seconds]
09:35<Magotari-#uml->>linux__alien: I'm sorry, but what you are saying is not correct.
09:35<Magotari-#uml->>mrproper only cleans things like makefiles and object files.
09:35<Magotari-#uml->>It does not revert changes to the source code you have done.
09:35<linux__alien-#uml->>yes
09:35<linux__alien-#uml->>true i meant the config options :)
09:35<Magotari-#uml->>So whatever code you have changed, mrproper won't touch.
09:35<linux__alien-#uml->>source code yes i make changes to the source it would use that
09:35<linux__alien-#uml->>for the host too :)
09:35<Magotari-#uml->>Yes, .config will be deleted, as far as I know.
09:36<linux__alien-#uml->>Magotari, one more question
09:36<Magotari-#uml->>Ask as much as you like. I am the self-proclaimed first line of tech support here.
09:37<linux__alien-#uml->>Magotari, i want to enable the printks in the network subsystem and trace the packet flow . Is it possible? . Using NAT i ve made UML to talk to the Internet using my host kernel so i want to do a ftp from my host kernel to the UML and transfer a file from the host and trace the packet flow in the Linux Kernel
09:38<Magotari-#uml->>Yes, it is possible to make the network stuff in arch/um do a printk, you have to hack it in.
09:38<Magotari-#uml->>Then prink will be in dmesg and also in the console.
09:40<linux__alien-#uml->>hack it in the sense i mean the code currently uses some printks i just want to enable it ?
09:40<Magotari-#uml->>It does have printk? I did not know that. I have no idea how to enable that.
09:41<Magotari-#uml->>Try looking around in the config, might be there. I don't have a UML tree handy at the moment, so I can't help too much.
09:41<linux__alien-#uml->> printk(KERN_INFO "recvmsg bug: copied %X "
09:41<linux__alien-#uml->> "seq %X\n", *seq, TCP_SKB_CB(skb)->seq);
09:41<Magotari-#uml->>I can have one in a few hours, but by then you probably will know for yourself.
09:41<linux__alien-#uml->>want to enable this :)
09:42<Magotari-#uml->>Check the log level too.
09:42<Magotari-#uml->>Info messages might not be printed by default.
09:42<linux__alien-#uml->>Magotari, true very true hence you enable it :)
09:42<Magotari-#uml->>Check kernel_parameters.txt for details how to do it.
09:42<linux__alien-#uml->>Ok
09:42<linux__alien-#uml->>:)
09:43<Magotari-#uml->>I don't have a tree, or I would have told you more. Usually I am more useful.
09:43<linux__alien-#uml->>lol :)
09:43|-|tyler29 [~tyler@ARennes-257-1-80-202.w81-53.abo.wanadoo.fr] has joined #uml
09:47<Magotari-#uml->>Had to leave my work computer off.
09:47<linux__alien-#uml->>Ok :)
09:47<Magotari-#uml->>No ssh. :(
09:47<linux__alien-#uml->>Oh :(
09:47<Magotari-#uml->>Yeah. I'm totally unprepared for uml work.
09:48<linux__alien-#uml->>Ok No Probs i am digging into it
10:23|-|tyler29 [~tyler@ARennes-257-1-80-202.w81-53.abo.wanadoo.fr] has quit [Remote host closed the connection]
10:25|-|tyler29 [~tyler@ARennes-257-1-80-202.w81-53.abo.wanadoo.fr] has joined #uml
10:25|-|tyler29 [~tyler@ARennes-257-1-80-202.w81-53.abo.wanadoo.fr] has quit [Remote host closed the connection]
10:26|-|tyler29 [~tyler@ARennes-257-1-80-202.w81-53.abo.wanadoo.fr] has joined #uml
10:30|-|aindilis [~aindilis@75.146.96.197] has joined #uml
10:31<linux__alien-#uml->>Magotari, you still there ?
10:33<Magotari-#uml->>linux__alien: Yes, on the phone.
10:35<linux__alien-#uml->>Magotari, Ok ve one question
10:35<linux__alien-#uml->>This is the command i give
10:35<linux__alien-#uml->>./linux ubda=FedoraCore5-x86-root_fs mem=128M eth0=tuntap,,,10.1.1.5 ssl=port:9000 con=xterm
10:36<linux__alien-#uml->>Now what happens is that an xterm window opens and i see the UML booting
10:36<linux__alien-#uml->>Now what i would like is it possible to have an other tab in the xterm window thats opened while booting so that i can have the logs in one tab and work in the other tab?
10:37<linux__alien-#uml->>is there a better option than xterm?
10:37|-|Magotari_ [~karol@abgs17.neoplus.adsl.tpnet.pl] has joined #uml
10:37<Magotari_-#uml->>Argh.
10:37<Magotari_-#uml->>Damn ISP.
10:37<Magotari_-#uml->>Did I missanything?
10:38<linux__alien-#uml->>Oh i typed a question.
10:38<linux__alien-#uml->>Did you recieve it?
10:38<linux__alien-#uml->>didnt you?
10:38<Magotari_-#uml->>Nope.
10:38<Magotari_-#uml->>ISP.
10:38<linux__alien-#uml->>This is the command i give
10:38<linux__alien-#uml->><linux__alien> ./linux ubda=FedoraCore5-x86-root_fs mem=128M eth0=tuntap,,,10.1.1.5 ssl=port:9000 con=xterm
10:38<linux__alien-#uml->> Now what happens is that an xterm window opens and i see the UML booting
10:38<linux__alien-#uml->><linux__alien> Now what i would like is it possible to have an other tab in the xterm window thats opened while booting so that i can have the logs in one tab and work in the other tab?
10:38<linux__alien-#uml->><linux__alien> is there a better option than xterm?
10:38<Magotari_-#uml->>linux__alien: I'm on the phone. Give me 10 minutes.
10:39<linux__alien-#uml->>Oh sure
10:44|-|Magotari [~karol@abij2.neoplus.adsl.tpnet.pl] has quit [Ping timeout: 480 seconds]
10:49<Magotari_-#uml->>OK!
10:49<Magotari_-#uml->>Let me see...
10:49<Magotari_-#uml->>Hmm... There is an idea, but it ain't too clean.
10:49<Magotari_-#uml->>You can specify con= multiple times.
10:50<Magotari_-#uml->>I think the last one will get the control, and the other ones will echo the logs.
10:50<Magotari_-#uml->>You cannot specify a transport more than once though.
10:50<Magotari_-#uml->>So you would have to use a different one.
10:51<Magotari_-#uml->>I think pty is a good one. Then you access the pty with screen, in a different xterm tab.
10:51<Magotari_-#uml->>Of course you can also leave your commandline as it is, and just telnet to localhost port 9000.
10:52<Magotari_-#uml->>This will leave your console as it is, while you will do the work on a fake serial console. Which you can have in a different tab.
10:52<Magotari_-#uml->>I think the second one is a better idea, if it is acceptable to you.
10:56<linux__alien-#uml->>i ll have to give con=xterm con=xterm
10:57<Magotari_-#uml->>I don't think this will work, because you are specifying the same transport twice.
10:57<Magotari_-#uml->>But please try it, I am curious how this will turn out to be.
10:57<linux__alien-#uml->>i get only one windo
10:57<linux__alien-#uml->>windwo
10:58<Magotari_-#uml->>Yeah, I thought as much. I suggest doing 'telnet localhost 9000' on the host.
10:59<linux__alien-#uml->>that does not work
11:00<linux__alien-#uml->>telnet localhost 9000
11:00<linux__alien-#uml->>Trying 127.0.0.1...
11:00<linux__alien-#uml->>Connected to localhost.
11:00<linux__alien-#uml->>Escape character is '^]'.
11:00<linux__alien-#uml->>Connection closed by foreign host.
11:00<linux__alien-#uml->>i get this because
11:00<linux__alien-#uml->>in UML i get the error
11:00<Magotari_-#uml->>Hmm...
11:01<linux__alien-#uml->>helper_child-execvp of '/usr/sbin/in.telnetd failed errno=2 port_accept : port connection returned 2
11:01<linux__alien-#uml->>i dont know whether because of me enabling some printks i get this :p
11:01<linux__alien-#uml->>detailed message
11:01<Magotari_-#uml->>Bizzare. I have never seen this.
11:01<linux__alien-#uml->>Ok but is there an alternative ?
11:01<Magotari_-#uml->>Do you have a /usr/sbin/in.telnetd on the host?
11:01<Magotari_-#uml->>Ok, let me think...
11:02<linux__alien-#uml->>I just need to have some tabs in UML but the thing is that you know in Ubuntu i got the GnomeTerm itself so i had tabs there but in Fedora i dont get this
11:02<linux__alien-#uml->>i use Fedora 8
11:03<Magotari_-#uml->>Try this: con0=fd:0,fd:1 con=xterm
11:04<Magotari_-#uml->>Also enabling more than one console in the guest initab is a good idea for this one.
11:06<Magotari_-#uml->>Another thing... I think you can set a different terminal than xterm in guest's config.
11:06<Magotari_-#uml->>If you use, say... Konsole, or something...
11:06<linux__alien-#uml->>is this right?
11:06<Magotari_-#uml->>Might give you tabs just fine.
11:06<linux__alien-#uml->>How do i give that ? I mean giving Konsole or something like that
11:06<linux__alien-#uml->>Thats what i exactly want :) it would be great if i get Konsole
11:07<Magotari_-#uml->>Try looking in the guest config. I think UML-specific options, but not sure.
11:07<Magotari_-#uml->>It will be there. UML has a small config compared to say, x86.
11:08<linux__alien-#uml->>how do you do it
11:08<linux__alien-#uml->>basically
11:08<Magotari_-#uml->>Have you ever configured a kernel before?
11:08<linux__alien-#uml->>yes did it just now too for UML :)
11:09<Magotari_-#uml->>Let me get a tree. :) Give me a while.
11:09<linux__alien-#uml->>Ok :)
11:09<linux__alien-#uml->>sure
11:12<Magotari_-#uml->>Er, I have an antique tree here, but it got useful too.
11:13<Magotari_-#uml->>arch/um/drivers/xterm.c, starting from line 78.
11:13<Magotari_-#uml->>I was wrong.
11:14<Magotari_-#uml->>You want to add xterm=<foo> to your kernel commandline.
11:14<Magotari_-#uml->>The thing is explained in the code. Let me see...
11:15<Magotari_-#uml->>I don't have Konsole here, but the man page will give you the switches for title and exec which you need.
11:15<Magotari_-#uml->>So, xterm=Konsole,<switch1>,<switch2>
11:16<linux__alien-#uml->>./linux ubda=FedoraCore5-x86-root_fs mem=128M eth0=tuntap,,,10.1.1.5 ssl=port:9000 con=xterm=Konsole ?
11:16<linux__alien-#uml->>is this right?
11:17<linux__alien-#uml->>but does not work
11:17<linux__alien-#uml->>i still get xterm without tabs
11:18<Magotari_-#uml->>Yeah, that is wrong.
11:18<Magotari_-#uml->>con=xterm xterm=Konsole,<switch for title>,<switch for exec>
11:18<Magotari_-#uml->>You need the two switches too.
11:19<Magotari_-#uml->>I don't know them, as I don't have Konsole.
11:19<linux__alien-#uml->>:)
11:20<linux__alien-#uml->>where do i find info on 2 switches which man page can you please tell me ?
11:21<linux__alien-#uml->>i dont mind anything even if its not Konsole also i dont have a problem i just want some options for tabs
11:21<linux__alien-#uml->>what do you use generally
11:21<linux__alien-#uml->>how do you tackle this in your system
11:21<Magotari_-#uml->>I don't. xterm is all I need.
11:21<Magotari_-#uml->>You probably want 'man Konsole', if Konsole does have a man page.
11:22<Magotari_-#uml->>I generally rely on telnet, leaving the console at default fd:0,fd:1 setting.
11:23<Magotari_-#uml->>Phone again. Brb
11:25<linux__alien-#uml->>ok
11:26|-|tyler29 [~tyler@ARennes-257-1-80-202.w81-53.abo.wanadoo.fr] has quit [Ping timeout: 480 seconds]
11:36|-|tyler29 [~tyler@ARennes-257-1-159-137.w86-214.abo.wanadoo.fr] has joined #uml
11:43<linux__alien-#uml->>Magotari_, you back ?:)
11:56<Magotari_-#uml->>linux__alien: Long distance relationship. I'm back now.
12:01<linux__alien-#uml->>Ok :)
12:01<linux__alien-#uml->>I ve got now 2 xterm logins
12:01<linux__alien-#uml->>modified the inittab file
12:01<linux__alien-#uml->>but i ve a doubt now
12:01<linux__alien-#uml->>i ve done a tail -f /var/log/messages in UML
12:01<linux__alien-#uml->>and i get this
12:02<linux__alien-#uml->>modprobe: FATAL:could not load /lib/modules/2.6.23/modules.dep No such file or directory
12:02<Magotari_-#uml->>This is normal.
12:02<Magotari_-#uml->>You usually don't work with modules in UML.
12:02<linux__alien-#uml->>ok so i cannot write a module and test with UML is it?
12:03<Magotari_-#uml->>You can, but if you don't intend to, you don't have to worry about the message.
12:03<Magotari_-#uml->>UML will accept modules, no problem there.
12:04<linux__alien-#uml->>Ok i want to do that too
12:04<Magotari_-#uml->>So you can work with modules just fine.
12:04<linux__alien-#uml->>:)
12:04<Magotari_-#uml->>Right. Then the message is a problem.
12:04<Magotari_-#uml->>See, modprobe needs to work with a set of modules for a specific kernel. But the fs does not have the module directory created.
12:04<Magotari_-#uml->>You need to take care of that.
12:04<linux__alien-#uml->>yes but that Fedora Image does not show me the 2.6.23 kernel-devel
12:05<linux__alien-#uml->>when i do a yum search kernel-devel
12:05<Magotari_-#uml->>If you want to use insmod it won't be a problem, I don't think.
12:05<Magotari_-#uml->>Hmm... Here is a little problem.
12:06<Magotari_-#uml->>See, the host creates an UML kernel and modules for it.
12:06<Magotari_-#uml->>You need to copy the modules from the host to the guest.
12:06<Magotari_-#uml->>If you are building the modules inside the UML, you need to make sure you are building for the same version of the kernel as your uml guest kernel.
12:07<Magotari_-#uml->>And of course there is a matter of arch, needs to be um too.
12:07<Magotari_-#uml->>So there are two ways here.
12:07<Magotari_-#uml->>1. Work inside UML, taking precautions.
12:07<Magotari_-#uml->>2. Work on the host, copying the modules into UML when you need to.
12:08<Magotari_-#uml->>Since you already have the build enviroment set up on the host, and it will be faster, that it what I would do.
12:08<linux__alien-#uml->>Magotari_, Ok Feels little confusing but now my aim is to understand the network subsystem and then play with netfilter so device drivers a little bit away atleast writing something afresh is a little bit away :)
12:09<Magotari_-#uml->>linux__alien: I'm a confusing person, so please ask for any clarification you might need.
12:09<linux__alien-#uml->>:)
12:09<linux__alien-#uml->>lol
12:09<Magotari_-#uml->>I'm known for being slighly incoherent at times, expecially if I get into the flow of things.
12:09<linux__alien-#uml->>:)
12:09<linux__alien-#uml->>ok just concerned about the printfs
12:09<linux__alien-#uml->>printks
12:09<Magotari_-#uml->>Heh.
12:10<linux__alien-#uml->>i transferred a dummy file from the host to UML and wanted to see whether i see some printks
12:10<linux__alien-#uml->>but didnt
12:10<linux__alien-#uml->>did a ftp basically
12:10<Magotari_-#uml->>Try booting with: loglevel=6 or loglevel=7
12:11<linux__alien-#uml->>booting UML with loglevel =7?
12:12<linux__alien-#uml->>i didnt know that how do i do it :)
12:12<Magotari_-#uml->>Try it anyway.
12:12<Magotari_-#uml->>If this is too much info, try with loglevel=6
12:12<linux__alien-#uml->>where do i specify that loglevel=6 in UML ?
12:12<Magotari_-#uml->>At boot line.
12:13<Magotari_-#uml->>Just like con= ssl= ubda= and so on.
12:13<linux__alien-#uml->>oh Ok
12:13<linux__alien-#uml->>./linux ubda=FedoraCore5-x86-root_fs mem=128M eth0=tuntap,,,10.1.1.5 ssl=port:9000 con=xterm loglevel=6
12:13<linux__alien-#uml->>?
12:13<linux__alien-#uml->>right?
12:13<Magotari_-#uml->>Yes, looks good.
12:15<linux__alien-#uml->>No :(
12:15<linux__alien-#uml->>i tried the same thing the ftp thing
12:15<linux__alien-#uml->>but still i dont get anything :(
12:15<linux__alien-#uml->>let me see loglevel=7
12:16<Magotari_-#uml->>Do the logs look same, or are there more messages than before?
12:16<linux__alien-#uml->>no extra messages
12:17<Magotari_-#uml->>I see. Strange, I would expect some. Try with =7, that might do the trick.
12:17<linux__alien-#uml->>a ftp transfer should pop up atleast one extra message but i dont get anything extra in tail -f /var/log/messages
12:17<Magotari_-#uml->>I did some research, konsole does not have a man page, you need to look at the konsole handbook, which you should have somewhere in the kde help system.
12:22<linux__alien-#uml->>No messages
12:22<linux__alien-#uml->>at all still :(
12:22<linux__alien-#uml->>i am looking into this doc
12:22|-|Infinito [argos@200-140-69-91.gnace701.dsl.brasiltelecom.net.br] has joined #uml
12:22<linux__alien-#uml->>www.kernel.org/pub/linux/kernel/people/gregkh/lkn/lkn_pdf/
12:22<linux__alien-#uml->>www.kernel.org/pub/linux/kernel/people/gregkh/lkn/lkn_pdf/ch09.pdf
12:23<linux__alien-#uml->>It says loglevel and debug options
12:23<linux__alien-#uml->>but i ve given it as 7
12:23<linux__alien-#uml->>i looked into the /proc/sys/kernel/printk
12:23<linux__alien-#uml->>and it shows as 6 4 1 7
12:23<linux__alien-#uml->>but i dont see anythign
12:24<Magotari_-#uml->>Hmm...
12:25<Magotari_-#uml->>Can you try one more thing? Just debug?
12:25<linux__alien-#uml->>thats what i ve exactly tried
12:25<linux__alien-#uml->>now
12:25<Magotari_-#uml->>I will take a look at my old tree. What is the line you want to print, in your tree?
12:25<linux__alien-#uml->>how do i copy a chunk of text from xterm
12:26<Magotari_-#uml->>Highlight it.
12:26<Magotari_-#uml->>Then middle mouse button to paste.
12:26<Magotari_-#uml->>Or if you don't have a middle mouse button, left and right at the same time.
12:26<linux__alien-#uml->>Magotari_, nothing specific. i want to trace the packet flow
12:26<Magotari_-#uml->>Ok, what file is this stuff in?
12:27<linux__alien-#uml->>i want to know that basically there should be some print that says that a particular layer has recvd some data i dont want the dump of the data either just one print so that i can start tracing it from that point myself
12:27<linux__alien-#uml->>by putting my own printks
12:28<linux__alien-#uml->>Since i dont know the starting point i am just thinking of enabling printks and then copying the output and then going through the code in that angle
12:29<Magotari_-#uml->>Right. Can you give me any file which should print, but does not?
12:29<Magotari_-#uml->>I would like to have a starting point.
12:30<linux__alien-#uml->>:)
12:31<linux__alien-#uml->>tcp.c
12:31<linux__alien-#uml->>in function tcp_init
12:31<linux__alien-#uml->>this function should be called
12:31<Magotari_-#uml->>And btw... Did you look at dmesg output too?
12:31<linux__alien-#uml->>yes
12:32<Magotari_-#uml->>Right. Ok, let me look at the code.
12:32<linux__alien-#uml->>no extra i am pinging some slashdot.org so
12:32<linux__alien-#uml->>since we have given the highest level debug i thought the arp request should appear
12:32<linux__alien-#uml->>but it does not
12:32<linux__alien-#uml->>in the /var/log/messages
12:32<Magotari_-#uml->>Maybe this is a bug in UML.
12:32|-|tyler29 [~tyler@ARennes-257-1-159-137.w86-214.abo.wanadoo.fr] has quit [Ping timeout: 480 seconds]
12:33<linux__alien-#uml->>Oh :)
12:33<Magotari_-#uml->>I mean, it could be. Not sure, but we did specify a high level, and it's not working.
12:33<Magotari_-#uml->>The printk is ordinairy, so I don't see why it should not work.
12:33<linux__alien-#uml->>cant i copy some text and paste it here?
12:33<Magotari_-#uml->>You can.
12:33<linux__alien-#uml->>from UML?
12:34<Magotari_-#uml->>But if a few lines long.
12:34<linux__alien-#uml->>i mean from xterm ?
12:34<Magotari_-#uml->>For longer use pastebin.
12:34<Magotari_-#uml->>Yeah, you can.
12:34<linux__alien-#uml->>yes
12:34<linux__alien-#uml->>how do i do it
12:34<Magotari_-#uml->>Highlight to copy, middle mouse click to paste.
12:34<linux__alien-#uml->>Dec 23 12:24:47 localhost kernel: * arp -Ds 192.168.1.7 eth0 pub
12:34<linux__alien-#uml->>Dec 23 12:24:47 localhost kernel: EXT3 FS on ubda, internal journal
12:34<linux__alien-#uml->>Dec 23 12:24:47 localhost kernel: line_ioctl: tty0: ioctl TIOCLINUX called
12:34<linux__alien-#uml->>Dec 23 12:24:48 localhost last message repeated 10 times
12:34<linux__alien-#uml->>Dec 23 12:24:51 localhost modprobe: FATAL: Could not load /lib/modules/2.6.23/modules.dep: No such file or directory
12:34<linux__alien-#uml->>This is what i get
12:35<linux__alien-#uml->>the last in tail -f /var/log/messages
12:35<linux__alien-#uml->>192.168.1.7 is UML instance IP
12:35<linux__alien-#uml->>address
12:35<Magotari_-#uml->>Hmm... Not much info.
12:36<linux__alien-#uml->>but this does not get updated whatever i do with UML now in the sense when i recieve a packet there nor i send it does not show me but i feel that tcp_init function has a printk and that should be displayed
12:36<Magotari_-#uml->>A request.
12:36<linux__alien-#uml->>ya sure :)
12:36<Magotari_-#uml->>Can you add a printk("Hello world\n"); just before the line which you would expect to print and recompile the guest?
12:37<linux__alien-#uml->>ya sure infact i am doing that :)
12:37|-|krau [~cktakahas@189.70.66.189] has quit [Quit: Varei!!!]
12:37<linux__alien-#uml->>i can just compile it with make ARCH=um
12:37<linux__alien-#uml->>thats enough right?
12:37<linux__alien-#uml->>i mean this alone should do it right ?
12:38<Magotari_-#uml->>Just do 'export ARCH=um' and it will do the trick. Whatever you do after doing the export will have the ARCH=um done for you.
12:38<linux__alien-#uml->>i ll do a printf
12:38<linux__alien-#uml->>instead of a printk ?
12:38<linux__alien-#uml->>is that fine ?
12:38<Magotari_-#uml->>Erm, no. You want printk.
12:38<Magotari_-#uml->>Same syntax, pretty much.
12:38<linux__alien-#uml->>yes whats the level i should give
12:38<linux__alien-#uml->>7?
12:39<Magotari_-#uml->>None.
12:39<linux__alien-#uml->>KERN_INFO
12:39<Magotari_-#uml->>Omit the level.
12:39<linux__alien-#uml->>ok
12:39<linux__alien-#uml->>given a build
12:39<linux__alien-#uml->>one sec
12:42<linux__alien-#uml->>Hey Good News i see both printks
12:43<Magotari_-#uml->>Hmm... Funny that.
12:43<linux__alien-#uml->>Dec 23 12:40:36 localhost kernel: Inside FUNCTION tcp__init
12:43<linux__alien-#uml->>Dec 23 12:40:36 localhost kernel: TCP: Hash tables configured (established 8192 bind 8192)
12:43<Magotari_-#uml->>You did not change the second printk?
12:43<linux__alien-#uml->>no
12:44<Magotari_-#uml->>And what was the commandline you started uml with?
12:44<linux__alien-#uml->>i didnt
12:44<linux__alien-#uml->>loglevel=7
12:44|-|tyler29 [~tyler@ARennes-257-1-156-72.w86-214.abo.wanadoo.fr] has joined #uml
12:44<Magotari_-#uml->>Right. One more question. Did you get any other extra messages?
12:45<Magotari_-#uml->>Or just those two?
12:45<linux__alien-#uml->>one sec
12:45<linux__alien-#uml->>i am looking into it
12:45<linux__alien-#uml->>no i ve got some other messages too
12:45<linux__alien-#uml->>like
12:45<linux__alien-#uml->>TCP cubic registered
12:46<linux__alien-#uml->>and some address family registrations too
12:46<Magotari_-#uml->>Right. Try ftp now, wonder if it will show something.
12:46<linux__alien-#uml->>infact got this too
12:46<linux__alien-#uml->>:)
12:46<linux__alien-#uml->>www.kernel.org/pub/linux/kernel/people/gregkh/lkn/lkn_pdf/ch09.pdf
12:46<linux__alien-#uml->>sorry
12:46<linux__alien-#uml->>Dec 23 12:40:36 localhost kernel: Kernel command line: ubda=FedoraCore5-x86-root_fs mem=128M eth0=tuntap,,,10.1.1.5 ssl=port:9000 con=xterm loglevel=7 root=98:0
12:46<linux__alien-#uml->>this is from the kernel :)
12:47<Magotari_-#uml->>Good. Please try ftp now.
12:47<linux__alien-#uml->>sure
12:47<Magotari_-#uml->>(I don't know what else is different in this run, but I really doubt it was our new prink that changed something.
12:47<Magotari_-#uml->>)
12:51<linux__alien-#uml->>i dont get anything extra in ftp
12:52<linux__alien-#uml->>its not our printks for sure :)
12:52<linux__alien-#uml->>i might have missed it the first time itself
12:52<linux__alien-#uml->>now i grepped for Inside FUNCTION
12:52<linux__alien-#uml->>and that made my job easy :)
12:52<linux__alien-#uml->>good idea :)
12:52<Magotari_-#uml->>Yes.
12:52<Magotari_-#uml->>Ok, let me see...
12:53<linux__alien-#uml->>Dec 23 12:50:50 localhost yum: Installed: ftp.i386 0.17-33.fc5
12:53<linux__alien-#uml->>got this after i installed the ftp command in UML :)
12:54<Magotari_-#uml->>Ok, if you want to have messages looks like you might need to add them yourself.
12:54<Magotari_-#uml->>I looked at tcp.c, there is nothing that informative there.
12:54<Magotari_-#uml->>Simple, printk([severity] format sting, variable1, variable2...);
12:55<Magotari_-#uml->>Severity can be omitted, but don't submit such code to LKML, unless you want to get a nice email from Powers That Be about it.
12:55<linux__alien-#uml->>yes i just want some printks thats it so that with that i can trace the flow
12:57<Magotari_-#uml->>Good luck. I'm here for about seven more hours before I go to sleep, and also I will be available pretty much every day for the next week and a half.
12:57<Magotari_-#uml->>So whenever you need help, feel free to come here and ask questions.
12:57<linux__alien-#uml->>Oh Ok sure thanks a lot for your help and time
12:57<linux__alien-#uml->>and what about Christmas
12:57<linux__alien-#uml->>Not going on a vacation?
12:58<linux__alien-#uml->>Merry Christmas :)
12:59<Magotari_-#uml->>UML is my vacation. :)
12:59<linux__alien-#uml->>Great :)
12:59<Magotari_-#uml->>Yeah, happy $Holiday
12:59<linux__alien-#uml->>Where are you from ?
12:59<linux__alien-#uml->>US ?
12:59<Magotari_-#uml->>Poland, Europe.
12:59<linux__alien-#uml->>Oh Ok Good
12:59<Magotari_-#uml->>I'm struck by a heavy case of insomnia, so I go to sleep really late.
12:59<linux__alien-#uml->>am from India
13:00<Magotari_-#uml->>Ah, I see.
13:00<linux__alien-#uml->>i really didnt play with the linux kernel just because of my resource restriction
13:00<linux__alien-#uml->>everytime compilation and reboot
13:00<linux__alien-#uml->>and have one machine
13:00<linux__alien-#uml->>onyl
13:00<Magotari_-#uml->>Hmm...
13:00<Magotari_-#uml->>Have you heard about ccache?
13:00<linux__alien-#uml->>only so if i screw something i dont have anything else to retrieve
13:01<linux__alien-#uml->>so now with UML i ve started off playing with the kernel and trying to learn many things :)
13:01<linux__alien-#uml->>no ve not heard about it
13:01<linux__alien-#uml->>whats ccache
13:01<Magotari_-#uml->>Heh. If you have a bit of code which you are compiling often, it can shorted compile times by over half.
13:01<linux__alien-#uml->>oh is it
13:01<Magotari_-#uml->>It caches compiled code for you.
13:02<Magotari_-#uml->>So if you have to compile it again, it will just fetch the ready file for you, without compiling.
13:02<Magotari_-#uml->>Not that great for the kernel for many reasons, but try it. If you are not changing a lot in .config, it will be perfect.
13:03<linux__alien-#uml->>great but this time when i changed the printk the compilation was in seconds
13:03<linux__alien-#uml->>it just got compiled
13:03<linux__alien-#uml->>have a AMD 64 Athlon 3000 + 1.5 Gig RAM 80 Gig IDE HDD
13:03<Magotari_-#uml->>Heh. Pretty nice.
13:04<Magotari_-#uml->>ccache is a nice thing, but not really for the kernel.
13:04<linux__alien-#uml->>oh ok
13:04<linux__alien-#uml->>so with UML i can just play with the kernel
13:05<Magotari_-#uml->>Yeah, that is correct.
13:05<linux__alien-#uml->>i want to make some changes in the code and see how it behaves etc and then play with the netfilter code
13:05<Magotari_-#uml->>And your real system remains safe.
13:05<linux__alien-#uml->>and write a firewall
13:05<Magotari_-#uml->>Yeah, crash it, bash it, have fun with it.
13:05<linux__alien-#uml->>thanks :)
13:06<linux__alien-#uml->>thank you once again and will be back tomorrow here again
13:06<linux__alien-#uml->>cya
13:06<Magotari_-#uml->>Sure.
13:06<Magotari_-#uml->>Just please be patient a bit. :)
13:06<linux__alien-#uml->>Sure :)
13:06<Magotari_-#uml->>I might not be available at once.
13:06<linux__alien-#uml->>:)
13:06<linux__alien-#uml->>sure
13:06<Magotari_-#uml->>See you later.
13:06<linux__alien-#uml->>cya
13:06<linux__alien-#uml->>nice talking to you
13:08|-|linux__alien [~linux__al@59.92.55.223] has quit [Quit: Leaving]
14:12|-|aindilis [~aindilis@75.146.96.197] has quit [Remote host closed the connection]
14:17|-|tyler29 [~tyler@ARennes-257-1-156-72.w86-214.abo.wanadoo.fr] has quit [Ping timeout: 480 seconds]
14:24|-|aindilis [~aindilis@75.146.96.198] has joined #uml
14:33|-|tyler29 [~tyler@ARennes-257-1-126-195.w86-210.abo.wanadoo.fr] has joined #uml
15:35|-|tyler29 [~tyler@ARennes-257-1-126-195.w86-210.abo.wanadoo.fr] has quit [Ping timeout: 480 seconds]
15:47|-|tyler29 [~tyler@ARennes-257-1-100-185.w81-48.abo.wanadoo.fr] has joined #uml
17:08|-|kos_tom [~thomas@meridon.bulix.org] has quit [Remote host closed the connection]
17:38|-|Infinito [argos@200-140-69-91.gnace701.dsl.brasiltelecom.net.br] has quit [Quit: Quitte]
17:39|-|namit [~test_acco@83-70-39-95.b-ras1.prp.dublin.eircom.net] has joined #uml
18:07|-|aindilis [~aindilis@75.146.96.198] has quit [Read error: Connection reset by peer]
18:08|-|aindilis [~aindilis@75.146.96.198] has joined #uml
18:55<Magotari_-#uml->>Third rewrite of the console thingy. It compiles, but... Yeah...
19:08|-|tyler29 [~tyler@ARennes-257-1-100-185.w81-48.abo.wanadoo.fr] has quit [Remote host closed the connection]
19:27|-|remus [~remus@76.231.178.131] has joined #uml
19:44|-|Infinito [argos@200-140-69-91.gnace701.dsl.brasiltelecom.net.br] has joined #uml
23:52|-|Infinito [argos@200-140-69-91.gnace701.dsl.brasiltelecom.net.br] has quit [Quit: Quitte]
23:54|-|remus [~remus@76.231.178.131] has quit [Remote host closed the connection]
23:56|-|Infinito [argos@200-140-69-91.gnace701.dsl.brasiltelecom.net.br] has joined #uml
23:58|-|VS_ChanLog [~stats@ns.theshore.net] has left #uml [Rotating Logs]
23:58|-|VS_ChanLog [~stats@ns.theshore.net] has joined #uml
---Logclosed Mon Dec 24 00:00:12 2007