Re: Detach USB Device Driver and Attach it to ugen driver at runtime

2011-09-06 Thread Hans Petter Selasky
On Tuesday 06 September 2011 03:53:55 Daniel O'Connor wrote: > On 05/09/2011, at 23:10, Daniel Grech wrote: > > Hi, I'm using libusb to gain access to raw USB Data from userspace. My > > problem is that this library only works with devices which are treated as > > generic devices ("handled by the u

Re: Detach USB Device Driver and Attach it to ugen driver at runtime

2011-09-05 Thread Daniel O'Connor
On 05/09/2011, at 23:10, Daniel Grech wrote: > Hi, I'm using libusb to gain access to raw USB Data from userspace. My > problem is that this library only works with devices which are treated as > generic devices ("handled by the ugen driver"). I need a mechanism that will > allow me to detach any

Re: Detach USB Device Driver and Attach it to ugen driver at runtime

2011-09-05 Thread Hans Petter Selasky
On Monday 05 September 2011 15:40:44 Daniel Grech wrote: > Hi, I'm using libusb to gain access to raw USB Data from userspace. My > problem is that this library only works with devices which are treated as > generic devices ("handled by the ugen driver"). I need a mechanism that > will allow me to

Detach USB Device Driver and Attach it to ugen driver at runtime

2011-09-05 Thread Daniel Grech
Hi, I'm using libusb to gain access to raw USB Data from userspace. My problem is that this library only works with devices which are treated as generic devices ("handled by the ugen driver"). I need a mechanism that will allow me to detach any device specific drivers that are attached to a device

Re: threads runtime value is incorrect (tc_cpu_ticks() problem)

2011-06-22 Thread Svatopluk Kraus
On Wed, Jun 22, 2011 at 1:40 PM, Uffe Jakobsen wrote: > > > On 2011-06-22 12:33, Svatopluk Kraus wrote: >> >> Hi, >> >>   I've tested FreeBSD-current from June 16 2011 on x86 (AMD Elan >> SC400). I found out that a sum of runtimes of all threads is about 120 >> minutes after 180 minutes of system

Re: threads runtime value is incorrect (tc_cpu_ticks() problem)

2011-06-22 Thread Uffe Jakobsen
On 2011-06-22 12:33, Svatopluk Kraus wrote: Hi, I've tested FreeBSD-current from June 16 2011 on x86 (AMD Elan SC400). I found out that a sum of runtimes of all threads is about 120 minutes after 180 minutes of system uptime and the difference is getting worse with time. The problem is in t

threads runtime value is incorrect (tc_cpu_ticks() problem)

2011-06-22 Thread Svatopluk Kraus
Hi, I've tested FreeBSD-current from June 16 2011 on x86 (AMD Elan SC400). I found out that a sum of runtimes of all threads is about 120 minutes after 180 minutes of system uptime and the difference is getting worse with time. The problem is in tc_cpu_ticks() implementation which takes into aco

Re: Runtime check for PAE option on BSD 6+ i386

2011-05-04 Thread Philip Soeberg
, even this isn't really accurate as some folks may choose to enable PAE even with< 4GB to get PG_NX functionality. afaik there's a sysctl method of checking this per BSD7 (or is it 8?), but what about BSD6? Any hints on how I can runtime detect the above? Definitely a kern.feature

Re: Runtime check for PAE option on BSD 6+ i386

2011-05-03 Thread John Baldwin
} > > > <<< > > > > Hmmm, even this isn't really accurate as some folks may choose to enable PAE > > even with < 4GB to get PG_NX functionality. > > > > > afaik there's a sysctl method of checking this per BSD7 (or is it 8?), > &

Re: Runtime check for PAE option on BSD 6+ i386

2011-05-03 Thread Kostik Belousov
nel for non-PAE or switch to amd64 > > kernel.\n"); > >return EFAULT; > > } > >} > > <<< > > Hmmm, even this isn't really accurate as some folks may choose to enable PAE > even with < 4GB to get PG_NX functionality. > >

Re: Runtime check for PAE option on BSD 6+ i386

