Re: clang mangling some static struct names?

2012-11-16 Thread Roman Divacky
Yes, it does that. iirc so that you can have things like void foo(int cond) { if (cond) { static int i = 7; } else { static int i = 8; } } working correctly. I dont know why scsi_low_statics is there multiple times. On Fri, Nov 16, 2012 at 12:36:13PM -0800, Navdeep Parhar wrote:

Re: [PATCH] FreeBSD compiler extensions

2011-07-05 Thread Roman Divacky
Why do you need this? Format-extensions are kernel only (which you dont use I presume) and no-align-long-strings is boot only (which you dont use either). Hm? :) roman On Tue, Jul 05, 2011 at 10:27:51AM +0200, Robert Millan wrote: This patch conditionalizes a pair of FreeBSD compiler

Re: dwarf2 reader

2011-06-13 Thread Roman Divacky
There's our very own http://sourceforge.net/apps/trac/elftoolchain/wiki/libdwarf On Mon, Jun 13, 2011 at 10:05:15AM -0400, Ewart Tempest wrote: I have developed some flight recording capability in the JUNOS FreeBSD based kernel, with the flight recorded data being captured in binary form

Re: make question

2011-04-29 Thread Roman Divacky
On Thu, Apr 28, 2011 at 08:50:27PM +0200, Hartmut Brandt wrote: On Thu, 28 Apr 2011, Roman Divacky wrote: RDOn Thu, Apr 28, 2011 at 05:52:58PM +0200, Hartmut Brandt wrote: RD Hi Roman, RD RD On Wed, 27 Apr 2011, Roman Divacky wrote: RD RD RDYou seem to have messed with bsd make so I

Re: make question

2011-04-28 Thread Roman Divacky
On Thu, Apr 28, 2011 at 05:52:58PM +0200, Hartmut Brandt wrote: Hi Roman, On Wed, 27 Apr 2011, Roman Divacky wrote: RDYou seem to have messed with bsd make so I have a question for you :) Yeah, that was some time ago ... RDWhen a job is about to be executed in JobStart() a pipe

make question

2011-04-27 Thread Roman Divacky
hi harti! You seem to have messed with bsd make so I have a question for you :) When a job is about to be executed in JobStart() a pipe is created with its ends connected to job-inPipe/job-outPipe. When the job is actually created in JobExec() the ps.out is set to job-outPipe so that in

Re: FreeBSD ABI?

2011-02-21 Thread Roman Divacky
On Mon, Feb 21, 2011 at 10:36:39AM -0800, Yuri wrote: Where is it documented? Are there differences with the linux ABI? Particularly I am interested in stack alignment requirement. For example i386 Solaris, Linux and MacOS have 16 bit stack alignment for procedure calls. This is reflected

Re: empty function macros

2011-02-01 Thread Roman Divacky
On Mon, Jan 31, 2011 at 09:51:58AM +, Alexander Best wrote: On Mon Jan 31 11, Roman Divacky wrote: no problem with this with clang :) hmso compiling the following code int main(int argc, char **argv) { if (12) ; } with clang -Werror code.c -o code works for you

Re: empty function macros

2011-02-01 Thread Roman Divacky
On Tue, Feb 01, 2011 at 11:25:01AM +, Alexander Best wrote: On Tue Feb 1 11, Roman Divacky wrote: On Mon, Jan 31, 2011 at 09:51:58AM +, Alexander Best wrote: On Mon Jan 31 11, Roman Divacky wrote: no problem with this with clang :) hmso compiling the following

Re: empty function macros

2011-01-31 Thread Roman Divacky
no problem with this with clang :) On Sun, Jan 30, 2011 at 05:29:41PM +, Alexander Best wrote: hi there, i noticed freebsd has a few of the following macros: #define FUNC(sb) when you do something like if (cond) FUNC(i) the compiler complains about an if statement with an

Re: NVIDIA (port) driver fails to create /dev/nvidactl; 8.2Prerelease

2011-01-28 Thread Roman Divacky
does kldstat | grep nvidia show anything? if not kldload nvidia or echo nvidia_load=\YES\ /boot/loader.conf reboot does this change anything? you seem to be missing /dev/nvidiactl which probably means that the nvidia module is not loaded On Fri, Jan 28, 2011 at 12:43:12PM -0800, Duane H.

