have a newer version and don't have any problems.
Peter Dufault
HD Associates, Inc.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]
Dufault did but he's been gone for years.
Peter
--
Peter Dufault ([EMAIL PROTECTED]) Realtime development, Machine control,
HD Associates, Inc. Fail-Safe systems, Agency approval
To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-hackers in the body of the message
just be removed, I'll try to sneak
some time in and do it. Thanks for the info.
Peter
--
Peter Dufault ([EMAIL PROTECTED]) Realtime development, Machine control,
HD Associates, Inc. Fail-Safe systems, Agency approval
To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe
,
different programs at different heights, etc.
I did a little searching for log file analysis, etc, but only see
web site oriented utilities. I'll start rolling my own using a tk
canvas, but does anyone know of a good starting point tool?
Peter
--
Peter Dufault ([EMAIL PROTECTED]) Realtime
Date: Thu, 1 Mar 2001 12:44:39 -0500 (EST)
From: Peter Dufault [EMAIL PROTECTED]
This is a stupid question, basically it's how to debug something.
I have four cooperating p-threaded processes. One of them keeps getting
a SIGSEGV with the address 0x752f422f. I'm not sure
Peter Dufault [EMAIL PROTECTED] writes:
Do an msync with MS_SYNC someplace. Also, use MAP_NOSYNC in
mmap until 4.3 when Matt Dillon plans to make that the default behavior.
Ahh, no. That's the other way around - I do not *want* it to hit the
disk, but would like to *know* when
to mimic the vxWorks behavior of having a different file
0, 1, and 2 per thread. By disabling this the behavior goes
away, apparently what I'm doing is illegal.
Peter
--
Peter Dufault ([EMAIL PROTECTED]) Realtime development, Machine control,
HD Associates, Inc. Fail-Safe system
dump the stack brute force on an x86?
Peter
--
Peter Dufault ([EMAIL PROTECTED]) Realtime development, Machine control,
HD Associates, Inc. Fail-Safe systems, Agency approval
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message
now, I'm assuming the main use for this is debugged
small closed embedded systems, only bring up kickers.
Peter
--
Peter Dufault ([EMAIL PROTECTED]) Realtime development, Machine control,
HD Associates, Inc. Fail-Safe systems, Agency approval
To Unsubscribe: send mail to [EMAIL PROTEC
mmap(fd, MAP_NOSYNC|MAP_SHARED);
unlink("foo");
Everyone now happily does what they want and then all exit and no one
ever does an msync().
Then you never need to actually transfer any data to disk. I'm
not sure what actually happens now.
Peter
--
Peter Dufault ([EM
and checking the mtime should give you
the info at the expense of polling, I can't think of another way.
Peter
--
Peter Dufault ([EMAIL PROTECTED]) Realtime development, Machine control,
HD Associates, Inc. Fail-Safe systems, Agency approval
To Unsubscribe: send mail to [EMAIL PROTECTED
n-blocking and then clear O_NONBLOCK using
fcntl, hopefully that will work in all environments.
Peter
--
Peter Dufault ([EMAIL PROTECTED]) Realtime development, Machine control,
HD Associates, Inc. Fail-Safe systems, Agency approval
To Unsubscribe: send mail to [EMAIL PROTECTED]
with &q
can you provided a small piece of code that shows this behaviour?
Here's one without error checking. Be sure to use -pthread.
Peter
--
Peter Dufault ([EMAIL PROTECTED]) Realtime development, Machine control,
HD Associates, Inc. Fail-Safe systems, Agency approval
#include
it gets worse -- when i change my loop to be:
while (1) {
fifo = open(fifoPath, O_RDONLY | O_NONBLOCK);
cread = read(fifo, buf, sizeof(buf));
if (cread 0) do_something();
close(fifo);
usleep(10);
}
is is a can of worms, but this would
be a way to proceed.
Peter
--
Peter Dufault ([EMAIL PROTECTED]) Realtime development, Machine control,
HD Associates, Inc. Fail-Safe systems, Agency approval
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message
t. I've had
it idle for half an hour so I don't know of any other events that
wake it up.
You'd have to be sure nothing was going to talk to it and you'd need
an ARP entry for once the arp cache timed out to use this in any way.
Peter
--
Peter Dufault ([EMAIL PROTECTED]) Realtime development,
() and
sched_getpriority_max().
Peter
--
Peter Dufault ([EMAIL PROTECTED]) Realtime development, Machine control,
HD Associates, Inc. Fail-Safe systems, Agency approval
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message
the only one ever burnt by this?
Do other user-space thread systems handle this similarly?
Maybe an info thread can block at an info fifo in conjunction
with a "psthread" program.
Peter
--
Peter Dufault ([EMAIL PROTECTED]) Realtime development, Machine control,
HD Associates, Inc.
On Sun, 3 Dec 2000, Peter Dufault wrote:
Again I've forgotten that SIGINFO dumps the pthread info and created
several gigabytes of /tmp files:
rt% rm /tmp/uthread*
/bin/rm: Argument list too long.
I don't consider it bad form to use SIGINFO to see if processes are
still
e
C++ work in an embedded system. Exceptions had already been given
up on. The ctors/dtors are handled with "munch" style tools
(from vxWorks land) that generate construct/destruct
vectors that you'll probably then hook in with kernel modules.
Peter
--
Peter Dufault ([EMAIL PROTECTED])
initially mapped to a copy on write zero page. I guess you can't
do that without mmap because of swap allocation.
Peter
--
Peter Dufault ([EMAIL PROTECTED]) Realtime development, Machine control,
HD Associates, Inc. Fail-Safe systems, Agency approval
To Unsubscribe: send mail
hared memory objects and
shared files in different places and also having names
such as "/vme_pid7662_data64" since I can't have subdirs.
Peter
--
Peter Dufault ([EMAIL PROTECTED]) Realtime development, Machine control,
HD Associates, Inc. Fail-Safe systems, Agency approv
d are ways to
connect to remote serial ports. Does anyone know if I can easily
do this?
Peter
--
Peter Dufault ([EMAIL PROTECTED]) Realtime development, Machine control,
HD Associates, Inc. Fail-Safe systems, Agency approval
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsu
setpshared() to it, and then have the usual
pthread_mutex_lock()/pthread_mutex_unlock() interface support the
high performance synchronization.
Peter
--
Peter Dufault ([EMAIL PROTECTED]) Realtime development, Machine control,
HD Associates, Inc. Fail-Safe systems, Agency approval
To U
Here's the kind of thing I have in mind, wrapped around the pthreads
mutexes. This replaces default pthread mutexes (those with no special
attributes) with possibly fast ones. I haven't done any real timing but
I've verified that a program I have works and runs a lot faster with
these wrappers.
to a swarm
of worker bees.
Peter
--
Peter Dufault ([EMAIL PROTECTED]) Realtime development, Machine control,
HD Associates, Inc. Fail-Safe systems, Agency approval
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message
I have a program where I mmap a huge sparse file.
If I fault and generate a core dump it proceeds to do something until
the disk is full, but the disk is then left not full and a perfectly good core
dump of a reasonable size is left.
Can anyone explain? This is with 4.0.
Peter
--
Peter
The stuff defined in /usr/include/posix4/semaphore.h, is
not implemented in -current, right? If I missed it, I'd
appreciate a pointer...
Right, not implemented.
Peter
--
Peter Dufault ([EMAIL PROTECTED]) Realtime development, Machine control,
HD Associates, Inc. Safety
--
Peter Dufault (dufa...@hda.com) Realtime development, Machine control,
HD Associates, Inc. Safety critical systems, Agency approval
To Unsubscribe: send mail to majord...@freebsd.org
with unsubscribe freebsd-hackers in the body of the message
a few searches?
I have other opinions, some that I hold strongly, but since they
have to do with lack of definition of boundary conditions then I
won't bring them up until (2.) is answered.
Peter
--
Peter Dufault ([EMAIL PROTECTED]) Realtime development, Machine control,
HD Associates, Inc
a few searches?
I have other opinions, some that I hold strongly, but since they
have to do with lack of definition of boundary conditions then I
won't bring them up until (2.) is answered.
Peter
--
Peter Dufault (dufa...@hda.com) Realtime development, Machine control,
HD Associates, Inc
.
The possible inline ffs is in machine/cpufunc.h
ffs() is fundamental to scheduling queues and cryptography and
should have attention paid to it. As Warner said, it could be
a single instruction on some architectures.
Peter
--
Peter Dufault (dufa...@hda.com) Realtime development, Machine
Well, bzero could map all memory (outside the boundaries)
to a single zeroed page marked copy on write.
The statistics you could gather might then point out some grossly broken
programs.
Peter
--
Peter Dufault ([EMAIL PROTECTED]) Realtime development, Machine control,
HD Associates, Inc
Well, bzero could map all memory (outside the boundaries)
to a single zeroed page marked copy on write.
The statistics you could gather might then point out some grossly broken
programs.
Peter
--
Peter Dufault (dufa...@hda.com) Realtime development, Machine control,
HD Associates, Inc
34 matches
Mail list logo