Gdb. Thread apply all bt.
Thanks,
Max
On Mar 2, 2012, at 4:49 PM, Yuri wrote:
> I have the multithreaded process, each thread has some stack state at each
> point of time. For example during the timer tick when processes are switched?
> Is there a way to take a snapshot without disrupting a
On Mon, Mar 8, 2010 at 9:02 AM, Julian H. Stacey wrote:
> Hi hackers@
> Am I missing something obvious, or is a bit more needed in man kbdcontrol ?
possibly the later :)
> What kbdcontrol[s] set an external USB keyboard (only)
> to eg American (or German etc), while leaving internal in English ?
On Mon, Feb 2, 2009 at 11:42 AM, Christoph Mallon
wrote:
> Hi,
>
> I compiled a list of all local variables in src/sys/ (r188000), which are
> only written to, but never read. This is more than the GCC warning, which
> only complains about variables, which are only declared (and maybe
> initialise
Hello,
can i use wcstombs(3) to convert a string presented in utf8 into
current locale? basically i'm looking for something like iconv from
ports but included into base system.
in other words, would something like this work?
char *locale, dst[256];
size_t len;
locale = setlocale(LC_CTYPE, "");
On 9/17/08, Eygene Ryabinkin <[EMAIL PROTECTED]> wrote:
> Maxim, good day.
>
> Cc'ing this discuission to hackers@ -- I was just going to write
> the separate letter on this topic to the list.
>
> Wed, Sep 17, 2008 at 09:56:14AM -0700, Maksim Yevmenkin wrote:
>
On 5/27/08, Rick C. Petty <[EMAIL PROTECTED]> wrote:
> On Tue, May 27, 2008 at 02:28:26PM -0700, Maksim Yevmenkin wrote:
> >
> > well, i just took a brief look at atkbd(4). specifically one function
> > - wait_while_controller_busy(). this function polls status ev
On 5/27/08, Rick C. Petty <[EMAIL PROTECTED]> wrote:
> On Tue, May 27, 2008 at 01:32:10PM -0700, Maksim Yevmenkin wrote:
> >
[...]
> > i suspect that because physical ps2 keyboard is not actually
> > present, the atkbd driver will have to timeout while talking t
On 5/27/08, Rick C. Petty <[EMAIL PROTECTED]> wrote:
> On Tue, May 27, 2008 at 10:34:47AM -0700, Maksim Yevmenkin wrote:
> > >
> > > Agreed. I was never able to pinpoint it myself, but it certainly didn't
> > > show up before kbdmux.
> >
> &
On 5/26/08, Rick C. Petty <[EMAIL PROTECTED]> wrote:
> On Mon, May 26, 2008 at 10:11:09PM -0700, Jeremy Chadwick wrote:
> > >
> > > Being that the issue is on your wiki page, does that mean this problem
> will
> > > be fixed some day?
> >
> > Hopefully. :-) I'd like to point fingers at kbdm
On 6/20/07, Julian Elischer <[EMAIL PROTECTED]> wrote:
Nicolas Cormier wrote:
> On 6/20/07, John Polstra <[EMAIL PROTECTED]> wrote:
>> Using ng_ksocket is almost the same as using the so* functions, since
>> the ksocket methods call the so* functions. But by using netgraph, you
>> get a nice m
On 3/29/07, Timothy Bourke <[EMAIL PROTECTED]> wrote:
[...]
> >Does the attached patch seem reasonable? It would fix my immediate
> >problem.
>
> sorry for the delay. i'm not sure about this patch. basically, i do
> not think that keyboard should be disabled if it is released from
> kbdmux. it
On 3/24/07, Timothy Bourke <[EMAIL PROTECTED]> wrote:
I have almost finished a ppbus-based driver for Super Nintendo
controllers. It presents itself as a keyboard to the operating system. I
wanted to start and stop the polling thread via, respectively, the
kbd_enable_t and kbd_disable_t hooks, bu
Maksim Yevmenkin wrote:
Borja Marcos wrote:
Hello,
I saw this some time ago but always forgot to report it.
I'm running a pair of machines with FreeBSD/sparc64 (various versions,
one of them is running -STABLE now), and I've seen a problem with the
network stack.
Looking at
Borja Marcos wrote:
Hello,
I saw this some time ago but always forgot to report it.
I'm running a pair of machines with FreeBSD/sparc64 (various versions,
one of them is running -STABLE now), and I've seen a problem with the
network stack.
Looking at buffer and window sizes,
earendil# sysc
Maxime Henrion wrote:
maksim yevmenkin wrote:
Maxime Henrion wrote:
Dag-Erling Sm?rgrav wrote:
Maksim Yevmenkin <[EMAIL PROTECTED]> writes:
so far i only got one (successful) report. would people please give
it a try to see if work, so i can commit it.
Please commit it. I don't
Maxime Henrion wrote:
Dag-Erling Sm?rgrav wrote:
Maksim Yevmenkin <[EMAIL PROTECTED]> writes:
so far i only got one (successful) report. would people please give
it a try to see if work, so i can commit it.
Please commit it. I don't see how it can do any harm.
Yes please; I
Hans Petter Selasky wrote:
On Thursday 27 July 2006 20:40, Dag-Erling Smørgrav wrote:
maksim yevmenkin <[EMAIL PROTECTED]> writes:
Dag-Erling Smørgrav <[EMAIL PROTECTED]> writes:
No, kbdmux needs to be fixed so it works in DDB.
actually, atkbd(4) needs to be fixed to support &
Dag-Erling Smørgrav wrote:
maksim yevmenkin <[EMAIL PROTECTED]> writes:
Dag-Erling Smørgrav <[EMAIL PROTECTED]> writes:
No, kbdmux needs to be fixed so it works in DDB.
actually, atkbd(4) needs to be fixed to support "polled" mode :)
It used to work fine befor
Dag-Erling Smørgrav wrote:
"Intron" <[EMAIL PROTECTED]> writes:
Dag-Erling [iso-8859-1] Smo/rgrav wrote:
"Intron" <[EMAIL PROTECTED]> writes:
When kernel panics, the prompt "db>" will appear. But at this
time I cannot control my computer with keyboard any longer.
What's wrong with me?
I don
Norbert,
yes I too looked at ukbd code and found the same.
I already put a patch on the bug list yesterday.
good. does it fix your problem, i.e. keyboard freeze? if it does then i
can commit it for you.
In the mean time I compared the ukbd code to
that of NetBSD and OpenBSD. Their code is
Maksim Yevmenkin wrote:
[...]
I still do not know where it comes from,
but what I found so far is,
that the usb keyboard (or ukbd driver)
seems to delay the break codes for
keys with prefix E0 (which may or may not
have anything to do with my problem).
E.g., I press Keypad-Enter and see
E0
Maksim Yevmenkin wrote:
Norbert,
[...]
I still do not know where it comes from,
but what I found so far is,
that the usb keyboard (or ukbd driver)
seems to delay the break codes for
keys with prefix E0 (which may or may not
have anything to do with my problem).
E.g., I press Keypad-Enter and
Norbert,
[...]
I still do not know where it comes from,
but what I found so far is,
that the usb keyboard (or ukbd driver)
seems to delay the break codes for
keys with prefix E0 (which may or may not
have anything to do with my problem).
E.g., I press Keypad-Enter and see
E0 1C E0
^p
int main(int argc, char* argv[])
{
char *c = "whats:your:name:buddy?";
that is not read only copy. you can not write
into it. replace it with
char *c = strdup("whats:your:name:buddy?");
Or the following:
char c[] = "whats:your:name:buddy?";
whi
Maksim Yevmenkin wrote:
Stefan,
int main(int argc, char* argv[])
{
char *c = "whats:your:name:buddy?";
that is not read only copy. you can not write into it.
replace it with
made type. that should read "that is read only copy" :)
Stefan,
int main(int argc, char* argv[])
{
char *c = "whats:your:name:buddy?";
that is not read only copy. you can not write
into it. replace it with
char *c = strdup("whats:your:name:buddy?");
(void*)mystrsep(&c, ":");
}
and it should work
Hello Norbert,
I did some more testing with kbdmux.
1. I wait for the screen saver becoming active.
2. I press the control key.
3. All keys, I press after that,
come as control keys, e.g.
I press 'j' or 'J' and see a
linefeed, I press 'I' and see a tab.
4. I wait a second time for the
Norbert,
The ukbd-specific detaching only works, because I implemented
something in ukbd.c, that Hans Petter Selasky [EMAIL PROTECTED]
suggested in thread "usbd.conf: detach ukbd". (See the patch files,
I posted there)
When the kernel panics, it does this in usb0 kernel thread. I
figured out th
Hi Norbert,
you also might want to look at experimental keyboard mux drivers.
it is based on vkbd(4) and uses the idea of one super-keyboard that
consumes scancodes from other keyboards. there are still a few
issues i need to fix, but, in general, it works.
http://www.geocities.com/m_evmenkin/k
Norbert,
when running usbd (under FreeBSD 4.11) with
-dv switches I can see that a usb keyboard
correctly attaches as ukbd0,
but detaches as fall-through "USB device".
can you please tell what is in your /etc/usbd.conf?
Do I just have to live with that fact or can
I change that anyhow? Is th
Norbert,
When looking at /sys/dev/vkbd/vkbd.c I found
one thing, that I do not understand.
There are three places, where a flag TASK is used:
1. in vkbd_dev_close():
while(state->ks_flag & TASK) VKBD_SLEEP (...);
2. in vkbd_dev_write()
VKBD_LOCK ();
...
if (!(state->ks_flags & TASK)
Norbert,
I am trying to use vkbd to multiplex
an at keyboard and an usb keyboard
into syscons.
ok
Vkbd's control device's write routine
expects ints to queue to the slave device.
correct
As I understand, those ints map 1:1
to the chars I read from a keyboard device, right?
yes, the int
Alexander Kabaev wrote:
On Tue, May 31, 2005 at 09:41:18AM -0700, Maksim Yevmenkin wrote:
Norbert,
I am currently trying to backport vkbd to FreeBSD 4.
ok
Maksim Yevmenkin uses mtx_lock()/mtx_unlock() for
protecting access to data structures under FreeBSD 5/6
between the device
Norbert,
I am currently trying to backport vkbd to FreeBSD 4.
ok
Maksim Yevmenkin uses mtx_lock()/mtx_unlock() for
protecting access to data structures under FreeBSD 5/6
between the device functions and the kernel thread.
How should I best do this under FreeBSD 4?
Would something like
Bernd Walter wrote:
On Fri, Apr 08, 2005 at 06:12:33PM -0400, David Gilbert wrote:
Bernd> Has this device multiple interfaces? e.g. one HID and
another Bernd> as described. I often thought about getting ugen
working at Bernd> interface level too.
Here's the output of udesc_dump on it. Right now,
David,
Bernd> Then it really shouldn't have claimed to be one in the
Bernd> interface descriptor :( But the HID specification is more today
Bernd> than just _human_ interface. e.g. there are extensions for
Bernd> USV, ...
[...]
Bernd> Has this device multiple interfaces? e.g. one HID and another
David,
... I don't know if this is hindering me. The usbhid* commands
aren't particularly helpful. The port udesc_dump seems only to
work on ugen devices ... and ugen doesn't pop up for this device.
Maksim> how about getting usb hid descriptor, parsing and dumping it?
Maksim> check out libusbhi
David,
I've got an "OnTrak" ADU208. It's a USB device that has 8 relays and
8 ttl inputs. The documentation says it uses two interupt endpoints
... one input and one output. It seems to expect small text commands.
ok
Now... firstly, uhid is probing it as uhid0:
uhid0: www.ontrak.net ADU208 USB R
left2right many0
>>+ connect tee: tee:left2right right2left many1
+ name tee:left2right one2many
>>+ show one2many:
thanks,
max
Take care my friend.
Jerry
On Wednesday 30 March 2005 05:22 pm, Maksim Yevmenkin wrote:
Jerry,
draw a picture :) it really helps :) for example
Jerry,
draw a picture :) it really helps :) for example
right2left left2right
\ /
[ksocket] --- [tee] [hole]
left right
# ngctl
+ mkpeer hole hook hook -- create ng_hole node
+ name hook hole -- name ng_hole node
+ mkpeer hole: tee r
Hello,
Here, I pushed that section of code up before the prior
mtx_unlock(&tp->tap_mtx) above it, then removed the splimp/splx
calls. Is this what you were referring to (attached)? Also, I noticed
splx and splimp are called in a number of other places in this
driver, even under -CURRENT. You want
2) Is there a way to set this interface flag without assigning an IPv4
address (or any address for that matter) first?
Mainly for number two, I would like to be able to run interfaces
bridged together without having to also give all of them addresses.
please try the attached (untested!) patch. it
Dear Hackers,
does anyone objects to the attached libusbhid(3) patch? unpatched library
gives me wrong HID page/usage values when i try to parse HID descriptor
from Microsoft Bluetooth keyboard. please see attached patched.txt and
unpatched.txt outputs.
thanks,
max
__
Dear Hackers,
while working on bluetooth hid implementation i found out that
libusbhid(3) has minor problem. it turns out that netbsd folks
already fixed this.
http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libusbhid/parse.c.diff?sortby=date&r1=1.4&r2=1.5&f=u
so, i'd like to commit the patch below.
Peter,
> > I'm currently thinking about un-Netgraph'ing FreeBSD code to make it
> portable
> > to other BSD style systems. I'm trying to look at other implementations
> > and learn as much as i can. In particular i'm trying to figure out how to
> > minimize OS dependent code and what is the right
Dear Hackers,
Does anyone know if Apple has released Darwin/OSX Bluetooth code to the
public? Quick look at http://www.opensource.apple.com/ did not reveal
anything particularly useful (although i did not try really hard :)
I'm currently thinking about un-Netgraph'ing FreeBSD code to make it port
ng_ubt(4) (/sys/netgraph/bluetooth/drivers/ubt) driver
(Bluetooth USB devices) makes use of two interfaces.
From a look into the driver these interfaces serve different
protocols.
not sure what do you mean by protocol here. interface 0 has
control, interrupt, bulk-in and bulk-out endpoints. interfa
Just FYI
ng_ubt(4) (/sys/netgraph/bluetooth/drivers/ubt) driver
(Bluetooth USB devices) makes use of two interfaces.
thanks,
max
Bernd Walter wrote:
On Fri, Mar 28, 2003 at 10:38:58AM -0800, Bill Paul wrote:
So. I picked up a Linksys USB200M USB 2.0 ethernet adapter that uses
the ASIX Electronics
es, this is more accurate description. i missed it.
changes. Just to be picky, I'll re-sort the OPT_ variables too :*P
no problem :)
And thanks for the patches.
thank you for reviewing them :)
max
On Mon, 03 Feb 2003 14:45:37 -0800, Maksim Yevmenkin wrote:
Dear Brian and Hackers,
Please find u
Dear Hackers,
I need an expert's advice on the small locking/WITNESS problem
(if this is a real problem of course). It basically boils down
to the following:
Consider three (3) MTX_DEF mutexes: A, B1 and B2. Mutex A has a
name "mutex_A" and type "type_A". Mutex B1 has a name "mutex_B1"
and mutex
Terry,
> > seems like it :) just got report back from one of the testers.
> > he got connected to the internet over his T39m bluetooth enabled
> > cell phone. the cool thing is that you can make CSD, GPRS or HSCSD
> > calls. its just a matter of init string you send to the phone :)
> > still waiti
Terry,
Maksim Yevmenkin wrote:
force-scripts
Default: Disabled. Forces execution of the configured chat
scripts in direct and dedicated modes.
Outstanding! If Brian doesn't veto, I'd say it's gold, and
someone should commit it; so I guess this fixes the last Bluetooth
Dear Brian and Hackers,
Please find updated proposed version of the patch. As suggested by
Warner option has been renamed to 'force-sripts' and now works for
both 'direct' and 'dedicated' modes. Also as suggested by Terry the
man page has been updated to document side effect of 'direct'.
-direct
Dear Hackers,
Please find attached patch that adds new option to the PPP.
run-scripts-in-direct-mode
Default: Disabled. This allows to run chat scripts in
direct mode.
did i miss anything? objections? comments? reviews?
thanks,
max
I'm working on the Bluetooth stack for FreeBSD and curren
Daniel,
> > yes. that is one example. but the real trouble with tty is the
> > server application that wants to listen on wildcard address. for
> > example Network Access point that listens on RFCOMM channel 1. no
> > matter what client comes in the server will just accept connection
> > on the s
Warner,
> : So you see it is probably possible to build a tty-like interface,
> : but i do not think it really worth the trouble. In fact one
> : can do it right now with the help of nmdm(4) driver. It is a
> : simple wrapper that would pass the data between socket and
> : /dev/nmdm0{A|B}.
>
> T
Daniel,
> > Is there any reason that RFCOMM doesn't give full tty support, like
> > the various USB modem drivers do? That's likely the best way to deal
> > with this. Then ppp or whatever application you want will just work.
>
> Maybe it is necessary/useful to 'steer' PPP from the RFCOMM end?
Warner,
> Is there any reason that RFCOMM doesn't give full tty support, like
> the various USB modem drivers do? That's likely the best way to deal
> with this. Then ppp or whatever application you want will just work.
Yes, there is. RFCOMM connection can only be established when
baseband link
Daniel,
> > So the questions is: would it be possible to enable PPP chat
> > in "direct" mode? Is there any reason to not allow this? It
> > seems 'login' script would do just fine. Is there any other/
> > better way to do this? One possible option right now is to
> > execute /bin/chat from the l
Dear Hackers,
I'm working on the Bluetooth stack for FreeBSD and currently
doing testing for new in-kernel RFCOMM code. RFCOMM is a way
to emulate serial link over Bluetooth.
In particular Bluetooth spec defines two RFCOMM based profiles
LAN (Network Access profile) and DUN (DialUp Networking pro
Steve Tremblett wrote:
>
> I've been toying with the idea of tackling a Netgraph TCP/IP
> implementation and want to hack out some skeleton netgraph nodes just
> to feel things out and play around with parsing. I'm somewhat confused
> on how to start. I'd like to be able to tinker as I go and I'
Ian Dowse wrote:
>
> In message , Garance A Drosihn writes:
> >I also have a partition with freebsd-current from two or three days
> >ago, and all the latest versions of the ports. Every time I try to
> >start vmware2 on the newer system, the hardware dies.
Bosko Milekic wrote:
>
> On Mon, Aug 26, 2002 at 09:41:43AM -0700, Maksim Yevmenkin wrote:
> > John Baldwin wrote:
> > >
> > > On 26-Aug-2002 M. Warner Losh wrote:
> > > > can you call wakeup(9) from a fast interrupt handler?
> >
> > [ ...]
John Baldwin wrote:
>
> On 26-Aug-2002 M. Warner Losh wrote:
> > can you call wakeup(9) from a fast interrupt handler?
[ ...]
> > The only reason I ask is because sio seems to go out of its way to
> > schedule a soft interrupt to deal with waking up processes, which then
> > calls wakeup...
>
System Administrator wrote:
>
> Your message
>
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Bug in m_split() ?
> Sent:Wed, 10 Apr 2002 09:23:16 -0700
>
> did not reach the following recipient(s):
>
> [EMAIL PROTECTED] on Wed, 10 Apr 2002 09:23:21 -0700
> The e-mail
Duncan Barclay wrote:
>
> From: "Terry Lambert" <[EMAIL PROTECTED]>
> > I haven't really taken an active interest in BlueTooth,
> > since there are no laptops or printers that come with
> > it already present; I rather think it will end up as
> > still-born because of 802.11e Gigabit wireless, wh
Hackers,
Here is full status report on project i was working on. I apologize for
the
wide distribution, but i think that might be interesting.
Bluetooth stack for FreeBSD (Netgraph implementation)
=
The project is making progress. I decided to
t;http://www.FreeBSD.org/cgi/getmsg.cgi?fetch=589265+595599+/usr/local/www/db/text/2001/freebsd-hackers/20011007.freebsd-hackers
>
> There were two different projects, one in design phase (by John Kozubik
> <[EMAIL PROTECTED]>) and another (by Maksim Yevmenkin <[EMAIL PROTECTE
Hackers,
first of all i apologize for posting this in -hackers. it really
belongs to -questions, but i saw similar messages in -questions and
there was not much response.
the problem is very simple: i can not burn audio CDs with my LG
CED-8080B internal IDE drive and bunrcd. but here is a smal
Duncan
> I might be worth talking to the people at
>
> http://www.blueaid.com/
Thanks for the info!
> Bill Munday has written and architected a number of the Bluetooth stacks
> various vendors use. He does free consulting and knows a _lot_ of people
> in the Bluetooth world. He is lik
> Is anyone working on bluetooth drivers and accompanying userland programs
> (bluetooth equivalents of wicontrol, etc.) ?
ok :) i'm actually working on BlueTooth stack for FreeBSD. so far
i have some code that implements basic functionality for HCI layer.
the implementation is based on Netgraph
Julian,
[...]
> All this changes in -current where netraph was largely rewritten.
i know. i'm using current
> > i'm in the middle of the project that uses Netgraph.
> > everything is going pretty good, but there is one small
> > issue. in five words it is "message and data delivery
> > schedu
Luigi,
[...]
> one problem you have to keep in mind with what you want to do
> (and i am not talking about the implementation that you suggest,
> just the "delayed processing" aspects) is that sometimes data passed
> through modules have a limited lifetime and might have become stale
> by the ti
Hackers,
i'm in the middle of the project that uses Netgraph.
everything is going pretty good, but there is one small
issue. in five words it is "message and data delivery
scheduling". here is an example:
Node A --> Node B --> Node C
Node "A" forwards data/messages to Node "B" and Node "B"
Chris Costello wrote:
>
> On Friday, August 24, 2001, Mike Barcroft wrote:
> > I would appreciate comments on the usefulness of a utility which would
> > allow one to detach a process from a TTY. I imagine the utility would
> > be very small and just call daemon(3) and execlp(3).
> >
> > Would a
> > Is it possible to provide pseudo ethernet interfaces?
> > Can we associate an IP and MAC address with a psuedo ethernet
> > interface
> > to facilitate data packet transmission & reception through that?
yes.
> > If so, how does it work?
> > Pointers to any documentation in this regard
Hello All,
anyone wants to review and commit the following patch.
thanks,
emax
__
Do You Yahoo!?
Thousands of Stores. Millions of Products. All in one Place.
http://shopping.yahoo.com/
if_tap.c.diff
Hello Harti,
> > > is there somebody working to make if_tap devfs-ready? Or I'm doing
> > > something wrong?
> >
> > [SNIP]
> > it seems to me that it did not get commited. i will look into it again
> > today and re-send patch to the list.
>
> Great! It works. (Minus a spelling error: the parame
Hello,
> I recently moved to using devfs and now if_tap seems unusable. Although
> the module is loaded, it doesn't show up in /dev or as an interface.
> >From a quick comparison with if_tun it seems that this is 'expected'
> behaviour although I'm not a specialist with devfs. Is this so? If yes,
Hello All,
Here are some small patches for NETGRAPH.
These are against -current cvsup'ed yesterday around 8:30pm EST.
http://home.earthlink.net/~evmax/ng.tar.gz
It also includes small test program (based on nghook).
Compile and run it like:
# ./a.out -a iface_name: divert
NETGRAPH option in
Hi,
I have some minor probem with my CMI8330 chip based integrated sound
card on m726 motherboard.
Here's the URL where you can find how to fix it:
http://www.cslab.vt.edu/~jobaldwi/cmi8330init.tar.gz
= cut here =
Thank you very much for your problem report.
It has the
Hi,
I have some minor probem with my CMI8330 chip based integrated sound
card on m726 motherboard.
Here's the URL where you can find how to fix it:
http://www.cslab.vt.edu/~jobaldwi/cmi8330init.tar.gz
= cut here =
Thank you very much for your problem report.
It has th
82 matches
Mail list logo