Re: Removal of libobjc

2010-10-15 Thread Roman Divacky
On Fri, Oct 15, 2010 at 08:15:52PM +0100, Rui Paulo wrote: Hi, I was hoping we could remove libobjc from the base system as it's seriously outdated and it's not used by anything on the base system. If there are any objections, please speak up. please wait until the ports are converted to

Re: Examining the VM splay tree effectiveness

2010-09-30 Thread Roman Divacky
are you aware of Summer of Code 2008 project by Mayur Shardul? quoting: http://www.freebsd.org/projects/summerofcode-2008.html Project: VM Algorithm Improvement Student: Mayur Shardul Mentor: Jeff Roberson Summary: A new data structure, viz. radix tree, was implemented and used for management

Re: Dynamic ticks in FreeBSD

2010-03-31 Thread Roman Divacky
On Wed, Mar 31, 2010 at 04:05:33AM -0800, Tsuyoshi Ozawa wrote: Thank you for replying ! The patch for FreeBSD 8.0 original source is here : http://gist.github.com/350230 looks good I wonder - why don't we store the callouts in binary tree so the searching for nearest callout is faster?

Re: Dynamic ticks in FreeBSD

2010-03-30 Thread Roman Divacky
On Tue, Mar 30, 2010 at 05:39:04AM -0800, Tsuyoshi Ozawa wrote: Hello, I started to work dynamic ticks in FreeBSD, and now experimental code start to work roughly. The code is here : http://github.com/oza/FreeBSD-8.0-dyntick this is great! would it be possible for you to provide a patch?

Re: sysctl with regex?

2010-02-10 Thread Roman Divacky
On Wed, Feb 10, 2010 at 12:24:57PM +0100, Dag-Erling Sm??rgrav wrote: Garrett Cooper yanef...@gmail.com writes: C-shell globs as some programming languages referring to it as, i.e. perl (which this is a subset of the globs concept) allow for expansion via `*' to be `anything'. Regexp style

Re: Small libstdc++ change required

2009-12-19 Thread Roman Divacky
On Sat, Dec 19, 2009 at 09:28:55AM +0200, Vlad Galu wrote: Hi, as per http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36612, could one please apply the following patch? the patch in question seems to be GPLv3, we cant apply it then... ___

Re: Make process title - % complete

2009-10-20 Thread Roman Divacky
On Tue, Oct 20, 2009 at 02:42:17PM +0200, Ivan Voras wrote: Alex Kozlov wrote: Of course ps or top output much more convenient, but if setproctitle so expencive and will be called so often, then SIGINFO may be good compromise. Regarding speed of setproctitle(), here are some

Re: llvm/clang a tool chain or just a compiler for FreeBSD?

2009-07-22 Thread Roman Divacky
On Wed, Jul 22, 2009 at 09:18:46AM +0800, Shaowei Wang (wsw) wrote: On Tue, Jul 21, 2009 at 9:17 PM, Roman Divacky rdiva...@freebsd.org wrote: On Tue, Jul 21, 2009 at 12:34:29PM +0800, Shaowei Wang (wsw) wrote: Hi, hackers! Recently I am playing the clangbsd i386 branch and it works

Re: llvm/clang a tool chain or just a compiler for FreeBSD?

2009-07-22 Thread Roman Divacky
On Wed, Jul 22, 2009 at 04:52:58PM +0100, Igor Mozolevsky wrote: 2009/7/22 Kostik Belousov kostik...@gmail.com: I believe that the nearest action that is quite reasonable and profitable by its own merit is divorcing base compiler and compiler used to build ports. Even if this means that

Re: llvm/clang a tool chain or just a compiler for FreeBSD?

2009-07-22 Thread Roman Divacky
On Wed, Jul 22, 2009 at 06:20:36PM +0200, Ed Schouten wrote: * Dag-Erling Sm?rgrav d...@des.no wrote: Shaowei Wang (wsw) wsw1w...@gmail.com writes: So what's the direction? Are we going to cut off all the GNU compiler tool chains and use the llvm/clang when it's mature. Who's we?

