Re: [9fans] Problem with outputing from kernel

2023-10-09 Thread dusan3sic
https://9p.io/wiki/plan9/avoiding_screen_pollution_from_kernel_messages/index.html
this helped
--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T31db04ef89737d25-M6bbf54d0c44e0b1751ec3632
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


[9fans] Problem with outputing from kernel

2023-10-04 Thread dusan3sic
I added some logs in /sys/src/9/port/proc.c for some tests of the scheduler, I 
want to see at what moments do real time processes take the cpu. I did that 
with simple prints with the intention of doing cat /dev/kmesg > someFile 
because all the prints are stored there.  

The problem is that the flow of output just randomly stops at times and 
continues(only once by test) and i lose some of the output  which is really 
important. Any ideas why?

Also I was doing with tail -f /dev/kmesg in the background and without that 
/dev/kmesg loses the start of output up to some random moment where it shows 
it. Could the problem be that i have too many outputs?
--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T31db04ef89737d25-Ma028dd0e821a763795e71625
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] print() in kernel space doesn't work like I would think

2023-09-01 Thread dusan3sic
I tried actually running some realtime processes and the print msg appeared. 
Thanks
--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/Te1d00dae663114b2-M0b15b6c18936d12d96aa47dc
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] print() in kernel space doesn't work like I would think

2023-08-31 Thread dusan3sic
> if you don't see this print, you're somehow 
running the wrong kernel.
I can see that.

> this one won't print until you start using
the edf scheduler.
Isn't windowing handled like a realtime process? Does it not start any realtime 
process at boot? I can see that being the problem here. 
--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/Te1d00dae663114b2-Mf55a3a1fe57d4eafe3104092
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] print() in kernel space doesn't work like I would think

2023-08-31 Thread dusan3sic
> also, the steps you used to install and boot the new kernel.

I downloaded img from 9front.
I was changing the source code and building with this script I made
#!/bin/rc

mk install
9fs 9fat
cp /sys/src/9/pc64/9pc64 /n/9fat/9pc64
mk clean
I am running it from /sys/src/9/pc64/
--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/Te1d00dae663114b2-Me2158acbfcbc451a0ed90ddf
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] print() in kernel space doesn't work like I would think

2023-08-31 Thread dusan3sic
> show your diff.

(hint: bind -ac /dist/plan9front / && git/diff /sys/src/9 | webpaste)

diff 66fc6a3e6443d7eb8298f65b0c9803197d196ec7 uncommitted
--- a//sys/src/9/mkfile
+++ b//sys/src/9/mkfile
@@ -1,17 +1,17 @@
ARCH=\
-   bcm\
-   bcm64\
-   cycv\
-   kw\
+   #bcm\
+   #bcm64\
+   #cycv\
+   #kw\
#mtx\
-   omap\
-   pc\
+   #omap\
+   #pc\
pc64\
#ppc\
-   sgi\
-   teg2\
-   xen\
-   zynq\
+   #sgi\
+   #teg2\
+   #xen\
+   #zynq\

all:V:
for(i in $ARCH)@{
--- a//sys/src/9/pc64/main.c
+++ b//sys/src/9/pc64/main.c
@@ -182,7 +182,7 @@
i8250console();
quotefmtinstall();
screeninit();
-   print("\nPlan 9\n");
+   print("\nPlan 69\n");
cpuidentify();
meminit0();
archinit();
--- a//sys/src/9/port/edf.c
+++ b//sys/src/9/port/edf.c
@@ -10,9 +10,10 @@

/* debugging */
enum {
-   Dontprint = 1,
+   Dontprint = 0,
};

+
#define DPRINT  if(Dontprint){}else print

static long now;/* Low order 32 bits of time in µs */
@@ -118,6 +119,7 @@
void
edfinit(Proc*p)
{
+   print("NESTO");
if(!edfinited){
fmtinstall('t', timeconv);
edfinited++;

--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/Te1d00dae663114b2-M4ca4b50abdab602d087c7b2f
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] print() in kernel space doesn't work like I would think

2023-08-31 Thread dusan3sic
> try
> 
> cat /dev/kmesg
> or
> cat /dev/kprint

/dev/kmesg outputs the boot output I was talking about, but there wasn't my 
print.

dev/kprint doesn't print anything and doesn't let me finish the program. I was 
looking at this 

 and did that but no luck there neither. It says null list concatenation when I 
am booting it and I think it's because $sysname is empty. When I say smth 
random instead of sysname it makes the file but it's still empty. 

--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/Te1d00dae663114b2-Mc46eb4d9cbdcc3a2e9462e3c
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


[9fans] print() in kernel space doesn't work like I would think

2023-08-31 Thread dusan3sic
I was editing plan9's realtime scheduler in /sys/src/9/port/edf.c and was 
trying to add a print to log something, but print didn't show anywhere(or I am 
looking at the wrong place). It has some prints in source code already, with 
this define.
#define DPRINT  if(Dontprint){}else print
And with Dontprint set to 0

I was expecting the output to be at boot time, in boot screen where it asks for 
bootargs, but it wasn't there. I thought it was either the wrong place I am 
looking at or it prints after I start the gui so I don't get to see it. 

Then i tried other prints,  iprint() seemed really cool and usefull but it does 
nothing. It builds ok, but doesn't output anything on serial (on Qemu serial 
window). Also, it didn't work in some user space program I made to test it. 

