Re: determining bus_dma memory usage by driver

2011-10-25 Thread Chuck Tuffli
On Mon, Oct 24, 2011 at 8:38 PM, Matthew Jacob wrote: > > On 10/24/2011 5:21 PM, Chuck Tuffli wrote: >> >> Is there an easy way to determine the amount of bus_dma memory >> allocated by a driver? Something similar to vmstat -m >> > > bus_dma memory allocatio

determining bus_dma memory usage by driver

2011-10-24 Thread Chuck Tuffli
Is there an easy way to determine the amount of bus_dma memory allocated by a driver? Something similar to vmstat -m TIA ---chuck ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send

Re: no KLD symbols in dtrace?

2011-04-22 Thread Chuck Tuffli
On Fri, Apr 22, 2011 at 9:41 AM, Andriy Gapon wrote: > on 22/04/2011 18:56 Chuck Tuffli said the following: >> On Fri, Apr 22, 2011 at 8:44 AM, Andriy Gapon wrote: >>> Also, dtrace process needs to access the module file for address-to-name >>> translation. >

Re: no KLD symbols in dtrace?

2011-04-22 Thread Chuck Tuffli
On Fri, Apr 22, 2011 at 8:44 AM, Andriy Gapon wrote: > on 22/04/2011 18:24 Alexander Kabaev said the following: >> Do ctfdump -tf on your kld and verify that what it outputs actually >> makes sense. Do kldload and see if fbt provider knows about your module >> and functions. There is nothing else

Re: no KLD symbols in dtrace?

2011-04-22 Thread Chuck Tuffli
On Thu, Apr 21, 2011 at 7:16 PM, Alexander Kabaev wrote: ... > There is an omission on our .mk files which prevents CTF info to be > generated for kld modules, regardless of WITH_CTF flag. I had > discovered this at work just recently and have been using the > following patch for the time being: >

no KLD symbols in dtrace?

2011-04-21 Thread Chuck Tuffli
(Note I'm new to DTrace, so this may be ignorance on my part) I have re-built a stock 8.2 kernel and enabled dtrace as per the handbook (including WITH_CTF=1) and have built a kld also using WITH_CTF=1. When I run the following dtrace -n"bus_release_resource:entry { stack(); }" the output looks

Re: Compiling Kernel Module with Current Kernel Options

2004-08-05 Thread Chuck Tuffli
chine and don't remember having to do anything special. -- Chuck Tuffli Agilent Technologies, Storage Area Networking ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Re: bus_alloc_resource question

2004-07-27 Thread Chuck Tuffli
nd unmap the segments that didn't contain devices. -- Chuck Tuffli Agilent Technologies, Storage Area Networking ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"

bus_alloc_resource question

2004-07-26 Thread Chuck Tuffli
TIVE | RF_SHAREABLE); A call to bus_get_resource() shows that the resource did get set as the call returns the correct starting address and count. Is there something else that needs to happen between the set and the alloc? Is this even the correct approach? Thanks in advance! -- Chuck Tuffli Agile

Re: Compilation

2004-03-02 Thread Chuck Tuffli
_io': > @/pci/pcivar.h:280: warning: implicit declaration of function > `PCI_DISABLE_IO' > @/pci/pcivar.h: In function `pci_set_powerstate': > @/pci/pcivar.h:307: warning: implicit declaration of function > `PCI_SET_POWERSTATE' > > code is here: http://chiak

Re: [Driver WD1100] Compilation

2004-03-02 Thread Chuck Tuffli
just type make. See src/sys/modules/*/Makefile for other examples. -- Chuck Tuffli Agilent Technologies, Storage Area Networking ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Re: isp/ispfw

2003-07-31 Thread Chuck Tuffli
un -1 () > scbus-1 on xpt0 bus 0: What does 'camcontrol rescan 1:0:0' report? -- Chuck Tuffli Agilent Technologies, Storage and Networking ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Re: kldload - passing params to kernel module

2003-03-19 Thread Chuck Tuffli
rs") http://www.freebsd.org/cgi/getmsg.cgi?fetch=127033+0+/usr/local/www/db/text/2002/freebsd-hackers/20021110.freebsd-hackers for some additional information. -- Chuck Tuffli Agilent Technologies, Storage and Networking To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

interrupt handler not getting called

2003-02-20 Thread Chuck Tuffli
# ExtINT active-hiedge5 0 20 ... INT active-lo level2 1:A 40 INT active-lo level2 1:B 41 INT active-lo level 3 3:

question about SMP stack pointer

2003-01-03 Thread Chuck Tuffli
r Kernel ! options APIC_IO # Symmetric (APIC) I/O ! devicesio0at isa? port IO_COM1 flags 0x90 irq 4 -- Chuck Tuffli Agilent Technologies, Storage and Networking To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: registers not saved

2002-12-10 Thread Chuck Tuffli
On Tue, Dec 10, 2002 at 04:58:34PM +0100, [EMAIL PROTECTED] wrote: > In message <[EMAIL PROTECTED]>, Chuck Tuffli write > s: > >I've been chasing down some weird panics in my CAM driver and have > >noticed that functions don't seem to save all register values befo

registers not saved

2002-12-10 Thread Chuck Tuffli
s ecx as a loop index. The bad part is function B never saves/restores the value of ecx and function A starts dereferencing garbage. An informal sampling of my driver seems to indicate that ebx gets pushed/poped at entry/exit but ecx and edx don't. Does any of this sound familiar? Thanks! -

double fault w/o playing tennis

2002-11-26 Thread Chuck Tuffli
t;Frame pointers for dummies") that I can use to figure out what went wrong? Thanks! -- Chuck Tuffli Agilent Technologies, Storage and Networking To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: bus_dmamem_alloc failing

2002-11-15 Thread Chuck Tuffli
explanation. Would a physical defragmenter be of interest? I can't work on it right away, but if there is interest, I could take a look at this later. -- Chuck Tuffli Agilent Technologies, Storage and Networking To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe free

Re: bus_dmamem_alloc failing

2002-11-15 Thread Chuck Tuffli
(), can other drivers or the kernel not use this memory? -- Chuck Tuffli Agilent Technologies, Storage and Networking To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

bus_dmamem_alloc failing

2002-11-15 Thread Chuck Tuffli
up the memory if (virt != NULL) { bus_dmamap_unload(child, map); bus_dmamem_free(child, virt, map); bus_dmamap_destroy(child, map); } bus_dma_tag_destroy(child); bus_dma_tag_destroy(parent); I'm clearly doing something wrong, but I don't understand what the problem is. An

Re: A quick gdb help

2002-11-12 Thread Chuck Tuffli
I insist setting > it, is there a way? Thanks. 'i' is shorthand (or an alias) for the info command. Not sure if you can effectively "unalias" i. -- Chuck Tuffli Agilent Technologies, Storage and Networking To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

vmstat to detect memory leaks?

2002-11-10 Thread Chuck Tuffli
efore after Tnx! -- Chuck Tuffli Agilent Technologies, Storage and Networking To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

load time module parameters?

2002-11-05 Thread Chuck Tuffli
the drivers grabed information from the "environment" using getenv_int(), but I couldn't seem to get this to work. Thanks for any thoughts. -- Chuck Tuffli To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message