Re: llvm/clang a tool chain or just a compiler for FreeBSD?

2009-07-21 Thread Roman Divacky
On Tue, Jul 21, 2009 at 12:34:29PM +0800, Shaowei Wang (wsw) wrote: Hi, hackers! Recently I am playing the clangbsd i386 branch and it works. I've noticed that clang using gcc to linking object code or even doing assembling. clang from FreeBSD perspective will be a whole compiler tool

Re: Clang: now available from a SVN server near you!

2009-06-10 Thread Roman Divacky
On Fri, Jun 05, 2009 at 09:45:44AM +0200, Erik Cederstrand wrote: Hi Roman Den 04/06/2009 kl. 14.38 skrev Roman Divacky: you could use llvm-ld (see the wiki for instructions how to do it). there's also some effort to make gnu ld usable with llvm LTO and I guess the patch could

Re: Clang: now available from a SVN server near you!

2009-06-04 Thread Roman Divacky
On Thu, Jun 04, 2009 at 11:38:31AM +0200, Ed Schouten wrote: Good news everyone! As I mentioned at BSDCan, I was going to import my FreeBSD+Clang branch into SVN. Tuesday I finally had some time to do it, so here's the result: http://svn.freebsd.org/viewvc/base/projects/clangbsd/

Re: Clang: now available from a SVN server near you!

2009-06-04 Thread Roman Divacky
On Thu, Jun 04, 2009 at 02:35:56PM +0200, Erik Cederstrand wrote: Den 04/06/2009 kl. 11.38 skrev Ed Schouten: You can now build your very own version of FreeBSD with Clang installed as /usr/bin/cc as follows: Thanks for your hard work, Ed. This is great news! You might want to

Re: In search of a video card

2009-05-14 Thread Roman Divacky
On Wed, May 13, 2009 at 08:06:34PM -0700, Josef Grosch wrote: I'm in search for a decent video card. I currently have an Nvidia GeForce 8400 GS. It worked pretty well i386 FreeBSD 6.2. I have upgraded my home machine and I am running amd64 FreeBSD 7.2 and it just refuses to go into X. It

Re: C99: Suggestions for style(9)

2009-04-28 Thread Roman Divacky
I like the part about using as many variables as possible because of documentation and performance enhancements. I tend to like the other changes as well.. On Sun, Apr 26, 2009 at 09:02:36AM +0200, Christoph Mallon wrote: Hi hackers@, as some of you may have noticed, several years ago a new

[PATCH]: today highlighting in [n]cal

2009-04-20 Thread Roman Divacky
hi I made this patch that highlights today in cal/ncal just like gnu cal does.. www.vlakno.cz/~rdivacky/cal.patch unless objected I plan to commit this soon (with fixes to style(9)) roman pgp6bLOqaYr81.pgp Description: PGP signature

Re: [PATCH]: today highlighting in [n]cal

2009-04-20 Thread Roman Divacky
On Mon, Apr 20, 2009 at 11:21:26AM +0200, Simon 'corecode' Schubert wrote: Hey Roman, Roman Divacky wrote: I made this patch that highlights today in cal/ncal just like gnu cal does.. www.vlakno.cz/~rdivacky/cal.patch Thanks for this patch, I've been meaning to hack one up

Re: [PATCH]: today highlighting in [n]cal

2009-04-20 Thread Roman Divacky
On Mon, Apr 20, 2009 at 12:24:32PM +0200, Roman Divacky wrote: On Mon, Apr 20, 2009 at 11:21:26AM +0200, Simon 'corecode' Schubert wrote: Hey Roman, Roman Divacky wrote: I made this patch that highlights today in cal/ncal just like gnu cal does.. www.vlakno.cz/~rdivacky

Re: [PATCH]: today highlighting in [n]cal

2009-04-20 Thread Roman Divacky
On Mon, Apr 20, 2009 at 01:53:56PM +0200, Simon 'corecode' Schubert wrote: Roman Divacky wrote: On Mon, Apr 20, 2009 at 11:21:26AM +0200, Simon 'corecode' Schubert wrote: Hey Roman, Roman Divacky wrote: I made this patch that highlights today in cal/ncal just like gnu cal does