All I want is to have a normal log system so I can log things on screen.
--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/Te1d00dae663114b2-M7023d44f6d581fa0bf266fef
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


[9fans] /dev/realtime doesn't exist?

2023-08-29 Thread dusan3sic
I was reading an article about plan9's realtime scheduler edf 
(http://doc.cat-v.org/plan_9/real_time/real_time_in_a_real_operating_system/real_time_in_a_real_operating_system.pdf,
 page 7), and they mentioned using /dev/realtime to create realtime processes, 
but /dev/realtime doesn't exist on my machine (I am using 9front). I found a 
post here from 07 saying something about removing it a long time ago, but it 
got no answers. 

In proc(3) they mention some commands for configuring realtime processes but I 
don't know if that is to configure an already made realtime process or to make 
one from a regular. How do i make realtime processes in these days?
--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/Td0e7a4f73d1eae3b-M41147d163677a52982cd7486
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] Plan9 multi-core support

2023-08-27 Thread dusan3sic
I am using it in a browser 
--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T912e4838cb1a371f-M91d93331c50c119b546c63b4
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] Plan9 multi-core support

2023-08-27 Thread dusan3sic
Btw, how do I reply to someone like you are doing? Copying and quoting manually 
seems weird.
--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T912e4838cb1a371f-Mc65eb7f7f6f43ff9c92f4dc0
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] Plan9 multi-core support

2023-08-27 Thread dusan3sic
I finally read the article about asking questions, sorry if i was being rude or 
was waisting your time, wasn't my intention. 

And about the multi-core support, well I kinda moved away from it since I don't 
really need it, I was just wondering if i can disable it in an easy way for the 
measurement I am doing
--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T912e4838cb1a371f-Mb54a3c9975197bab2a03631a
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


[9fans] Plan9 multi-core support

2023-08-26 Thread dusan3sic
Does plan9 have multi-core support? If it does, how does it manage it (what 
files/man pages/docs do I read). If it doesn't have, how would I implement it. 
--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T912e4838cb1a371f-M00dd91d9c0733c0d2840554b
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] Using 9front as a server

2023-08-26 Thread dusan3sic
I just ran aux/listen and it worked lol
--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T1eb6489031b3e452-M81edf4d8b035103775c95d7d
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


[9fans] Using 9front as a server

2023-08-22 Thread dusan3sic
I want to use my 9front booted from QEMU as a server, so i can transfer files 
from linux to 9front, but it wont open any ports. Help
--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T1eb6489031b3e452-M8f4591713adaef40ef0cae4a
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] Any material on processes?

2023-06-16 Thread dusan3sic

Nice
--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T0435dff1125b5a83-M192cfd6d09b7a7b969bac84e
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


[9fans] Any material on processes?

2023-06-16 Thread dusan3sic
I want to look into process management and how a scheduler works and thing like 
that, but all I can find is inter-process communication with 9P and the rest is 
all just file systems. Any help?
--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T0435dff1125b5a83-M95c6061019325191fa1d0e86
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] How do I build from source on linux?

2023-06-15 Thread dusan3sic
I find the system interesting, but I don't seem to be really productive with 
it. I mean i just started using it (as you have already figured out) and I am 
struggling a bit but it seems a lot of fun.
--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T5b2523de4ef223e9-Ma17146d25fda62f83df1beb2
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] How do I build from source on linux?

2023-06-15 Thread dusan3sic
Research
--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T5b2523de4ef223e9-Mb1f35294968303174a692e40
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] How do I build from source on linux?

2023-06-15 Thread dusan3sic
How do I export the files from Linux to qemu?
--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T5b2523de4ef223e9-M9a23448522437f9ec0dabbb3
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] How do I build from source on linux?

2023-06-15 Thread dusan3sic
Well i wanted to do things on Linux since i don't find the environment nice at 
all on 9front and would want to make my life easier by doing it on Linux. Turns 
out not.
--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T5b2523de4ef223e9-Ma41eb48023f4f9b690848a21
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


[9fans] How do I build from source on linux?

2023-06-15 Thread dusan3sic
I run 9front with QEMU and i want to make some changes to it from source and 
than build it and run it on qemu. How do I build it on linux with no mk?
--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T5b2523de4ef223e9-Mcad6fa3f459b28fb3b5420a6
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] Any interesting topics?

2023-06-14 Thread dusan3sic
Yes! Thanks a lot!

--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T4cf851249809c08b-Mc55a22ae5e365e42f66a69b5
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


[9fans] Any interesting topics?

2023-06-14 Thread dusan3sic
I wanna make some kind of a research on plan9/9front for fun but can't seem to 
find what topics are interesting these days and what are some flaws that i can 
investigate or something like that? Thanks in advance!
--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T4cf851249809c08b-Mdd0b88c59360cb9993be3df9
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription