On Tue, May 4, 2010 at 3:28 AM, Julien Laffaye kime...@gmail.com wrote:
Hello,
During this summer, I'll work on the pkg_install tools to add complete
package support.
A complete package is a package which includes all the required
dependencies in its tarball.
Unlike the PBI package format
After reading though the kernel source I realise what I want isn't
implemented at the moment but I wanted to discuss if this feature
would be an useful addition.
Basically I want to see counts of how many interrupts for a particular
interrupt have fired on each core. Linux has provided this kind
On Thu, Feb 11, 2010 at 2:25 AM, james toy n...@opensesame.st wrote:
Hello Hackers,
I am working on learning to write FreeBSD drivers; however, I have
some practice writing IOKit drivers for MacOSX (they are entirely
different I know!). The code I am working with can be found here:
Today I was writing a script to read all the dev.cpu.?.temperature
sysctl OIDs. I was parsing them using a simple grep, but it occurred
to me it might be better if sysctl supported some form of regexp. For
example instead of typing:
sysctl -a | grep dev.cpu.*.temperature
I could write:
sysctl
2010/2/9 Dag-Erling Smørgrav d...@des.no:
Andrew Brampton brampton+free...@gmail.com writes:
Today I was writing a script to read all the dev.cpu.?.temperature
sysctl OIDs. I was parsing them using a simple grep, but it occurred
to me it might be better if sysctl supported some form of regexp
On Wed, Feb 10, 2010 at 12:14 AM, Garrett Cooper yanef...@gmail.com wrote:
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 globs for what you're looking for would
On Wed, Feb 10, 2010 at 12:51 AM, Garrett Cooper yanef...@gmail.com wrote:
fnmatch is for matching filenames... I think there's a better way to
do it with globs, but I'll have to take a quick peek at python's glob module
so I don't reinvent the wheel (using fnmatch(3) // glob(3) to
2009/10/7 Ryan Stone ryst...@gmail.com:
If a thread has a name, top -H will display it in parentheses after
the executable name. One option would be to print the tid there if
the thread has no name.
Thanks for your suggestion. I would like the TID always to be
displayed, so displaying it
Hello,
I was using top -H to display all the different threads on my
system. I then wanted to use cpuset to pin a thread to a particular
core, however, I couldn't find the thread ID. So I've hacked top to
display thread IDs. Hopefully this patch is useful to something, and
perhaps it should be
Hi FreeBSD-Hackers,
netstat -i will print out statistics for each interface, including
input/output packets, input/output bytes, and input/output errors. Now
packets and bytes columns seem to be absolute counts, whereas the
errors column seems to be a count over the last second. For example,
when
2009/8/31 John Baldwin j...@freebsd.org:
It should be total and it sounds like a bug in the device driver. It looks
like ixgbe_update_stats_counters() overwrites the accumulated value of
if_ierrors:
/* Rx Errors */
ifp-if_ierrors = total_missed_rx + adapter-stats.crcerrs +
Hi,
I am running a amd64 FreeBSD 7.2 inside a VMWare, and DTrace has been
working great. However, I have just changed my VMWare to use two
processors instead of one, and things have started to break. I can
load the dtraceall module but when I run hotkernel the machine hangs.
I have DDB compiled
Hi,
I've been playing with memguard(9) and so far it works well until it
starts to run out of memory. For those who don't know, memguard is a
replacement debugging malloc for the kernel, which is designed to
catch use after free errors. It achieves this by setting any free'd
pages to read-only,
2009/5/8 Ryan Stone ryst...@gmail.com:
Your kernel thread likely has a higher priority than userspace threads.
Ryan Stone
Thanks for your reply Ryan.
So that I understand this correctly, if I had two kernel threads, one
with a high priority, and one with a low priority, and both are
Hi,
I'm writing a FreeBSD kernel module and I think I really misunderstand
something. My module spawns a thread, which should be running while
the module is loaded. The thread does some work and then should yield
for other threads. However, if there are no other threads waiting,
then I would like
I'm writing a C++ Kernel Module, and one thing that has been bugging
me is the kernel's definition of NULL.
sys/sys/_null.h (in CURRENT):
#if defined(_KERNEL) || !defined(__cplusplus)
#define NULL((void *)0)
#else
#if defined(__GNUG__) defined(__GNUC__) __GNUC__ = 4
#define NULL__null
2009/5/2 Erik Trulsson ertr1...@student.uu.se:
On Sat, May 02, 2009 at 04:59:03PM +0100, Andrew Brampton wrote:
I'm writing a C++ Kernel Module, and one thing that has been bugging
me is the kernel's definition of NULL.
Is the use of C++ inside the kernel really supported? I don't think so
2009/4/11 Robert Watson rwat...@freebsd.org:
On Sat, 11 Apr 2009, Andrew Brampton wrote:
Your understanding is mostly right. The missing bit is this: there are two
kinds of interrupt contexts -- fast/filter interrupt handlers, which borrow
the stack and execution context of the kernel thread
Hi,
I'm having a problem with memguard(9) on FreeBSD 7.1 but before I ask
about that I just need to check my facts about malloc.
When in interrupt context malloc must be called with M_NOWAIT, this is
because I can't sleep inside a interrupt. Now when I hold a spinlock
(MTX_SPIN) I am also not
I found this useful tool called pahole[1]. It basically finds holes
within structs, so for example on my 64bit machine this struct:
struct test {
int foo;
const char *bar;
int blah;
}
Would have a hole between foo and bar of 4 bytes because both for and
bar have been aligned on a 8 byte
2009/2/12 Kostik Belousov kostik...@gmail.com:
On Thu, Feb 12, 2009 at 02:08:22PM +, Andrew Brampton wrote:
So I ran the tool pahole over a 7.1 FreeBSD Kernel, and found that
Did you ported it to FreeBSD, or run on the Linux host ?
Sorry no, I just ran it from a Linux host, but to my
Hi,
I'm writing a new kernel module which can not be run with another
module. If both run then bad things will happen and the kernel will
fall over. Fixing the modules so they can be run together is not a
option, so I wanted to code something in this new module which would
A) Check if the other
Hi,
I'm doing the unusual task of converting some c++ code into a FreeBSD
kernel module. Now all has been going great, and thus far I've been
able to debug quite a bit of it using printfs. However, I decided to
start using a kernel debugger, and to make this easier I passed g++
the –O0 flag, to
2009/1/21 Alexander Kabaev kab...@gmail.com:
From GCC's info pages:
Most of the compiler support routines used by GCC are present in
`libgcc', but there are a few exceptions. GCC requires the
freestanding environment provide `memcpy', `memmove', `memset' and
`memcmp'.
/end quote
We do
Hi,
I was wondering how a autoconf configure script can determine if the
kernel is built with a particular option. In this case the code I have
can make use of the FreeBSD polling driver, which by default isn't
built into a kernel. So I want my configure script to determine if the
kernel supports
2009/1/12 Eugene Grosbein eu...@kuzbass.ru:
I was wondering how a autoconf configure script can determine if the
kernel is built with a particular option. In this case the code I have
can make use of the FreeBSD polling driver, which by default isn't
built into a kernel. So I want my configure
2009/1/12 Giorgos Keramidas keram...@ceid.upatras.gr:
On Mon, 12 Jan 2009 14:56:21 +, Andrew Brampton
brampton+freebsd-hack...@gmail.com wrote:
If you were going to do this, would you make it a configure flag... ie
--enable-polling... That way it doesn't matter if the build box
27 matches
Mail list logo