2011-05-03 Thread John Baldwin
't really accurate as some folks may choose to enable PAE even with < 4GB to get PG_NX functionality. > afaik there's a sysctl method of checking this per BSD7 (or is it 8?), > but what about BSD6? Any hints on how I can runtime detect the above? Definitely a kern.featur

Runtime check for PAE option on BSD 6+ i386

2011-05-03 Thread Philip Soeberg
econfigure your kernel for non-PAE or switch to amd64 kernel.\n"); return EFAULT; } } <<< afaik there's a sysctl method of checking this per BSD7 (or is it 8?), but what about BSD6? Any hints on how I can runtime detect the above? Thanx, Phil __

Re: Runtime loading

2004-09-13 Thread Dag-Erling Smørgrav
Maxime Henrion <[EMAIL PROTECTED]> writes: > db wrote: > > In my C++ program I need to load some files/classes at runtime, so > > that users can add "plugins" without recompilling my program. What > > functions should I use? I'm using FreeBSD 5.3-beta2 btw

Re: Runtime loading

2004-09-09 Thread db
bout portability when writing the code, so that linux/solaris users can use lockdown with minor modifications. It is the keywords read from the configuration file I want to load at runtime, so that users can write their own keywords and make it easier for me to extend

Re: Runtime loading

2004-09-09 Thread Robert Dormer
glib provides a facility for this, and should be even more platform portable On Thu, 9 Sep 2004 16:42:34 +0200, db <[EMAIL PROTECTED]> wrote: > On Thursday 09 September 2004 16:36, you wrote: > > > > In my C++ program I need to load some files/classes at runtime, so tha

Re: Runtime loading

2004-09-09 Thread db
On Thursday 09 September 2004 16:36, you wrote: > > In my C++ program I need to load some files/classes at runtime, so that > > users can add "plugins" without recompilling my program. What functions > > should I use? I'm using FreeBSD 5.3-beta2 btw. > > I&#

Re: Runtime loading

2004-09-09 Thread Maxime Henrion
db wrote: > Hi all > > In my C++ program I need to load some files/classes at runtime, so that users > can add "plugins" without recompilling my program. What functions should I > use? I'm using FreeBSD 5.3-beta2 btw. I'm not sure about C++, though I guess

Runtime loading

2004-09-09 Thread db
Hi all In my C++ program I need to load some files/classes at runtime, so that users can add "plugins" without recompilling my program. What functions should I use? I'm using FreeBSD 5.3-beta2 btw. br db ___ [EMAIL PROTECTED] ma

Re: Extracting symbol info out of processes at runtime

2004-04-30 Thread Eric Jacobs
On Thu, 29 Apr 2004 14:51:47 +0200 "P. de Boer" <[EMAIL PROTECTED]> wrote: > > On Thu, 2004-04-29 at 14:30, Dag-Erling Smørgrav wrote: > > "P. de Boer" <[EMAIL PROTECTED]> writes: > > > For a little private project I'm working at, I need to find the address > > > of a function which is inside a s

Re: Extracting symbol info out of processes at runtime

2004-04-29 Thread Eric Jacobs
On Thu, 29 Apr 2004 14:51:47 +0200 "P. de Boer" <[EMAIL PROTECTED]> wrote: > > On Thu, 2004-04-29 at 14:30, Dag-Erling Smørgrav wrote: > > "P. de Boer" <[EMAIL PROTECTED]> writes: > > > For a little private project I'm working at, I need to find the address > > > of a function which is inside a s

Re: Extracting symbol info out of processes at runtime

2004-04-29 Thread P. de Boer
On Thu, 2004-04-29 at 18:59, John-Mark Gurney wrote: > > For a little private project I'm working at, I need to find the address > > of a function which is inside a shared library of a running process, OR > > the base address the library is running at (in that case, I can simply > > do a base_addr

Re: Extracting symbol info out of processes at runtime

2004-04-29 Thread John-Mark Gurney
P. de Boer wrote this message on Wed, Apr 28, 2004 at 17:59 +0200: > For a little private project I'm working at, I need to find the address > of a function which is inside a shared library of a running process, OR > the base address the library is running at (in that case, I can simply > do a base

