Re: [DTRACE] ctfconvert ".bss data: Invalid section descriptor" +

2010-07-15 Thread jhell
On 07/16/2010 00:31, Alexander Kabaev wrote: > On Thu, 15 Jul 2010 20:02:01 -0400 > jhell wrote: > >> >> I should probably note that this is on stable/8 i386 r210115. And that >> this was before the 210145:210147 commits. >> > This is a message from ctfconvert bogusly trying to read non-existent

Re: [DTRACE] ctfconvert ".bss data: Invalid section descriptor" +

2010-07-15 Thread Alexander Kabaev
On Thu, 15 Jul 2010 20:02:01 -0400 jhell wrote: > > I should probably note that this is on stable/8 i386 r210115. And that > this was before the 210145:210147 commits. > This is a message from ctfconvert bogusly trying to read non-existent data from .bss. I have fix for this which I forwarded t

Re: Use of printf's inside a kernel thread

2010-07-15 Thread Boris Kochergin
Patrick Mahan wrote: Just wondering if there is some constraints to using printf() calls inside a kernel thread (created by kthread_create()). I'm currently trying to debug a worker thread but the printf's are coming out garbled. Not entirely sure why this could be occurring. OS: FreeBSD 7.3

Re: disk I/O, VFS hirunningspace

2010-07-15 Thread Attilio Rao
2010/7/15 Alan Cox : > On Thu, Jul 15, 2010 at 8:01 AM, Ivan Voras wrote: > >> On 07/14/10 18:27, Jerry Toung wrote: >> > On Wed, Jul 14, 2010 at 12:04 AM, Gary Jennejohn >> > wrote: >> > >> >> >> >> >> >> Rather than commenting out the code try setting the sysctl >> >> vfs.hirunningspace to vario

Re: [DTRACE] ctfconvert ".bss data: Invalid section descriptor" +

2010-07-15 Thread jhell
I should probably note that this is on stable/8 i386 r210115. And that this was before the 210145:210147 commits. Regards, -- jhell,v ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubsc

[DTRACE] ctfconvert ".bss data: Invalid section descriptor" +

2010-07-15 Thread jhell
Through 3 recent ``buildkernel'' runs I have logged the following. The build logs are available to those with interest. I have tested this with three variations to the environment i.e. make.conf, src.conf, make -j{N}, & a vanilla build. The errors come up the same way but with a variation of the

Use of printf's inside a kernel thread

2010-07-15 Thread Patrick Mahan
Just wondering if there is some constraints to using printf() calls inside a kernel thread (created by kthread_create()). I'm currently trying to debug a worker thread but the printf's are coming out garbled. Not entirely sure why this could be occurring. OS: FreeBSD 7.3 on an Intel Xeon with

Re: strange problem with int64_t variables

2010-07-15 Thread Gabor Kovesdan
Em 2010.07.13. 16:05, pluknet escreveu: #ifndef _SYS_SYSPROTO_H_ struct setjlimit_args { jid_t jid; int resource; struct rlimit *rlp; }; #endif int setjlimit(td, uap) struct thread *td; struct setjlimit_args /* { jid_t jid;

Re: libjail issues.

