Re: libkvm: consumers of kvm_getprocs for non-live kernels?

2010-11-11 Thread Robert Watson
On Wed, 10 Nov 2010, Ulrich Spörlein wrote: I have this cleanup of libkvm sitting in my tree and it needs a little bit of testing, especially the function kvm_proclist, which is only called from kvm_deadprocs which is only called from kvm_getprocs when kd is not ALIVE. The only consumer in ou

Re: Creating an LVM-backed FreeBSD DomU in a Linux Dom0

2010-12-28 Thread Robert Watson
On Tue, 28 Dec 2010, Avleen Vig wrote: After searching high and low and not finding exactly what I wanted (although Adrian Chadd's documents came close), I decided to document a lengthy but worthwhile procedure: How to install a FreeBSD DomU guest in a Linux Dom0 Xen host, from scratch, wit

Re: Why does printf(9) hang network?

2011-02-05 Thread Robert Watson
On Sat, 5 Feb 2011, dieter...@engineer.com wrote: Why would doing a printf(9) in a device driver (usb, firewire, probably others) cause an obscenely long lockout on /usr/src/sys/kern/uipc_sockbuf.c:148 (sx:so_rcv_sx) ? Printf(9) alone isn't the problem, adding printfs to chown(2) does not c

Re: Analyzing wired memory?

2011-02-08 Thread Robert Watson
On Tue, 8 Feb 2011, Alan Cox wrote: On Tue, Feb 8, 2011 at 6:20 AM, Ivan Voras wrote: Is it possible to track by some way what kernel system, process or thread has wired memory? (including "data exists but needs code to extract it") No. I'd like to analyze a system where there is a lot

Re: CFR: FEATURE macros for AUDIT/CAM/IPC/KTR/MAC/NFS/NTP/PMC/SYSV/...

2011-02-11 Thread Robert Watson
On Fri, 11 Feb 2011, Alexander Leidinger wrote: during the last GSoC various FEATURE macros where added to the system. Before committing them, I would like to get some review (like if macro is in the correct file, and for those FEATURES where the description was not taken from NOTES if the de

Re: CFR: FEATURE macros for AUDIT/CAM/IPC/KTR/MAC/NFS/NTP/PMC/SYSV/...

2011-02-11 Thread Robert Watson
On Fri, 11 Feb 2011, Ilya Bakulin wrote: When I was beginning this GSoC work, I primarily thought about unifying the way to determine if particular feature exists in the kernel. Of course there should be at least one way to check if the feature is available or not (by definition: if I may use

Re: ixgbe DMA question

2011-02-11 Thread Robert Watson
On Fri, 11 Feb 2011, Santosh Rao Gururajan wrote: I have a host machine with 2 ixgbe NICs. I am trying to pass the frames from one NIC to the other with the lowest possible overhead to the host (high speed bridge). I am wondering if I can do a rx-ring to tx-ring DMA copy without creating a mb

Re: CFR: FEATURE macros for AUDIT/CAM/IPC/KTR/MAC/NFS/NTP/PMC/SYSV/...

2011-02-12 Thread Robert Watson
On Sat, 12 Feb 2011, Alexander Leidinger wrote: On Sat, 12 Feb 2011 00:52:48 + (GMT) Robert Watson wrote: The one comment I'd make is that the MAC case should indicate that "The MAC Framework" is supported, rather than mandatory access controls being present -- the

Re: Prebind from OpenBSD

2011-03-27 Thread Robert Watson
On Sat, 26 Mar 2011, Jesse Smith wrote: I'm interested in working on the "Port prebind from OpenBSD" project mentioned on the FreeBSD Ideas page. ( http://wiki.freebsd.org/IdeasPage#head-d28cdd95ca1755d5afe63d653cb4926d4bdc99de ) There isn't much to go on from the project description and I'm

Re: GSoC

2011-03-27 Thread Robert Watson
On Fri, 25 Mar 2011, Dudinskyi Olexandr wrote: My name is Dudinskyi Oleksandr. I am a student of National aviation university, Ukraine. I want to participate in GSoC 2011 with your organization. My project: Disk device error counters, iostat –e. I thing this project is very necessary in the

Re: GSoC

2011-04-02 Thread Robert Watson
On Fri, 1 Apr 2011, Oleksandr Dudinskyi wrote: I should like more specifically disclose my plan of action. One of the main tasks is find the places where registered errors, subsequently error analysis (their type) and separation errors related to disk and modifying the output format. There ar

Re: Include file search path

2011-04-02 Thread Robert Watson
On Wed, 30 Mar 2011, Warner Losh wrote: On Mar 30, 2011, at 9:23 AM, Dimitry Andric wrote: This is a rather nasty hack, though. If we can make it work, we should probably try using --sysroot instead, or alternatively, -nostdinc and adding include dirs by hand. The same for executable and lib

Re: Mount_nfs question

2011-05-31 Thread Robert Watson
On Mon, 30 May 2011, Mark Saad wrote: So I am stumped on this one. I want to know what the IP of each nfs server that is providing each nfs export. I am running 7.4-RELEASE When I run "mount -t nfs" I see something like this VIP-01:/export/source on /mnt/src VIP-02:/export/target o

Re: compiler warnings (was: Re: [rfc] a few kern.mk and bsd.sys.mk related changes)

2011-05-31 Thread Robert Watson
On Tue, 31 May 2011, Alexander Best wrote: On Mon May 30 11, Dieter BSD wrote: Chris writes: Ports need attention. The warnings I get there are frightening. I find it comforting that they're just that: warnings. How do they frighten you? High quality code does not have any warnings. The

Re: sizeof(function pointer)

2011-06-05 Thread Robert Watson
On Tue, 31 May 2011, m...@freebsd.org wrote: I am looking into potentially MFC'ing r212367 and related, that adds drains to sbufs. The reason for MFC is that several pieces of new code in CURRENT are using the drain functionality and it would make MFCing those changes much easier. The prob

Re: FreeBSD I/OAT (QuickData now?) driver

2011-06-11 Thread Robert Watson
On Mon, 6 Jun 2011, grarpamp wrote: I know we've got polling. And probably MSI-X in a couple drivers. Pretty sure there is still one CPU doing the interrupt work? And none of the multiple queue thread spreading tech exists? Actually, with most recent 10gbps cards, and even 1gbps cards, we pr

Re: priv_check() question

2011-07-05 Thread Robert Watson
On Sun, 3 Jul 2011, exorcistkiller wrote: Hi! I am taking a FreeBSD course this summer and I'm doing a homework. A new system call uidkill() is to be added. uidkill(uid_t uid, int signum) sends signal specified by signum to all processes owned by uid, excluding the calling process itself. I

Re: Add setacl system call?

2011-07-25 Thread Robert Watson
On Sun, 24 Jul 2011, exorcistkiller wrote: Hi, I'm working on a course project in which I need to add 3 system calls. One of which is setacl(char *name, int type, int idnum, int perms), which set acl for a file specified by name. I used newfs as in ftp://ftp.tw.freebsd.org/pub/FreeBSD/FreeBSD

Re: Finding symlink information in MAC Framework

2011-07-25 Thread Robert Watson
On Fri, 15 Jul 2011, s wrote: I am trying to get some information related to the symlink which is being accessed by the user in MAC Framework. Currently I managed to get the uid/gid of the owner of the symlink that is being read, but now I need to get the same information about the target, th

Re: Issue with 'Unknown Error: -512'

2011-07-25 Thread Robert Watson
On Mon, 18 Jul 2011, Andriy Gapon wrote: In recent branches (confirmed with 224119) builds compiled with clang happen to throw 'Unknown error: -512' in a lot of places, making the system unusable. (Untested on gcc compiled systems). Originally I thought the problem was with specific programs,

Re: Kernel timers infrastructure

2011-07-25 Thread Robert Watson
On Mon, 25 Jul 2011, Filippo Sironi wrote: I'm working on a university project that's based on FreeBSD and I'm currently hacking the kernel... but I'm a complete newbie. My question is: what if I have to call a certain function 10 times per second? I've seen a bit of code regarding callout_*

Re: Add setacl system call?

2011-07-28 Thread Robert Watson
On Mon, 25 Jul 2011, exorcistkiller wrote: Another question while I'm reading the code. In ufs_acl.c, in static int ufs_getacl_posix1e(struct vop_getacl_args *ap), you commented: As part of the ACL is stored in the inode, and the rest in an EA, assemble both into a final ACL product. From wha

Re: HTT vs SMT in x86 SMP topology reporting

2011-07-28 Thread Robert Watson
On Tue, 26 Jul 2011, Andriy Gapon wrote: Can anybody explain to me why our _x86_ SMP topology discovery and reporting code sometimes reports "HTT" and sometimes "SMT"? As in FreeBSD/SMP: %d package(s) x %d core(s) x %d HTT threads vs FreeBSD/SMP: %d package(s) x %d core(s) x %d SMT threads

Re: MAC Framework, Socket information

2011-07-29 Thread Robert Watson
On Thu, 28 Jul 2011, s wrote: I need to get some info about the socket being created by the user. What I want to do is log all TCP/UDP outgoing connections that are being made. I *need* to get the local and remote address, as well as the local and remote port. I managed to get all of the remo

Re: MIPS toolchain

2011-07-31 Thread Robert Watson
On Fri, 29 Jul 2011, James Jones wrote: Does anyone have a prebuilt MIPS tool chain? For FreeBSD-related MIPS work, I generally use the FreeBSD "toolchain" target followed by the "buildenv" environment, but that requires first building a cross-toolchain using TARGET_ARCH and TARGET. Howeve

Re: Capsicum project: Ideas needed

2011-08-10 Thread Robert Watson
On Thu, 4 Aug 2011, Lars Engels wrote: I just stumbled upon this rather outdated thread... On Fri, 8 Jul 2011 15:09:52 +0400, Ilya Bakulin wrote: [...] wget curl links/lynx This is Ports software, we may try to modify it and even send patches to upstream, or maintain our local patches. I wan

Re: Dynamic kernel module linking problem

2011-08-26 Thread Robert Watson
On Fri, 26 Aug 2011, Monthadar Al Jaberi wrote: I have written a dynamic loadable module using DECLARE_MODULE in FreeBSD-Current. And I want to iterate through the ifnet list using following code snippet: If this is on a recent version of FreeBSD (8.x and later), then you probably mean to

Re: TIME_WAIT Assassination in FreeBSD???

2011-09-05 Thread Robert Watson
On Sat, 3 Sep 2011, Jarrod Lee Petz wrote: 3. Does FreeBSD handle this situation? How? I can't seem to find much info on TIME_WAIT assassination in FreeBSD is mentioned in RFC 6056 I'm not familiar with the RFC side here, but I can confirm that FreeBSD will recycle TIMEWAIT connections more q

Re: buf_ring(9) API precisions

2011-09-15 Thread Robert Watson
On Thu, 15 Sep 2011, K. Macy wrote: Why are you making an MD guess, the amount of padding to fit the size of a cache line, in MI API ? Strangely enough, you did not make this assumption in, say r205488 (picked randomly). It has been several years, and I haven't done any work in svn in over a

Re: FreeBSD has serious problems with focus, longevity, and lifecycle

2012-01-18 Thread Robert Watson
On Mon, 16 Jan 2012, Julian Elischer wrote: On 1/16/12 3:32 PM, William Bentley wrote: I also echo John's sentiments here. Very excellent points made here. Thank you for voicing your opinion. I was beginning to think I was the only one who felt this way. [...] We seem to have lost our way a

Re: FreeBSD has serious problems with focus, longevity, and lifecycle

2012-01-18 Thread Robert Watson
On Wed, 18 Jan 2012, Andriy Gapon wrote: on 18/01/2012 02:16 Igor Mozolevsky said the following: Seriously, WTF is the point of having a PR system that allows patches to be submitted??! When I submit a patch I fix *your* code (not yours personally, but you get my gist). Let me pretend that I

Re: FreeBSD has serious problems with focus, longevity, and lifecycle

2012-01-18 Thread Robert Watson
On Tue, 17 Jan 2012, Andriy Gapon wrote: on 17/01/2012 00:28 John Kozubik said the following: we going to run RELEASE software ONLY My opinion: you've put yourself in a box that is not very compatible with the current FreeBSD release strategy. With your scale and restrictions you probably

Re: FreeBSD has serious problems with focus, longevity, and lifecycle

2012-01-18 Thread Robert Watson
On Tue, 17 Jan 2012, Doug Barton wrote: The other thing I think has been missing (as several have pointed out in this thread already) is any sort of planning for what should be in the next release. The current time-based release schedule is (in large part) a reaction to the problems we had in

Re: SMP: protocol control block protection for a multithreaded process (ex: udp).

2012-05-29 Thread Robert Watson
On Tue, 29 May 2012, vasanth rao naik sabavat wrote: In case of a Multicore cpu system running a multithreaded process. For protocol control blocks there is no protection provided in the FreeBSD 9. For example, udp_close() and udp_send() access the inp before taking the lock. Couldn't this c

Re: SMP: protocol control block protection for a multithreaded process (ex: udp).

2012-05-29 Thread Robert Watson
On Tue, 29 May 2012, vasanth rao naik sabavat wrote: Can somebody please reply to this email. basically, can udp_detach() and udp_send() execute simultaneously for a process with multiple threads? if yes, then inp reference in udp_send() will be stale if udp_detach() free's the inp? You ar

Re: sysctl filesystem ?

2012-06-26 Thread Robert Watson
On Tue, 26 Jun 2012, Chris Rees wrote: as well as we don't depend of /proc for normal operation we shouldn't for say /proc/sysctl improvements are welcome, better documentation is welcome, changes to what is OK - isn't. /proc/sysctl might be useful. Just because Linux uses it doesn't make

Re: projects/armv6 merged to HEAD

2012-08-17 Thread Robert Watson
On Thu, 16 Aug 2012, Oleksandr Tymoshenko wrote: projects/armv6 branch was merged to HEAD and should be considered dead now. This patch is a result of a joint effort by many people. Including but not limited to: Amazing work -- many thanks are due to to everyone who was involved! Robert

Re: syslog(3) issues

2012-09-03 Thread Robert Watson
On Mon, 3 Sep 2012, Attilio Rao wrote: I was trying to use syslog(3) in a port application that uses threading , having all of them at the LOG_CRIT level. What I see is that when the logging gets massive (1000 entries) I cannot find some items within the /var/log/messages (I know because I sta

Re: No bus_space_read_8 on x86 ?

2012-10-12 Thread Robert Watson
On Fri, 12 Oct 2012, John Baldwin wrote: I believe it was because bus reads weren't guaranteed to be atomic on i386. don't know if that's still the case or a concern, but it was an intentional omission. True. If you are on a 32-bit system you can read the two 4 byte values and then build a 6

Re: No bus_space_read_8 on x86 ?

2012-10-13 Thread Robert Watson
On Fri, 12 Oct 2012, Carl Delsey wrote: Indeed -- and on non-x86, where there are uncached direct map segments, and TLB entries that disable caching, reading 2x 32-bit vs 1x 64-bit have quite different effects in terms of atomicity. Where uncached I/Os are being used, those differences may af

Re: A question about creating a system call

2012-11-08 Thread Robert Watson
Hi Dave: This wiki page may be of value: http://wiki.freebsd.org/AddingAuditEvents Robert N M Watson Computer Laboratory University of Cambridge On Thu, 8 Nov 2012, dave jones wrote: Hello, I know how to create system calls, but I'm a bit confused about sys/kern/syscalls.master file

Re: KVERIFY for non-debug invariants?

2012-12-06 Thread Robert Watson
On Wed, 5 Dec 2012, Vijay Singh wrote: All. KASSERT() is a really need way of expressing invariants when INVARIANTS is defined. However for regular, non-INVARIANTS code folks have the typical if() panic() combos, or private macros. Would a KVERIFY() that does this in non-INVARIANTS code make

Re: question in sosend_generic()

2013-06-08 Thread Robert Watson
On Fri, 7 Jun 2013, vasanth rao naik sabavat wrote: When sending data out of the socket I don't see in the code where the sb_cc is incremented. sb_cc reflects data appended to the socket buffer; sosend_generic() is responsible for arranging copying in and performing flow control, but the pr

Re: a question regarding

2007-02-15 Thread Robert Watson
On Thu, 15 Feb 2007, Pascal Hofstee wrote: On 1/31/07, Robert Watson <[EMAIL PROTECTED]> wrote: If we do decide to go ahead with the ABI change, there are a number of other things that should be done simultaneously, such as changing the uid and gid fields to uid_t and gid_t. I woul

Re: nullfs and named pipes.

2007-02-16 Thread Robert Watson
On Thu, 15 Feb 2007, Kostik Belousov wrote: On Thu, Feb 15, 2007 at 03:22:59PM +, Josef Karthauser wrote: On Thu, Feb 15, 2007 at 02:57:50PM +0100, Jeremie Le Hen wrote: Note that all processes within a jail can only intefere with processes from another jail or host as if they were on d

Re: a question regarding

2007-02-16 Thread Robert Watson
On Thu, 15 Feb 2007, Pascal Hofstee wrote: On Thu, 2007-02-15 at 13:41 +, Robert Watson wrote: Unfortunately, things are a bit more tricky. The problem is not so much the API, where converting size_t/int is a relative non-event, rather, the ABI. By changing the size of a field in a data

Re: nullfs and named pipes.

2007-02-19 Thread Robert Watson
On Sun, 18 Feb 2007, Josef Karthauser wrote: On Fri, Feb 16, 2007 at 04:36:56PM +0200, Kostik Belousov wrote: cvs diff: Diffing . Index: null_subr.c === RCS file: /home/ncvs/src/sys/fs/nullfs/null_subr.c,v retrievin

Re: nullfs and named pipes.

2007-02-19 Thread Robert Watson
On Mon, 19 Feb 2007, Robert Watson wrote: On Sun, 18 Feb 2007, Josef Karthauser wrote: Well, the worry would be that you would be replacing a clean error on failure with an occasional panic, the normal symptom of a race condition. I think I'm alright with the VFIFO case above, but I&#x

Re: nullfs and named pipes.

2007-02-19 Thread Robert Watson
On Mon, 19 Feb 2007, Robert Watson wrote: On Mon, 19 Feb 2007, Robert Watson wrote: On Sun, 18 Feb 2007, Josef Karthauser wrote: Well, the worry would be that you would be replacing a clean error on failure with an occasional panic, the normal symptom of a race condition. I think I&#

Re: Progress on scaling of FreeBSD on 8 CPU systems

2007-02-25 Thread Robert Watson
On Sun, 25 Feb 2007, Kris Kennaway wrote: On Sat, Feb 24, 2007 at 10:00:35PM -0700, Coleman Kane wrote: What does the performance curve look like for the in-CVS 7-CURRENT tree with 4BSD or ULE ? How do those stand up against the Linux SMP scheduler for scalability. It would be nice to see the

Re: Progress on scaling of FreeBSD on 8 CPU systems

2007-02-25 Thread Robert Watson
On Sun, 25 Feb 2007, Martin Blapp wrote: It would be really great if we could find "workload owners" who would maintain easy-to-run benchmark configurations and also run them regularly on a fixed hardware configuration over a long time publishing results and testing patches. Kris has done thi

Re: inconsistency in using vn_fullpath1()

2007-03-04 Thread Robert Watson
On Sun, 4 Mar 2007, Divacky Roman wrote: I noticed that kern___getcwd() calls vn_fullpath1() with Giant held like this: mtx_lock(&Giant); FILEDESC_LOCK(fdp); error = vn_fullpath1(td, fdp->fd_cdir, fdp->fd_rdir, tmpbuf, &bp, buflen); FILEDESC_UNLOCK(fdp

Re: investigation of Giant usage in kernel

2007-03-05 Thread Robert Watson
On Sun, 4 Mar 2007, Divacky Roman wrote: I looked at where Giant is held in the kernel and I found these interesting things: 1) in fs/fifofs/fifo_vnops.c we lock Giant when calling sorecieve()/sosend() this is a bandaid for fixing a race that doesnt have to exist anymore. ie. it needs some t

Re: Fwd: user-space locks

2007-03-09 Thread Robert Watson
On Fri, 9 Mar 2007, Kip Macy wrote: Do you think that the umtx KPI may have reached the appropriate level of maturity for writing up a man page? The KSE equivalent has had a substantive man page for quite some time. I would be more than happy to do any of the necessary technical copy-editing

Re: user-space locks

2007-03-09 Thread Robert Watson
On Sat, 10 Mar 2007, Vlad GALU wrote: On 3/10/07, Kip Macy <[EMAIL PROTECTED]> wrote: umtx Is it safe/recommended to use spinlocks, like in jemalloc, for very small portions of code? I'm particularly interested in protecting writes to a couple of word sized ints on amd64, so the critical s

Re: One method to recover a lost root password

2007-03-17 Thread Robert Watson
On Fri, 16 Mar 2007, Garrett Cooper wrote: David S. Madole wrote: From Derekj Tourneo on Friday, March 16, 2007 4:46 PM How I recovered a lost root password in FreeBSD Luckily I did know one user name and it had no password. cgadmin going to the repair mode with CDROM/DVD option off the ins

Re: Locking etc. (Long, boring, redundant, newbie questions)

2007-03-28 Thread Robert Watson
On Wed, 28 Mar 2007, Duane Whitty wrote: I know this is trivial material but I believe I have finally come to an understanding about some things that I have been struggling with. Maybe by putting this in words I can help some other newbies like myself who are hoping to eventually understand m

Re: kevent and unix dgram socket problem

2007-04-03 Thread Robert Watson
On Tue, 3 Apr 2007, Jason Carroll wrote: // create the local address, bind & listen struct sockaddr_un addr; memset(&addr, 0, sizeof(addr)); addr.sun_family = AF_LOCAL; strncpy(addr.sun_path, "usock", UN_PATH_LEN - 1); assert(bind(fd, (sockaddr*) &addr, sizeof(sockaddr_un)) ==

Re: Mac OS underlying FreeBSD - does it run Linux emulation?

2007-04-04 Thread Robert Watson
On Wed, 4 Apr 2007, Mike Meyer wrote: In <[EMAIL PROTECTED]>, Christoph P. Kukulies <[EMAIL PROTECTED]> typed: does anyone know whether one can run Linux applications under the underlying FreeBSD of the MAC OS (on an Intel Core Duo mini Mac)? No, you can't. The "underlying" FreeBSD is userl

Re: Mac OS underlying FreeBSD - does it run Linux emulation?

2007-04-05 Thread Robert Watson
On Wed, 4 Apr 2007, Coleman Kane wrote: While it's true you can't run Linux binaries on Mac OS X, it's not for the reason you're suggesting, and your statement regarding FreeBSD kernel code in Mac OS X is simply incorrect. The Mac OS X kernel, XNU, contains significant quantities of FreeBSD

Re: msleep() on recursivly locked mutexes

2007-04-28 Thread Robert Watson
On Thu, 26 Apr 2007, Julian Elischer wrote: Further the idea that holding a mutex "except for when we sleep" is a generally bright idea is also a bit odd to me.. If you hold a mutex and release it during sleep you probably should invalidate all assumptions you made during the period before you

Re: msleep() on recursivly locked mutexes

2007-04-28 Thread Robert Watson
On Fri, 27 Apr 2007, Julian Elischer wrote: Basically you shouldn't have a recursed mutex FULL STOP. We have a couple of instances in the kernel where we allow a mutex to recurse, but they had to be hard fought, and the general rule is "Don't". If you are recursing on a mutex you need to swit

Re: Experiences with 7.0-CURRENT and vmware.

2007-05-10 Thread Robert Watson
On Thu, 10 May 2007, Darren Reed wrote: I'm using FreeBSD 7.0-CURRENT under vmware and there are a few issues. Generally speaking, I would suggest sending this post to current@, not hackers@, since your comments largely have to do between differences between -STABLE and -CURRENT, making it

Re: My PPP timer PR [nag]

2007-05-11 Thread Robert Watson
On Thu, 10 May 2007, Sergey Zaharchenko wrote: bin/102747 has been sitting there for about 8 months, with no activity since it was assigned to brian@, all my mail to whom bounces [CC'd just in case]. The patch attached in the PR has been working for me since, so it not being fixed in the mai

Re: SoC: Distributed Audit Daemon project

2007-05-28 Thread Robert Watson
On Sat, 26 May 2007, M. Warner Losh wrote: In message: <[EMAIL PROTECTED]> Benjamin Lutz <[EMAIL PROTECTED]> writes: : On Friday 25 May 2007 01:22:21 Alexey Mikhailov wrote: : > [...] : > 2. As I said before initial subject of this project was "Distributed : > audit daemon". But after

Re: p_vmspace in syscall

2007-07-04 Thread Robert Watson
On Mon, 2 Jul 2007, Nicolas Cormier wrote: I am trying to map some data allocated in kernel to a user process (via a syscall). I need the proc's vmspace, but the value of p_vmspace of the input proc argument is NULL ... How can I get a valid vmspace ? When operating in a system call, the 'td

Re: p_vmspace in syscall

2007-07-04 Thread Robert Watson
On Wed, 4 Jul 2007, Nicolas Cormier wrote: On 7/4/07, Robert Watson <[EMAIL PROTECTED]> wrote: On Mon, 2 Jul 2007, Nicolas Cormier wrote: I am trying to map some data allocated in kernel to a user process (via a syscall). I need the proc's vmspace, but the value of p_vmspace of

Re: p_vmspace in syscall

2007-07-04 Thread Robert Watson
On Wed, 4 Jul 2007, Nicolas Cormier wrote: Currently I'm just trying to play with kernel/modules/vm ... I'm a newbie in kernel development and I just want to make a little prototype of an in-kernel network allocator. To start I only need to map a page (1024 bytes) from kernel to user process.

Re: add closefrom() call

2007-07-06 Thread Robert Watson
On Fri, 6 Jul 2007, LI Xin wrote: Joerg Sonnenberger wrote: On Wed, Jul 04, 2007 at 08:27:49PM -0400, Ighighi Ighighi wrote: The closefrom() call, available in Solaris, is present in NetBSD since version 3.0. It is implemented with the F_CLOSEM fcntl() available since version 2.0. You co

Re: add closefrom() call

2007-07-06 Thread Robert Watson
On Fri, 6 Jul 2007, Julian Elischer wrote: Ed Schouten wrote: * LI Xin <[EMAIL PROTECTED]> wrote: Here is my implementation for FreeBSD. Some difference between my and DragonFly's implementation: - closefrom(-1) would be no-op on DragonFly, my version would close all open files (From my

Re: add closefrom() call

2007-07-10 Thread Robert Watson
On Fri, 6 Jul 2007, LI Xin wrote: To RW: I have not found a suitable audit event for this, should I create a new event? BTW, I can add an AUE_CLOSEFROM event to OpenBSM. This may require a little work by event consumers who will now need to know about an additional source of implicit clos

Re: [panic]Fatal trap 12: page fault while in kernel mode

2007-08-02 Thread Robert Watson
On Tue, 31 Jul 2007, ytriffy wrote: Trap 12 occured when I rebooted PC. Sending you backtrace. My system: amd64 3200+ Venice, MB ECS nForce4 A939,Samsung 250GB and WD 250 GB, 2 memory banks 512MB each, videocard: Geforce 6600gt 128MB, NIC on realtek chip, sound card cirrus logic cs4281. It's v

Re: work praudit with tee & grep

2007-08-21 Thread Robert Watson
On Mon, 20 Aug 2007, sam wrote: I am installed AUDIT http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/audit.html # praudit /etc/auditpipe | grep "xxx" & # praudit /etc/auditpipe | tee file.log & # praudit /etc/auditpipe > file.log this is not work please help me Vladimir, Could yo

Re: work praudit with tee & grep

2007-08-21 Thread Robert Watson
On Tue, 21 Aug 2007, Eric Crist wrote: thx this not working wite up buffer-pipe to 4096 bytes Can I ask what is in the /etc/auditpipe file? I believe what is meant is /dev/auditpipe, which provides a live event stream from the kernel's audit subsystem in FreeBSD 6.2 and later. You can rea

Re: praudit parse with gnu grep

2007-08-28 Thread Robert Watson
On Wed, 22 Aug 2007, sam wrote: Index: praudit.c === RCS file: /data/fbsd-cvs/ncvs/src/contrib/openbsm/bin/praudit/praudit.c,v retrieving revision 1.1.1.3 diff -u -r1.1.1.3 praudit.c --- praudit.c16 Apr 2007 15:36:57 -1

Re: Exclusive binary files

2007-09-02 Thread Robert Watson
On Sun, 2 Sep 2007, Max Laier wrote: On Saturday 01 September 2007, Klaus Schneider wrote: Well, anybody know a way to make the FreeBSD run just binaries that I have compiled? For example: A hacker get a access to a shell into my server, and then it put a exploit code, but on the machine d

Re: How to get filename of an open file descriptor

2007-11-12 Thread Robert Watson
On Mon, 12 Nov 2007, Yuri wrote: I am looking for functionality similar to Linux's /proc//fd/. I need to know what is the file name of an open file descriptor. /proc//fd is missing on FreeBSD. There's something called 'fdescfs'. In /dev/fd/ it shows the list of file descriptors. But they don

Re: How to get filename of an open file descriptor

2007-11-12 Thread Robert Watson
other problems, do let me know. Robert N M Watson Computer Laboratory University of Cambridge Yuri Quoting Robert Watson <[EMAIL PROTECTED]>: On Mon, 12 Nov 2007, Yuri wrote: I am looking for functionality similar to Linux's /proc//fd/. I need to know what is the file name of an open

Re: How to get filename of an open file descriptor

2007-11-12 Thread Robert Watson
On Mon, 12 Nov 2007, Yuri wrote: I looked at the patch. It retrieves file description information through 'sysctl' calls with proprietary keys. Isn't it better architecturally to expose the same information through procfs interface? At least from the filesystem level and up standard tools l

Re: How to get filename of an open file descriptor

2007-11-14 Thread Robert Watson
descriptor and VM information only, so it is a fairly straight forward MFC. Robert N M Watson Computer Laboratory University of Cambridge Yuri Quoting Robert Watson <[EMAIL PROTECTED]>: On Mon, 12 Nov 2007, Yuri wrote: Thank you for your response. I attempted to compile procstat b

Re: How to get filename of an open file descriptor

2007-11-14 Thread Robert Watson
On Wed, 14 Nov 2007, Skip Ford wrote: Robert Watson wrote: On Tue, 13 Nov 2007, Yuri wrote: Thank you for letting me know about this new feature procstat. But is there any workaround in 6.3? I need to port one package that needs to lookup file names by FDs to the current FreeBSD and need

Re: A TrustedBSD "voluntary sandbox" policy.

2007-11-16 Thread Robert Watson
On Thu, 8 Nov 2007, Andrea Campi wrote: On Wed, Nov 07, 2007 at 10:20:28PM -0500, [EMAIL PROTECTED] wrote: I'm considering developing a policy/module for TrustedBSD loosely based on the systrace concept - A process loads a policy and then executes another program in a sandbox with fine grain

Re: How to get filename of an open file descriptor

2007-11-16 Thread Robert Watson
On Wed, 14 Nov 2007, Skip Ford wrote: I agree regarding the duplication with ps(1) -- however, I'm generally of the opinion that ps(1) is overburdened as tools go, and that the goals are actually somehwat different--procstat(1) intentionally doesn't have the ability to generate a list of proc

Re: How to get filename of an open file descriptor

2007-11-18 Thread Robert Watson
On Sun, 18 Nov 2007, Skip Ford wrote: Thomas Hurst wrote: * Skip Ford ([EMAIL PROTECTED]) wrote: It would be interesting to know for sure, though, if Solaris uses hardlinks and, if so, what their utility is called. Nope. They *do* use hardlinks in that they have 32bit wrappers in /usr/bin

Re: How to get filename of an open file descriptor

2007-11-19 Thread Robert Watson
On Sun, 18 Nov 2007, Skip Ford wrote: 1) procstat_args() doesn't use a local variable and the buffer doesn't get cleared between calls: $ procstat -a 797 PID ARGS 797 audacious $ procstat -a 795 797 PID ARGS 795 xterm -xtsessionID 11c0a801030001185368263000768 797 audacious essionID 11

Re: peak mbuf stat missing ... and needed ...

2007-11-22 Thread Robert Watson
On Mon, 19 Nov 2007, Juri Mianovich wrote: I am sorry to repost, but I cannot get any answer on this from -net or -questions ... is there any answer to getting this stat ? (see below) Juri, I recognize the importance of your point, and can shed a little light on why things are the way they

Re: a strange/stupid question

2007-11-24 Thread Robert Watson
On Sat, 24 Nov 2007, 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 Everyone else is suggesting very earlier in the boot, but I think the point where the kernel wher

Re: Before & After Under The Giant Lock

2007-11-25 Thread Robert Watson
On Sun, 25 Nov 2007, binto wrote: From what I read in "The Design and Implementation of the FreeBSD Operating System",said: 'However, most of the heavily used parts of the kernel have been moved out from under the giant lock, including much of the virtual memory system, the networking stack

Re: Before & After Under The Giant Lock

2007-11-25 Thread Robert Watson
On Sun, 25 Nov 2007, Christopher Chen wrote: On Nov 25, 2007 12:05 PM, Christopher Chen <[EMAIL PROTECTED]> wrote: On Nov 25, 2007 3:13 AM, Robert Watson <[EMAIL PROTECTED]> wrote: At this point, Giant is gradually becoming a lock around the tty, newbus, usb, and msdosfs cod

Re: Before & After Under The Giant Lock

2007-11-26 Thread Robert Watson
On Sun, 25 Nov 2007, Stephen Montgomery-Smith wrote: (Also when I run 4 threads with 2 cpus, each with hyperthreading, it goes 2.5 to 3 times faster - surprising since hyperthreading gets quite bad press for its performance improvements - I should add that Linux didn't do at all well at takin

Re: find_symdef() returns invalid value.

2007-11-27 Thread Robert Watson
On Tue, 27 Nov 2007, vasanth raonaik wrote: Is any one looking into this issue. Please mail me for more info. Vasanth, Could you file a problem report using send-pr on this problem? FreeBSD hackers@ has a somewhat mixed subscription, and may not catch all the relevant developers, and spit

Updated procstat(1)

2007-11-27 Thread Robert Watson
Dear all, I've updated the procstat(1) kernel patch and userland tool; the updated version can be found at: http://www.watson.org/~robert/freebsd/20071127-procstat.tgz The new version includes a number of changes from the old version, including: - A number of bug fixes and cleanliness imp

Re: Updated procstat(1)

2007-11-28 Thread Robert Watson
On Tue, 27 Nov 2007, Wesley Shields wrote: Here's an updated patch to sys/amd64/amd64/db_trace.c (it's a diff against revision 1.81). It changes "register rbp" to be "register_t rbp" and fixes the extra "W" in TD_IS_SWAPPED. The kernel built fine after these changes. I'll test it out tomorr

Re: Updated procstat(1)

2007-11-28 Thread Robert Watson
On Wed, 28 Nov 2007, Skip Ford wrote: - "-a" now means "all processes", Thanks. :-) I'm a little surprised. You seemed pretty dedicated to a per-process tool. I was, but then I read your e-mail and became convinced that the first patch that would be submitted against procstat(1) would b

Re: Updated procstat(1)

2007-11-28 Thread Robert Watson
On Wed, 28 Nov 2007, Skip Ford wrote: Skip Ford wrote: Robert Watson wrote: On Wed, 28 Nov 2007, Skip Ford wrote: - "-a" now means "all processes", Thanks. :-) I'm a little surprised. You seemed pretty dedicated to a per-process tool. I was, but then I re

Re: Updated procstat(1)

2007-11-28 Thread Robert Watson
On Wed, 28 Nov 2007, Bert JW Regeer wrote: Have the licensing issues been resolved with regards to DTrace? This is a feature I was looking forward to in 7.0-RELEASE but it had been delayed because of the licensing. The problems had to do with non-alignment of the licensing vs. software boun

Re: Linux executable picks up FreeBSD library over linux one and breaks

2007-12-01 Thread Robert Watson
On Sat, 1 Dec 2007, Alexander Leidinger wrote: Have a look at the search order of libs in linux. Correlate this with the fact that when in linux an access is done to e.g. /lib/libX.so.y which means that the linuxulator first looks if /compat/linux/lib/libX.so.y is there, and if it isn't it lo

procstat(1) committed to CVS HEAD

2007-12-02 Thread Robert Watson
n Computer Laboratory University of Cambridge -- Forwarded message -- Date: Sun, 2 Dec 2007 23:31:46 + (UTC) From: Robert Watson <[EMAIL PROTECTED]> To: [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: cvs commit: src/usr.bin/procstat Makefile procs

Re: procstat(1) committed to CVS HEAD

2007-12-03 Thread Robert Watson
On Mon, 3 Dec 2007, Andrew Thompson wrote: On Sun, Dec 02, 2007 at 11:38:45PM +, Robert Watson wrote: Dear all, (and FYI to hackers@ where I previousl sought feedback): I've now committed procstat(1) to CVS. I've found it to be quite a helpful debugging tool, am particular

Re: procstat(1) committed to CVS HEAD

2007-12-03 Thread Robert Watson
On Mon, 3 Dec 2007, Andrew Thompson wrote: I would like to give some feedback. I listed the threads of proc 12 which is intr, # procstat -t 12 PIDTID COMM CPU PRI STATE WCHAN 12 13 intr 0 40 wait- 12 14 intr 0 52 w

  1   2   3   4   5   6   7   8   >