Re: [PATCH]: today highlighting in [n]cal

2009-04-20 Thread Roman Divacky
On Mon, Apr 20, 2009 at 11:21:26AM +0200, Simon 'corecode' Schubert wrote: Hey Roman, Roman Divacky wrote: I made this patch that highlights today in cal/ncal just like gnu cal does.. www.vlakno.cz/~rdivacky/cal.patch Thanks for this patch, I've been meaning to hack one up

Re: [PATCH]: today highlighting in [n]cal

2009-04-20 Thread Roman Divacky
On Mon, Apr 20, 2009 at 06:24:11PM +0200, Alexey Shuvaev wrote: On Mon, Apr 20, 2009 at 04:02:19PM +0200, Roman Divacky wrote: On Mon, Apr 20, 2009 at 11:21:26AM +0200, Simon 'corecode' Schubert wrote: Hey Roman, Roman Divacky wrote: I made this patch that highlights today in cal

Re: hosted, or not (Re: Renaming all symbols in libmp(3))

2009-02-28 Thread Roman Divacky
On Sat, Feb 28, 2009 at 10:24:56AM +0100, Ed Schouten wrote: * per...@pluto.rain.com per...@pluto.rain.com wrote: So perhaps one solution would be to compile libmp with -ffreestanding? And all applications that use mp.h. which is a nonsense... please move forward

Re: hosted, or not (Re: Renaming all symbols in libmp(3))

2009-02-27 Thread Roman Divacky
On Thu, Feb 26, 2009 at 11:46:22PM -0800, per...@pluto.rain.com wrote: By default, LLVM has a built-in prototype of pow(), similar to GCC. Unlike GCC, LLVM raises a compiler error by default ... ... it's invalid code to have a function named pow() in a hosted environment which is not

Re: TUNABLE_INT question

2009-02-18 Thread Roman Divacky
On Tue, Feb 17, 2009 at 05:51:13PM -0500, John Baldwin wrote: On Tuesday 17 February 2009 5:21:42 pm Roman Divacky wrote: On Tue, Feb 17, 2009 at 09:31:12AM -0500, John Baldwin wrote: On Friday 13 February 2009 5:16:07 pm Roman Divacky wrote: On Fri, Feb 13, 2009 at 03:55:44PM -0500

TUNABLE_INT question

2009-02-13 Thread Roman Divacky
hi #define TUNABLE_INT(path, var) \ static struct tunable_int __CONCAT(__tunable_int_, __LINE__) = { \ (path), \ (var), \ };

Re: TUNABLE_INT question

2009-02-13 Thread Roman Divacky
On Fri, Feb 13, 2009 at 03:55:44PM -0500, Ryan Stone wrote: __FILE__ is a string so you can't concat that with anything to produce an identifier. In any case, the variable is static so there can't be any collision problems with other files. I was talking about the SYSINIT parameter. thats a

Re: Posting a bounty for the nVidia 64-bit wishlist

2009-01-01 Thread Roman Divacky
On Thu, Jan 01, 2009 at 02:03:13PM +0900, Alastair Hogge wrote: On Thursday 01 January 2009 10:57:26 Garrett Cooper wrote: Hello Hackers, I have a request related to making FreeBSD to be a viable platform on AMD/Intel 64-bit architectures, such that functionality as requested by Chris

Re: How to access kernel memory from user space

2008-12-23 Thread Roman Divacky
On Mon, Dec 22, 2008 at 06:05:34PM -0600, Gerry Weaver wrote: Hello All, I am working on a driver that collects various network statistics via pfil. I have a simple array of structures that I use to store the statistics. I also have a user space process that needs to collect these

Re: [help]strange problem about gethostbyname/getaddrinfo

2008-12-10 Thread Roman Divacky
On Wed, Dec 10, 2008 at 02:36:27PM +0800, Cheng Renquan wrote: On Wed, Dec 10, 2008 at 1:57 PM, ? [EMAIL PROTECTED] wrote: hi,all,we have a project which must resolv some domains in the server process our system in FreeBSD 6.2 or 6.3, the server process may open 7000+ sockets,not