2010-07-15 Thread Jamie Gritton
On 07/15/10 04:12, Stanislav Uzunchev wrote: I have found something very strange to me... It is a problem with static allocating size of buffer where jail param is going to be coppied, using jail_getv function from the libjails. Well for example: buff[size]; jail_getv(0, "name", "1", "host.host

Re: Kernel linker and undefined references in KLD

2010-07-15 Thread Kostik Belousov
On Thu, Jul 15, 2010 at 10:36:04PM +0400, Andrey V. Elsukov wrote: > On 15.07.2010 18:32, Kostik Belousov wrote: > > The kernel linker ignores weak attribute of the symbol, as you see. > > There is more bugs in this department, in regard of the list of > > exported symbols from the modules. > > >

Re: disk I/O, VFS hirunningspace

2010-07-15 Thread Alan Cox
On Thu, Jul 15, 2010 at 8:01 AM, Ivan Voras wrote: > On 07/14/10 18:27, Jerry Toung wrote: > > On Wed, Jul 14, 2010 at 12:04 AM, Gary Jennejohn > > wrote: > > > >> > >> > >> Rather than commenting out the code try setting the sysctl > >> vfs.hirunningspace to various powers-of-two. Default seems

Re: Kernel linker and undefined references in KLD

2010-07-15 Thread Andrey V. Elsukov
On 15.07.2010 18:32, Kostik Belousov wrote: > The kernel linker ignores weak attribute of the symbol, as you see. > There is more bugs in this department, in regard of the list of > exported symbols from the modules. > > I have a patch that fixes the issues, but I am leery to commit it, since > th

Re: Kernel linker and undefined references in KLD

2010-07-15 Thread Kostik Belousov
On Thu, Jul 15, 2010 at 10:13:54PM +0400, Dmitry Krivenok wrote: > Unfortunately, one can easily miss such problems during build of the module. > I'm working on a system which consists of lots of user-space programs > and kernel modules and > uses it's own complicated build system. > gcc option -We

Re: Kernel linker and undefined references in KLD

2010-07-15 Thread Dmitry Krivenok
Unfortunately, one can easily miss such problems during build of the module. I'm working on a system which consists of lots of user-space programs and kernel modules and uses it's own complicated build system. gcc option -Werror is not used by the build system (I believe it should), that's why we j

Re: how to do page level mem alloc in freebsd kernel?

2010-07-15 Thread kalash nainwal
2010/7/15 Kostik Belousov : > On Thu, Jul 15, 2010 at 08:24:53PM +0530, kalash nainwal wrote: >> On Thu, Jul 15, 2010 at 5:41 PM, John Baldwin wrote: >> > On Thursday, July 15, 2010 6:28:53 am kalash nainwal wrote: >> >> Hi, >> >> >> >> I want to allocate one (or more) pages in kernel space. >> >>

Re: Kernel linker and undefined references in KLD

2010-07-15 Thread Kostik Belousov
On Thu, Jul 15, 2010 at 05:32:35PM +0300, Kostik Belousov wrote: > On Thu, Jul 15, 2010 at 06:07:36PM +0400, Dmitry Krivenok wrote: > > Hello Hackers, > > > > I have a question about kernel linker. > > Please take a look at an example of simple module: > > > >

Re: how to do page level mem alloc in freebsd kernel?

2010-07-15 Thread Kostik Belousov
On Thu, Jul 15, 2010 at 08:24:53PM +0530, kalash nainwal wrote: > On Thu, Jul 15, 2010 at 5:41 PM, John Baldwin wrote: > > On Thursday, July 15, 2010 6:28:53 am kalash nainwal wrote: > >> Hi, > >> > >> I want to allocate one (or more) pages in kernel space. > >> I'm not sure what is the api in fre

Re: how to do page level mem alloc in freebsd kernel?

2010-07-15 Thread kalash nainwal
On Thu, Jul 15, 2010 at 5:41 PM, John Baldwin wrote: > On Thursday, July 15, 2010 6:28:53 am kalash nainwal wrote: >> Hi, >> >> I want to allocate one (or more) pages in kernel space. >> I'm not sure what is the api in freebsd (something which >> is similar to __get_free_pages() of linux). >> >> W

Re: how to do page level mem alloc in freebsd kernel?

2010-07-15 Thread kalash nainwal
On Thu, Jul 15, 2010 at 4:46 PM, "Marc Lörner" wrote: > Hello, > what about using contigmalloc(9), there you can specify > alignment and boundary. > > HTH, > Marc > Thanks Marc. I had thought of using contigmalloc, but was not sure what would be the other args (boundary, low, high etc.) in my ca

Re: Kernel linker and undefined references in KLD

2010-07-15 Thread Kostik Belousov
On Thu, Jul 15, 2010 at 06:07:36PM +0400, Dmitry Krivenok wrote: > Hello Hackers, > > I have a question about kernel linker. > Please take a look at an example of simple module: > > > #include > #include > #include >

Kernel linker and undefined references in KLD

2010-07-15 Thread Dmitry Krivenok
Hello Hackers, I have a question about kernel linker. Please take a look at an example of simple module: #include #include #include #include #include #include #include /* DECLARING A FUNCTION JUST TO AVOID WARNIN

Re: 8.1RC2 amd64 machine check question

2010-07-15 Thread John Baldwin
On Thursday, July 15, 2010 8:42:09 am Andrew Heybey wrote: > On Jul 15, 2010, at 8:07 AM, John Baldwin wrote: > > > On Wednesday, July 14, 2010 11:25:29 am Andrew Heybey wrote: > >> Got the following in /var/log/messages on my one-week-old amd64 box > >> running 8.1RC2: > >> > >> Jul 13 20:30:17

Re: disk I/O, VFS hirunningspace

2010-07-15 Thread Ivan Voras
On 07/14/10 18:27, Jerry Toung wrote: > On Wed, Jul 14, 2010 at 12:04 AM, Gary Jennejohn > wrote: > >> >> >> Rather than commenting out the code try setting the sysctl >> vfs.hirunningspace to various powers-of-two. Default seems to be >> 1MB. I just changed it on the command line as a test to 2

Re: 8.1RC2 amd64 machine check question

2010-07-15 Thread Andrew Heybey
On Jul 15, 2010, at 8:07 AM, John Baldwin wrote: > On Wednesday, July 14, 2010 11:25:29 am Andrew Heybey wrote: >> Got the following in /var/log/messages on my one-week-old amd64 box running >> 8.1RC2: >> >> Jul 13 20:30:17 spaten kernel: MCA: Global Cap 0x0106, Status >> 0x

Re: how to do page level mem alloc in freebsd kernel?

2010-07-15 Thread John Baldwin
On Thursday, July 15, 2010 6:28:53 am kalash nainwal wrote: > Hi, > > I want to allocate one (or more) pages in kernel space. > I'm not sure what is the api in freebsd (something which > is similar to __get_free_pages() of linux). > > Would malloc(4096, ...) guarantee that the returned > address

Re: 8.1RC2 amd64 machine check question

2010-07-15 Thread John Baldwin
On Wednesday, July 14, 2010 11:25:29 am Andrew Heybey wrote: > Got the following in /var/log/messages on my one-week-old amd64 box running > 8.1RC2: > > Jul 13 20:30:17 spaten kernel: MCA: Global Cap 0x0106, Status > 0x > Jul 13 20:30:17 spaten kernel: MCA: Vendor "Au

Re: avoid producing empty set_pcpu section [Was: elf obj load: skip zero-sized sections early]

2010-07-15 Thread Andriy Gapon
on 15/07/2010 14:39 Kostik Belousov said the following: > > Is new behaviour completely identical to the behaviour of the newer > ld ? No, it's not completely identical. __start_SECNAME placement would be identical, but our ld would still assign the symbol while latest upstream binutils PROVIDES

re: how to do page level mem alloc in freebsd kernel?

2010-07-15 Thread Marc Lörner
Hello, what about using contigmalloc(9), there you can specify alignment and boundary. HTH, Marc >Hi, > >I want to allocate one (or more) pages in kernel space. >I'm not sure what is the api in freebsd (something which >is similar to __get_free_pages() of linux). > >Would malloc(4096, ...) guara

Re: avoid producing empty set_pcpu section [Was: elf obj load: skip zero-sized sections early]

2010-07-15 Thread Kostik Belousov
On Thu, Jul 15, 2010 at 02:25:26PM +0300, Andriy Gapon wrote: > on 11/07/2010 15:23 Andriy Gapon said the following: > > on 11/07/2010 14:54 Andriy Gapon said the following: > >> For completeness, here is a patch that simply drops the inline assembly > >> and the > >> comment about it, and GCC-gen

avoid producing empty set_pcpu section [Was: elf obj load: skip zero-sized sections early]

2010-07-15 Thread Andriy Gapon
on 11/07/2010 15:23 Andriy Gapon said the following: > on 11/07/2010 14:54 Andriy Gapon said the following: >> For completeness, here is a patch that simply drops the inline assembly and >> the >> comment about it, and GCC-generated assembly and its diff: >> http://people.freebsd.org/~avg/dpcpu/pc

how to do page level mem alloc in freebsd kernel?

2010-07-15 Thread kc nainwal
Hi, I want to allocate one (or more) pages in kernel space. I'm not sure what is the api in freebsd (something which is similar to __get_free_pages() of linux). Would malloc(4096, ...) guarantee that the returned address is aligned on page boundary? Thanks and regards, -Kalash __

how to do page level mem alloc in freebsd kernel?

2010-07-15 Thread kalash nainwal
Hi, I want to allocate one (or more) pages in kernel space. I'm not sure what is the api in freebsd (something which is similar to __get_free_pages() of linux). Would malloc(4096, ...) guarantee that the returned address is aligned on page boundary? Thanks and regards, -Kalash __

libjail issues.

2010-07-15 Thread Stanislav Uzunchev
Hi, all. I have found something very strange to me... It is a problem with static allocating size of buffer where jail param is going to be coppied, using jail_getv function from the libjails. Well for example: buff[size]; jail_getv(0, "name", "1", "host.hostname", buff, NULL); the result for si