Re: Extracting symbol info out of processes at runtime

2004-04-29 Thread P. de Boer
On Thu, 2004-04-29 at 14:30, Dag-Erling Smørgrav wrote: > "P. de Boer" <[EMAIL PROTECTED]> writes: > > For a little private project I'm working at, I need to find the address > > of a function which is inside a shared library of a running process, OR > > the base address the library is running at >

Re: Extracting symbol info out of processes at runtime

2004-04-29 Thread Dag-Erling Smørgrav
"P. de Boer" <[EMAIL PROTECTED]> writes: > For a little private project I'm working at, I need to find the address > of a function which is inside a shared library of a running process, OR > the base address the library is running at man dlinfo DES -- Dag-Erling Smørgrav - [EMAIL PROTECTED]

Extracting symbol info out of processes at runtime

2004-04-29 Thread P. de Boer
pparantly the section header table isn't stored there at runtime, despite what the field e_shoff may say. Is there anyone here who might shed a light on this? Where has it gone? I started this e-mail stating I wanted to find the address of a symbol or the base address of a shared library.

Re: Determining a program's shared libraries at runtime

2004-03-31 Thread Mike Heffner
oing exactly what you want, take a look at it's | sources. | Hello, thanks for the response. The problem I found with ldd was it would only give me the shared objects linked in at runtime and I needed the list of dlopen()'d objects as well. On Linux I was able to grab a reference to the

Re: Determining a program's shared libraries at runtime

2004-03-31 Thread Igor Pokrovsky
On Wed, Mar 31, 2004 at 02:55:47PM -0500, Mike Heffner wrote: > > Is there a method in FreeBSD for a program to retrieve the current list of > dynamic shared libraries it is linked against or has dlopen()'d? Looks like ldd is doing exactly what you want, take a look at it's sources. -ip -- It'

Re: Determining a program's shared libraries at runtime

2004-03-31 Thread Bruce M Simpson
On Wed, Mar 31, 2004 at 02:55:47PM -0500, Mike Heffner wrote: > Is there a method in FreeBSD for a program to retrieve the current list of > dynamic shared libraries it is linked against or has dlopen()'d? /proc//map should give you what you need, but it needs to be read atomically, i.e. you can't

Determining a program's shared libraries at runtime

2004-03-31 Thread Mike Heffner
Is there a method in FreeBSD for a program to retrieve the current list of dynamic shared libraries it is linked against or has dlopen()'d? Thanks, Mike -- Mike Heffner <[EMAIL PROTECTED]> 2160 Torgersen Hall, Grad. Lab ___ [EMAIL PROTECTED

Re: runtime

2002-08-16 Thread Antoine Beaupre
e > program to do find this out about itself); > > 2) Have a thread wait for a specified amount of computer time (not > actual time so nanosleep won't work). > > I looked at the man pages, but all I could find was runtime which seems > only to be accessible from the kerne

Re: runtime

2002-08-16 Thread Ryan Sommers
On Fri, 2002-08-16 at 10:21, Stephen Montgomery-Smith wrote: > How do I do the following: > > 1) Find out how much time a program has currently consumed in computer > time (something like what the time command outputs - but I want the > program to do find this out about itself); 'man 5 procfs

Re: runtime