Re: TCSBRK not implemented in linux compat

2008-12-02 Thread Roman Divacky
On Tue, Dec 02, 2008 at 09:56:28PM +0100, Arjan van der Velde wrote: Hi, While trying to get a linux binary running on FreeBSD I encountered the following problem during serial port I/O. Dec 1 22:22:34 soekris kernel: linux: pid 7239 (linuxbinary): ioctl fd=0, cmd=0x5409 ('T',9) is

Re: minor change to src/usr.bin/window/wwend.c

2008-11-30 Thread Roman Divacky
On Sat, Nov 29, 2008 at 10:47:25PM -0500, Eitan Adler wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Fixes two errors when building with -ansi -Wall - --- wwend.c.backup 2008-11-29 22:41:42.0 -0500 +++ wwend.c 2008-11-29 22:46:08.0 -0500 @@ -40,12 +40,14 @@

Re: linux-libusb done

2008-10-26 Thread Roman Divacky
On Sun, Oct 26, 2008 at 11:49:02AM +0100, Martin Laabs wrote: Hi, I've build succesfully an androgynous libusb. This is a libusb in linux binary format with freebsd-like usb-access. (I use it to run a jtag-debugging utility which is supplied as a linux binary only.) Unfortunately I had to

Re: llvm/clang early test

2008-10-08 Thread Roman Divacky
On Wed, Oct 08, 2008 at 04:29:46PM +0300, Volodymyr Kostyrko wrote: Hi all. Does anyone tried to build world with clang (devel/llvm-devel)? I just have tested clang on some code from our tree, gzip and bzip2 for example. Well... it works. Gzip compiled with clang become faster, bzip2

Re: Building custom kernel with new files

2008-08-16 Thread Roman Divacky
On Sat, Aug 16, 2008 at 10:10:02PM +1200, Ryan French wrote: Hi All, I am currently trying to build a custom kernel for my Google Summer of Code, and am running into a bit of a problem. I have all of my code compiling, but when I get to the linking stage as soon as it comes to the new

Re: textvp_fullpath

2008-08-14 Thread Roman Divacky
On Thu, Aug 14, 2008 at 09:20:12PM +0300, Uladzislau Rezki wrote: Hello folks, I'm using textvp_fullpath function to get full path from vnode up to root dir. The problem is that, sometimes it works, sometimes no. I know that textvp_fullpath goes through the cache of the vnode and

kmem_alloc_wait and memory pools questions

2008-06-27 Thread Roman Divacky
hi I have two questions: 1) is kmem_alloc_wait() expensive operation? I believe it's not very cheap looking at the code but I want confirmation 2) is there a support for memory pools in FreeBSD? to give you a little background why I am asking this. In NetBSD Andrew Doran claims that replacing

Re: Decent 3D acceleration in 64bit mode?

2008-06-20 Thread Roman Divacky
On Thu, Jun 19, 2008 at 05:36:44PM -0400, Chuck Robey wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mike Meyer wrote: On Thu, 19 Jun 2008 14:00:42 -0400 Zaphod Beeblebrox [EMAIL PROTECTED] wrote: On Wed, Jun 18, 2008 at 8:13 AM, Stephen Hocking [EMAIL PROTECTED] wrote:

Re: Lack of Flash support is no longer acceptable. Bounty established...

2008-06-20 Thread Roman Divacky
On Fri, Jun 20, 2008 at 08:39:06AM +0200, Alexander Leidinger wrote: Quoting John Kozubik [EMAIL PROTECTED] (from Thu, 19 Jun 2008 14:38:11 -0700 (PDT)): First, a bounty has been posted here: http://blog.kozubik.com/john_kozubik/2007/12/bounty-posted-f.html From the site:

Re: FreeBSD and LLVM