2002-08-16 Thread Stephen Montgomery-Smith
y consumed in computer >>time (something like what the time command outputs - but I want the >>program to do find this out about itself); >> >>2) Have a thread wait for a specified amount of computer time (not >>actual time so nanosleep won't work). >> >>I

Re: runtime

2002-08-16 Thread Sergey Lyubka
; program to do find this out about itself); > > 2) Have a thread wait for a specified amount of computer time (not > actual time so nanosleep won't work). > > I looked at the man pages, but all I could find was runtime which seems > only to be accessible from the kernel. --

runtime

2002-08-16 Thread Stephen Montgomery-Smith
nanosleep won't work). I looked at the man pages, but all I could find was runtime which seems only to be accessible from the kernel. -- Stephen Montgomery-Smith [EMAIL PROTECTED] http://www.math.missouri.edu/~stephen To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscri

Re: Access to symbol table(including dynamics) at runtime

2001-06-08 Thread Seth Kingsley
On Fri, Jun 08, 2001 at 12:17:41PM -0500, Kevin Day wrote: > I looked at this.. I see how I can dlopen my own executable, and dlsym() > will let me get addresses from symbol names, but how do I do the reverse? I > have an address and need to get the symbol name from it, not vice versa. dladdr(3)

Re: Access to symbol table(including dynamics) at runtime

2001-06-08 Thread Alfred Perlstein
* Kevin Day <[EMAIL PROTECTED]> [010608 13:21] wrote: > > > > In the last episode (Jun 08), Kevin Day said: > > > Is there a simple way that I can lookup a symbol name(by address) > > > during runtime? > > > > > > I know I can exec nm, look

Re: Access to symbol table(including dynamics) at runtime

2001-06-08 Thread Kevin Day
> > In the last episode (Jun 08), Kevin Day said: > > Is there a simple way that I can lookup a symbol name(by address) > > during runtime? > > > > I know I can exec nm, look up for the address I need, and get local > > symbols, but it would be rea

Re: Access to symbol table(including dynamics) at runtime

2001-06-08 Thread Kevin Day
> > Kevin Day wrote: > > > > Is there a simple way that I can lookup a symbol name(by address) during > > runtime? > > man dlopen. > I looked at this.. I see how I can dlopen my own executable, and dlsym() will let me get addresses from symbol names, but h

Re: Access to symbol table(including dynamics) at runtime

2001-06-08 Thread Dan Nelson
In the last episode (Jun 08), Kevin Day said: > Is there a simple way that I can lookup a symbol name(by address) > during runtime? > > I know I can exec nm, look up for the address I need, and get local > symbols, but it would be really nice if I could get addresses of > fu

Re: Access to symbol table(including dynamics) at runtime

2001-06-08 Thread Farooq Mela
Kevin Day wrote: > > Is there a simple way that I can lookup a symbol name(by address) during > runtime? man dlopen. -- farooq <[EMAIL PROTECTED]> To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: Access to symbol table(including dynamics) at runtime

2001-06-08 Thread Peter Pentchev
On Fri, Jun 08, 2001 at 12:09:39PM -0500, Kevin Day wrote: > > > Is there a simple way that I can lookup a symbol name(by address) during > runtime? > > I know I can exec nm, look up for the address I need, and get local > symbols, but it would be really nice if I c

Access to symbol table(including dynamics) at runtime

2001-06-08 Thread Kevin Day
Is there a simple way that I can lookup a symbol name(by address) during runtime? I know I can exec nm, look up for the address I need, and get local symbols, but it would be really nice if I could get addresses of functions in dynamic libraries as well. I know I could use ldd to get offsets

Re: Runtime memory footprint

2000-10-31 Thread Matt Dillon
:What determines the runtime memory footprint of a process? I have small :daemons that occupy 25K on disk, don't malloc anything to speak of, but :are 440K to 1024K in memory, according to top and ps. For that matter, :just about nothing in my "ps" display is under 400K.

Re: Runtime memory footprint

2000-10-31 Thread Ruslan Ermilov
On Tue, Oct 31, 2000 at 11:17:22AM -0700, Les Biffle wrote: > What determines the runtime memory footprint of a process? I have small > daemons that occupy 25K on disk, don't malloc anything to speak of, but > are 440K to 1024K in memory, according to top and ps. For that matter

Runtime memory footprint

2000-10-31 Thread Les Biffle
What determines the runtime memory footprint of a process? I have small daemons that occupy 25K on disk, don't malloc anything to speak of, but are 440K to 1024K in memory, according to top and ps. For that matter, just about nothing in my "ps" display is under 400K.

Re: PAM: Undefined symbols at runtime

1999-06-02 Thread Matthew Hunt
On Wed, Jun 02, 1999 at 06:47:16PM +0200, Dag-Erling Smorgrav wrote: > Do you perchance have something like > > INSTALL=install -s > > in your /etc/make.conf? Nope. I ran mergemaster before my experiments, but I checked both my old and new make.conf and there's no setting relevant to INSTALL i

Re: PAM: Undefined symbols at runtime

1999-06-02 Thread Dag-Erling Smorgrav
Matthew Hunt writes: > Confusinger and confusinger. Somehow, perl and login, the two > programs with which I had dynamic linking problems, had been stripped. > I don't know how that happened, since I didn't do it. Using > "make install" from their source directories installed them unstripped, >

Re: PAM: Undefined symbols at runtime

1999-06-02 Thread Matthew Hunt
On Tue, Jun 01, 1999 at 10:23:46PM -0700, John Polstra wrote: > I don't know. Maybe you have something unusual in your > /etc/make.conf file? Confusinger and confusinger. Somehow, perl and login, the two programs with which I had dynamic linking problems, had been stripped. I don't know how tha

Re: PAM: Undefined symbols at runtime

1999-06-01 Thread John Polstra
Matthew Hunt wrote: > If I add "-export-dynamic" to LDADD in usr.bin/login/Makefile, everything > is groovy. > > I've noticed that dynamic linking in Perl also doesn't work for me, > likely for the same reason. I haven't tried rebuilding perl with > "-export-dynamic" yet, though. > > So, the que

Re: PAM: Undefined symbols at runtime

1999-05-31 Thread Matthew Hunt
On Mon, May 31, 1999 at 04:18:19PM -0700, Matthew Hunt wrote: > > It will work. Trust me :-) > > > > /usr/src/contrib/perl5/hints/freebsd.sh: > > I'm not sure I understand. If "-export-dynamic" is supposed to be > there, then why isn't it? If it's not supposed to be there, then why > do I need