2008-05-21 Thread Roman Divacky
On Tue, May 20, 2008 at 07:06:39PM +0200, Ed Schouten wrote: Hello everyone, First of all, for those of you who went to BSDCan, I hope you had a pleasant flight/trip back home. :-) On Saturday I went to the LLVM talk (see http://llvm.org/), which I really enjoyed. On Friday Remko Lodder

Re: hashinit versus phashinit

2008-05-06 Thread Roman Divacky
On Tue, May 06, 2008 at 02:25:56AM -0400, David Schultz wrote: On Mon, May 05, 2008, Roman Divacky wrote: hi when we want to use a hash table in kernel we call hashinit which initializes a hash table with power-of-2 size. There's also phashinit that creates hash table of size

hashinit versus phashinit

2008-05-05 Thread Roman Divacky
hi when we want to use a hash table in kernel we call hashinit which initializes a hash table with power-of-2 size. There's also phashinit that creates hash table of size that is a prime number. This was added in 1995 by davidg@ but it is not used anywhere in the kernel. phk@ commited rev. 1.30

Re: Please welcome our Summer of Code Students

2008-04-24 Thread Roman Divacky
On Thu, Apr 24, 2008 at 12:45:48AM +0200, Konrad Jankowski wrote: Greetings to all in the FreeBSD community! My long-time dream of joining has come! welcome! your project will help tons of people who are (attempting to) run databases on fbsd ;) thnx! roman

Re: strdup(NULL) supposed to create SIGSEGV?

2008-04-23 Thread Roman Divacky
I think someone gave the reason I'm about to: trying to copy a NULL pointer means I have a bug somewhere earlier in my code that will eventually produce visibly wrong results - a segfault being such. The sooner that happens after the bug, the less code I have to search to find it, the better

use of MAXPATHLEN in kernel

2008-04-12 Thread Roman Divacky
hi there's an awfully lot of code like char foo[MAXPATHLEN]; in the kernel. either in functions (ie. allocated on stack during runtime) or global variables. Most of the usage is without a good reason and only wastes space. should we do something about it? maybe an idea in