Re: PAM: Undefined symbols at runtime

1999-05-31 Thread Matthew Hunt
On Mon, May 31, 1999 at 11:41:13PM +0200, Ollivier Robert wrote: > > I've noticed that dynamic linking in Perl also doesn't work for me, > > likely for the same reason. I haven't tried rebuilding perl with > > "-export-dynamic" yet, though. > > It will work. Trust me :-) > > /usr/src/contrib/pe

Re: PAM: Undefined symbols at runtime

1999-05-31 Thread Ollivier Robert
According to Matthew Hunt: > I've noticed that dynamic linking in Perl also doesn't work for me, > likely for the same reason. I haven't tried rebuilding perl with > "-export-dynamic" yet, though. It will work. Trust me :-) /usr/src/contrib/perl5/hints/freebsd.sh: -=-=- # Original based on info

Re: PAM: Undefined symbols at runtime

1999-05-31 Thread Matthew Hunt
On Sun, May 30, 1999 at 06:11:51PM -0700, John Polstra wrote: > > My problem is that login fails, due to undefined symbols in the PAM > > modules: > > I don't know what's going on with your system, but something is messed > up. Maybe you're trying to mix and match a.out and ELF files. Try > run

Re: PAM: Undefined symbols at runtime

1999-05-30 Thread Matthew Hunt
On Sun, May 30, 1999 at 06:11:51PM -0700, John Polstra wrote: > If you are running 3.1 or later, or -current, you _are_ using PAM. > Login uses it automatically, and it's not something you enable or > disable. If you don't have a valid /etc/pam.conf file then login > issues loud and repeated comp

Re: PAM: Undefined symbols at runtime

1999-05-30 Thread John Polstra
In article <19990529151511.a34...@wopr.caltech.edu>, Matthew Hunt wrote: > I have been running 3.x and 4.0-CURRENT for some time, but have > never bothered using PAM. If you are running 3.1 or later, or -current, you _are_ using PAM. Login uses it automatically, and it's not something you enable

PAM: Undefined symbols at runtime

1999-05-29 Thread Matthew Hunt
I have been running 3.x and 4.0-CURRENT for some time, but have never bothered using PAM. Yesterday, after a build of 4.0-CURRENT of that day, I decided to try enabling PAM by copying /usr/src/pam.conf to /etc. My problem is that login fails, due to undefined symbols in the PAM modules: May 28 2