Re: Perforce and `p4 diff2' against the origin

2008-04-05 Thread Roman Divacky
On Sat, Apr 05, 2008 at 04:50:38PM +0200, Ed Schouten wrote: Hello everyone, Because my mpsafetty project in Perforce is going quite well, I'm considering running some kind of cron job to generate nightly diffs, so other people (interested friends, colleagues and others) to test my work.

Re: pfind() and the proc structure

2008-04-01 Thread Roman Divacky
On Mon, Mar 31, 2008 at 11:03:31PM -0700, Rao, Nikhil wrote: Hi List, The pfind(..) (in kern_proc.c) function below returns the proc structure for the PID passed in Say the thread that calls pfind() gets blocked at PROC_LOCK(p) (line 255 below), in the meantime what prevents the process

Re: pfind() and the proc structure

2008-04-01 Thread Roman Divacky
On Tue, Apr 01, 2008 at 07:23:58AM -0700, Rao, Nikhil wrote: Ok, I should have caught that :-( Another question - Now that the PROC_LOCK on p is obtained the all_proc lock is released and the function returns, at this point can't the proc get deallocated ? well.. thats why you hold the proc

Re: Updating vmware3 (and missing avail_end from /usr/include/machine/pmap.h)

2008-03-01 Thread Roman Divacky
On Fri, Feb 29, 2008 at 01:29:23PM -0800, [EMAIL PROTECTED] wrote: Hi all: I'm trying to get vmware3 working on FreeBSD RELEASE 7.0 for i386 I've resolved every compilation problem except one: the driver.c in vmware3 requires the avail_end variable in 6.2's /usr/include/machine/pmap.h but

Re: Updating vmware3 (and missing avail_end from /usr/include/machine/pmap.h)

2008-03-01 Thread Roman Divacky
On Sat, Mar 01, 2008 at 01:17:01PM +0100, Roman Divacky wrote: On Fri, Feb 29, 2008 at 01:29:23PM -0800, [EMAIL PROTECTED] wrote: Hi all: I'm trying to get vmware3 working on FreeBSD RELEASE 7.0 for i386 I've resolved every compilation problem except one: the driver.c in vmware3

Re: firefox flash plug in woes

2008-01-26 Thread Roman Divacky
i wanna goto youtube! {:} i already have firefox installed, is there a special port for linux firefox? i better deinstall my existing firefox? swfdec (in ports) handles youtube (and a lot of other things) just fine ___ freebsd-hackers@freebsd.org

Re: syscall linux_getdents() trouble

2008-01-07 Thread Roman Divacky
On Mon, Jan 07, 2008 at 11:34:51AM +0300, sam wrote: program-test (experimental) for testing syscall linux_getdents() http://cs.udmvt.ru/files/temp/linux_dbg.tar.bz2 includes: * temp/ - test_dir with files (special for crash situation) * linux_getdents.c - source of program-test *

Re: Before After Under The Giant Lock

2007-11-25 Thread Roman Divacky
On Sun, Nov 25, 2007 at 02:41:35PM -0600, Stephen Montgomery-Smith wrote: On Sun, 25 Nov 2007, Robert Watson wrote: In FreeBSD 8, I expect we'll see a continued focus on both locking granularity and improving opportunities for kernel parallelism by better

Re: a strange/stupid question

2007-11-24 Thread Roman Divacky
On Sat, Nov 24, 2007 at 03:33:24AM +, Aryeh Friedman wrote: Where do I find the main() [and/or other entery point] for the kernel I tend to understand stuff better if I follow the flow of exec from the start note that kernel as such does not exist. its threads/processes running code in

Re: modify syscall nr on-the-fly

2007-08-25 Thread Roman Divacky
On Thu, Aug 23, 2007 at 04:07:41PM +0400, Yuriy Tsibizov wrote: I'm trying to get user-mode Linux to run under FreeBSD Linux emulation (on i386). Ivan, current status patches are on http://chibis.persons.gfk.ru/linux/. what fbsd version are you using? if 7.x is it with 2.4 emulation or

Re: linuxolator problem on amd64

2007-08-22 Thread Roman Divacky
On Wed, Aug 22, 2007 at 01:36:20AM +0200, Pieter de Goeje wrote: On Tuesday 21 August 2007, sam wrote: Hi, all. i am try runing Enemy Territory: Quake Wars server (links on http://weec.ovl.ru/csdivision/index.php?topic=662.0 ) # uname -rms FreeBSD 6.2-STABLE amd64 # mount | grep

Re: linuxolator problem on amd64

2007-08-22 Thread Roman Divacky
Take a look at /usr/ports/UPDATING : 20070327: AFFECTS: users of emulators/linux_base-fc6 AUTHOR: [EMAIL PROTECTED] ATTENTION! The port is experimental for now. Use it at your own risk. This port may be used only with 7-CURRENT and compat.linux.osrelease=2.6.16. So it's not just a

Re: User-mode Linux (Was: modify syscall nr on-the-fly)

2007-08-22 Thread Roman Divacky
here is a little review of mine... just little suggestions. Index: i386/i386/trap.c === RCS file: /home/ncvs/src/sys/i386/i386/trap.c,v retrieving revision 1.307 diff -u -r1.307 trap.c --- i386/i386/trap.c26 Jul 2007 15:32:55

Re: questions on nonsleepable lock

2007-08-15 Thread Roman Divacky
On Wed, Aug 15, 2007 at 05:10:48PM +0800, Nex Mon wrote: thanks for your reply. i didn't use WITNESS. it is disabled. is their a list a list of which locks are sleepable and non-sleepable in FreeBSD6.2? is sleeping triggered by a call to sleep, IO operation or a result of context

strange KASSERT in _sleep()

2007-08-11 Thread Roman Divacky
hi tsleep() maps to _sleep() with lock = NULL, the _sleep() contains this: KASSERT(timo != 0 || mtx_owned(Giant) || lock != NULL || ident == lbolt, (sleeping without a lock)); which simplifies for tsleep(foo, ...) where foo != lbolt to timo != 0 || mtx_owned(Giant) why do I

Re: p_vmspace in syscall

2007-07-03 Thread Roman Divacky
Ok, syscall function passed a proc* as arguments, I don't know where this does not make any sense... userland processes have no way to determine where a proc is stored... what exactly are you trying to achieve? ___ freebsd-hackers@freebsd.org mailing

Re: getCWD in kernel space

2007-06-30 Thread Roman Divacky
On Sat, Jun 30, 2007 at 03:24:17PM +, Eren Erdemli wrote: Hello hackers, Sorry to disturb you's but I have a question and would like to know if you can assist me. I am new to freebsd programing and I am trying to get the current working directory of the curthread. I have hook on

Re: CPUTYPE in general - was Re: Which CPUTYPE for a dualcore Xeon on AMD64

2007-06-25 Thread Roman Divacky
In general, how does one decide which CPUTYPE to use? The connection between the options for CPUTYPE and the output of dmesg is not so obvious to me. I looked at the features advertised by dmesg (which in my case included SSE3) and then reverse engineered bsd.cpu.mk to figure out I

Re: Making sense of ktrace(1) output

2007-06-18 Thread Roman Divacky
On Mon, Jun 18, 2007 at 01:55:01AM -0700, Garrett Cooper wrote: Peter Jeremy wrote: On 2007-Jun-18 00:39:44 -0700, Garrett Cooper [EMAIL PROTECTED] wrote: However, I was able to get ktrace output. The only problem is that ktrace(1) apparently outputs only in binary, instead of plaintext

Re: Making sense of ktrace(1) output

2007-06-18 Thread Roman Divacky
Unfortunately I have to profile all of the source up the tree to create profiled symbols, and I'm running into some issues profiling liblegacy. Does anyone have any hints for getting around that, or just profiling all of the relevant libs? I think you can build fbsd with profiling

[PATCH]: acct_process() locking and exit1()

2007-06-14 Thread Roman Divacky
hi currently in exit1() we call acct_process() with Giant held. I looked at the code and I think this is because of tty need for Giant locking. Because of this we have to release process limit in a separate PROC_LOCK()/UNLOCK() block. my just-to-look-at patch does this 1) moves the

Re: [PATCH]: acct_process() locking and exit1()

2007-06-14 Thread Roman Divacky
On Thu, Jun 14, 2007 at 09:54:39AM +0200, Roman Divacky wrote: hi currently in exit1() we call acct_process() with Giant held. I looked at the code and I think this is because of tty need for Giant locking. Because of this we have to release process limit in a separate PROC_LOCK()/UNLOCK

Re: file(1) cannot detect UFS2?

2007-06-10 Thread Roman Divacky
On Sun, Jun 10, 2007 at 12:41:31AM +0200, Ivan Voras wrote: Hi! I'm trying to use file(1) to detect file system type on partitions, and so far it's working for any file system I've cared to try (the usual MS and Linux list) *except* UFS2. Detecting UFS1 works, though much more verbosely

Re: file(1) cannot detect UFS2?

2007-06-10 Thread Roman Divacky
Now there's only the matter of importing it :) you mean... like was done 2 weeks ago? :) ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: Looking for speed increases in make index and pkg_version for ports

2007-05-28 Thread Roman Divacky
On Mon, May 28, 2007 at 11:34:24AM -0500, Stephen Montgomery-Smith wrote: Jeremy Chadwick wrote: On Sun, May 27, 2007 at 03:52:16PM -0500, Stephen Montgomery-Smith wrote: I have been thinking a lot about looking for speed increases for make index and pkg_version and things like that. So

Re: New FreeBSD package system (a.k.a. Daemon Package System (dps))

2007-05-12 Thread Roman Divacky
cyclic dependancies in it!), but still, in itself, I think the choice of Ruby isn't performance-critical. ruby2.0 will come with a virtual machine which should speed up things. ruby2.0 is expected soon enough (2008?) ___ freebsd-hackers@freebsd.org

Re: [ANN] unionfs patchset-19-20070504 release, it is now MPSAFE and transparent mode as default

2007-05-06 Thread Roman Divacky
Hi, So far I've tested it under -current, in my diskless env. where /etc /compat/linux are unionfs'ed with a mfs, and so all seems OK. there's an XXX in the linuxulator code saying: XXX Untested vs. mount -o union; probably does the wrong thing. can you confirm that it works ok with

Re: prebind support status

2007-04-19 Thread Roman Divacky
On Sat, Apr 14, 2007 at 05:24:16PM +0300, Tyrael wrote: Has anyone started working on porting 'prebind' from OpenBSD? Has there been any discussion over this matter; as to how much work this would require ? I would be interested into looking over this and see if i can implement it, so any