Linux-Development-Sys Digest #106, Volume #8     Mon, 28 Aug 00 04:13:14 EDT

Contents:
  Re: kernel compiles root device as (3,65); boots for (3,41) (M. Buchenrieder)
  Re: time measurements (Karl Heyes)
  kfree_s? wavelan card in 2.4.0-test7 (Yung-Hsiang Lu)
  Re: kernel compiles root device as (3,65); boots for (3,41) (xavian anderson 
macpherson)
  Re: Programming newbie's question (Victor Wagner)
  Re: kernel compiles root device as (3,65); boots for (3,41) (Alexander Viro)
  adding a module (Susukita Ryutaro)
  Re: time measurements (Nix)
  Re: kernel compiles root device as (3,65); boots for (3,41) (xavian anderson 
macpherson)
  root password ([EMAIL PROTECTED])
  Re: Kernel panic: VFS: (Koch)
  spin locks ("Peter Huang")
  Re: where is "make" in linux (Josef Moellers)
  Any substitution for _msize( ) ([EMAIL PROTECTED])
  Re: Any substitution for _msize( ) (Josef Moellers)

----------------------------------------------------------------------------

Crossposted-To: comp.os.linux.misc
From: [EMAIL PROTECTED] (M. Buchenrieder)
Subject: Re: kernel compiles root device as (3,65); boots for (3,41)
Date: Sun, 27 Aug 2000 11:59:15 GMT

[Note FollowUp-To: header]

xavian anderson macpherson <[EMAIL PROTECTED]> writes:

[...]

>one of the things that i've found out is that suse uses a different file
>directory structure than some of the other distributions, 

AFAIK, the SuSE directory structure is actually much stricter
following the FSSTND than RedHat.

>and for this
>reason, i nolonger recommend it to anyone interested in moving to linux
>from windows.  

Pardon me, but even if SuSE's way of putting things _here_ instead
of _there_ was not conforming to the FSSTND, this would mean
absolutely nothing to anyone moving from Win* to Linux.

>it is basically like moving from an overtly proprietary
>system, to one that is subvertly proprietary.  for this rewason, i am
>fairly certain that i will migrate to the WALNUTCREEK FreeBSD-4.0 powerpak
>come september 1rst.

And this has to do with Linux - what?

>anyway, back to the main subject.  how do i set the root device correctly,

[...]

man rdev
man lilo.conf

Michael
-- 
Michael Buchenrieder * [EMAIL PROTECTED] * http://www.muc.de/~mibu
          Lumber Cartel Unit #456 (TINLC) & Official Netscum
    Note: If you want me to send you email, don't munge your address.

------------------------------

From: Karl Heyes <[EMAIL PROTECTED]>
Subject: Re: time measurements
Date: Mon, 28 Aug 2000 00:37:27 +0000

In article <buTp5.71136$[EMAIL PROTECTED]>, 
"naomi avigdor" <[EMAIL PROTECTED]> wrote:
> hi,
> 
> I would like to measure the time it takes to execute some specific
> functions (which I wrote) in my process. my process runs for some
> time (minutes), and these functions are called many times. out of
> the total run time, I need to know that function A uses 10% of the
> time, function B 2% of the time, etc. etc. the time should include i/o
> time and all system calls. no other user process is running in my
> machine.
> 
> the only solution that I can think of is "gettimeofday" at each entry
> and exit to the various functions and total the delta times over all the
> calls.
> 
> is there a better way?
> 
> thank you,
> naomi avigdor

try compiling with profiling  the -p or -pg.   compiles as normal. do a sample
run and exit the program. this creates a  something.out file which can be used
by programs like gprof.

karl




------------------------------

From: Yung-Hsiang Lu <[EMAIL PROTECTED]>
Subject: kfree_s? wavelan card in 2.4.0-test7
Date: 27 Aug 2000 23:43:49 GMT

Hi,

Does anybody successfully install WaveLAN IEEE 802.11 wireless card in
2.4.0-test7?  I got kernel version 2.4.0-test7 and pcmcia-3.1.19 (the
latest from sunsite.unc.edu/pub/linux/kernel/pcmcia).  In
pcmica/wireless/wvlan_cs.c, it says it supports WaveLAN/IEEE pcmica.
When I load the module, I got "unresolved symbol kfree_s".  I am not
sure how to solve this problem.

Thank you for your help.

-- 
                                                   Sincerely,
                                                   Yung-Hsiang Lu
                                                   [EMAIL PROTECTED]


------------------------------

From: xavian anderson macpherson <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.misc
Subject: Re: kernel compiles root device as (3,65); boots for (3,41)
Date: Mon, 28 Aug 2000 01:29:24 GMT


M. Buchenrieder wrote:
> 
> 
> [Note FollowUp-To: header]
> 
> xavian anderson macpherson <[EMAIL PROTECTED]> writes:
> 
> [...]
> 
> >one of the things that i've found out is that suse uses a different file
> >directory structure than some of the other distributions, 
> 
> AFAIK, the SuSE directory structure is actually much stricter
> following the FSSTND than RedHat.
> 
> >and for this
> >reason, i nolonger recommend it to anyone interested in moving to linux
> >from windows.  
> 
> Pardon me, but even if SuSE's way of putting things _here_ instead
> of _there_ was not conforming to the FSSTND, this would mean
> absolutely nothing to anyone moving from Win* to Linux.
> 
> >it is basically like moving from an overtly proprietary
> >system, to one that is subvertly proprietary.  for this rewason, i am
> >fairly certain that i will migrate to the WALNUTCREEK FreeBSD-4.0
powerpak
> >come september 1rst.
> 
> And this has to do with Linux - what?
> 
> >anyway, back to the main subject.  how do i set the root device
correctly,
> 
> [...]
> 
> man rdev
> man lilo.conf
> 
> Michael
> -- 
> Michael Buchenrieder * [EMAIL PROTECTED] *
http://www.muc.de/~mibu
>           Lumber Cartel Unit #456 (TINLC) & Official Netscum
>     Note: If you want me to send you email, don't munge your address.
==========================================================================
I HAD ALREADY READ THE MAN RDEV.  IT DID NOT TELL ME HOW TO SET THE DEVICE
FROM 3,41 TO 3,65 OR REVERSE.  if you know the exact code to fix this, give
it to me.  i want to see what is currently loaded at root-device 3,41.  i
want to verify that it is my vmlinuz.suse, as it does not produce this
error when i start the system with it.  can two different kernels occupy
the same root-device?

--
Posted via CNET Help.com
http://www.help.com/

------------------------------

From: [EMAIL PROTECTED] (Victor Wagner)
Crossposted-To: comp.os.linux.development.apps
Subject: Re: Programming newbie's question
Date: 27 Aug 2000 03:19:55 +0400

Fred Thirton <[EMAIL PROTECTED]> wrote:


: Andreas Rottmann wrote:

:> Find a good book on C under Linux/Unix and write some little programs
:> yourself. That will get you bootstrapped.

: As someone who is just getting started with Linux and Linux programming, I
: must ask, what "C under Linux/Unix" books are good?

Start with classical Kernigan and Ritchie's "C programming language"
It is written about C in Unix environment.

Classical book by Kernigan and Pike  "UNIX programming environment"
is also good one.


: ----
: [EMAIL PROTECTED]: because you won't mail me.  Spammers will.


-- 
� ������������ ������ ����� ������.
                                --- �.�. ���

------------------------------

From: [EMAIL PROTECTED] (Alexander Viro)
Crossposted-To: comp.os.linux.misc
Subject: Re: kernel compiles root device as (3,65); boots for (3,41)
Date: 27 Aug 2000 22:27:38 -0400

In article <[EMAIL PROTECTED]>,
xavian anderson macpherson  <[EMAIL PROTECTED]> wrote:

>I HAD ALREADY READ THE MAN RDEV.  IT DID NOT TELL ME HOW TO SET THE DEVICE

Fix your CapsLock, will you?

>FROM 3,41 TO 3,65 OR REVERSE.  if you know the exact code to fix this, give

0x41 == 65.

>it to me.  i want to see what is currently loaded at root-device 3,41.  i
>want to verify that it is my vmlinuz.suse, as it does not produce this
>error when i start the system with it.  can two different kernels occupy
>the same root-device?

They don't occupy it. Kernel image contains a variable that holds a device
number. When you boot the kernel it looks into that variable and uses its
value to decide where to get the root filesystem. It couldn't care less
whether some files happen to contain other kernel images or not, let alone
what value that variable has in said files.

Same goes for FreeBSD, BTW. Kernel may be loaded from the place that has
nothing with root filesystem - from the network, for one thing.

If you want to check which version of the kernel is currently running -
man uname.

PS: there is some odd pleasure in seeing bloody powerlusers with
attitude going to became an embarrasment to FreeBSD folks. I realize
that it's not nice, but they had it coming. After quite a few
years of making fun of the fact that your ilk prefered to pester
us with your, erm, attention... Well, one can tempt the fate only that
many times.

-- 
"You're one of those condescending Unix computer users!"
"Here's a nickel, kid.  Get yourself a better computer" - Dilbert.

------------------------------

From: [EMAIL PROTECTED] (Susukita Ryutaro)
Subject: adding a module
Date: 28 Aug 2000 02:51:27 GMT

What is the standard way of adding a module to kernel 2.2.x?
I copied a self-made character device driver (mydriver.o) to
/lib/modules/2.2.5-15/misc. But when I tried to open /dev/mydriver0,
"modprobe: can't locate module char-major-254". The 254 is a
dynamically allocated major number. If I add
alias char-major-254 mydriver
to /etc/conf.modules, I can open /dev/mydriver0. But 254 is variable.

Computational Science Division
The Institute of Physics and Chemistry (RIKEN)
SUSUKITA Ryutaro







------------------------------

From: Nix <$}xinix{[email protected]>
Subject: Re: time measurements
Date: 28 Aug 2000 01:12:26 +0100

"naomi avigdor" <[EMAIL PROTECTED]> writes:

> hi,
> 
> I would like to measure the time it takes to execute some specific
> functions (which I wrote) in my process. my process runs for some
> time (minutes), and these functions are called many times. out of
> the total run time, I need to know that function A uses 10% of the
> time, function B 2% of the time, etc. etc. the time should include i/o
> time and all system calls. no other user process is running in my
> machine.
> 
> the only solution that I can think of is "gettimeofday" at each entry
> and exit to the various functions and total the delta times over all the
> calls.
> 
> is there a better way?

Look at `gprof' and the -pg compilation option.

While you're looking at that, you might find `gcov' (documented in the
GCC info pages) and the `-fprofile-arcs -ftest-coverage' switch pair to
be useful. (It's certainly proving useful in the GCC project itself ;) )

-- 
`OS's and GUI's come and go, only Emacs has lasting power.' --- Per Abrahamsen

------------------------------

From: xavian anderson macpherson <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.misc
Subject: Re: kernel compiles root device as (3,65); boots for (3,41)
Date: Mon, 28 Aug 2000 03:29:16 GMT

i didn't make up the fact about suse using a different filesystem location
method.  THAT WAS ACTUALLY TOLD TO ME BY A SUSE SUPPORT PERSON, AS BEING
(WHAT I CONSIDERED AN ILLEGITMATE) reason for not allowing you to use yast
for installing rpm's from other ftp sites.  the fact is, that it shouldn't
make any difference if your using the same filesystem.  so if you don't
like my remarks, speak to suse.

the fact is that they use different case/spellings for packages that
everyone else seems to have agreed on.  i have more than once installed a
package which only differed in case or spelling (sometimes abbreviated)
from the existing package on my system.  linux-mandrake, redhat, kondura,
etc. all seem to use the same spelling and case for their packages; suse
does not.  

(if suse's packaging were no different than anyone else's, you would see
their recent packages posted right along with everyone else's.  they're
not.  only the old ones!  i often find redhat, linux-mandrake and kondura's
all on the same page.)

this results in software not being easily or properly upgraded when you
want to change from an i386 to i586 package.  there is absolutely no
justification for this.  if the packages produced by suse were not
proprietary, why else would they make it so difficult to change their
system.  so don't talk to me like i don't know what the hell i'm talking
about!  i am really tired of this crap.  if two things are identical, they
either are or they're not.  in suse's case, they're definately not!

i installed some packages last wednesday.  i noticed some buggy results. 
so i turned off my computer and went to bed.  when i got up the next day
and rebooted my system, everything was gobly-gook.  i tried getting a man
page for something (rpm) and it looked like it was in korean or taiwanese. 
it was some kind of graphical alphabet, not like anything you would expect
to find.  when i got into gnome, everything was in russian.  only a few of
the deeper menu items were in english.  fortunately i had contacted a
packager for linux-mandrake the day before, and we traded phone numbers. 
if i had not have done this, i would have never figured out how to fix what
had happened, because i couldn't get my ethernet card to be registered by
the system.  this meant that i couldn't get any help from the internet. 
this guy spent 4 hours and 47 minutes on the phone with me on friday
night.  we finanly got most the system back to where i could work with it. 
but many of the things that he thought should be there, weren't.  they were
either in different locations, or didn't exist at all.  so what were you
saying about my angst with suse?

i recently reinstalled the suse base.rpm, which is the equivalent to the
standard basesystem.rpm.  in the process of reinstalling this base.rpm,
yast removed the package grep which i had installed to satisfy the
dependecies of some other non-suse packages.  so you or anyone else can
tell me what is intellectually different from MICROSOFTS blatantly
proprietary system, and one that is subvertly so?  i'd like to hear you wax
on about the virtues of that kind of thinking!

now the reason why i commented on FreeBSD, is because there is only one
FreeBSD.  sure, you can comment about the existance of OpenBSD and
anyothers that might exist. i don't know if the dissimilarities between
those systems are as great as with linux.  secondly, FreeBSD will run linux
applications.  then there is the issue of price.  i recently found FreeBSD
on the web for $49.99.  that's the same price i paid for my suse system. 
suse came with 6 CD's and a half-assed poorly composed manual that's only
517 pages with the index.  the FreeBSD package comes with 10 CD's and an
800 page manual.  i made the mistake of buying suse instead of DEBIAN,
simply due to what i (woefully) percieved as a better $ value.  i mean i
couldn't understand why i should pay $50 for 1 book and 1 CD, when i could
get what i thought was so much more.  man, was i ever wrong! so where the
beef?

even linux experts, including the one who helped me, seem to have nothing
but admiration for FreeBSD.  so why should i be any different; especially
when i see the complexities/irregularities of dealing with what i have now?

--
Posted via CNET Help.com
http://www.help.com/

------------------------------

From: [EMAIL PROTECTED]
Subject: root password
Date: Mon, 28 Aug 2000 04:31:44 GMT

Hi all !!
I am Bharat from India. I am new to this so please bare with me ok.
I have one question :
What i can do to login as a root if i fergot my root password??
Thanks in advance.
Bharat Parekh.


Sent via Deja.com http://www.deja.com/
Before you buy.

------------------------------

From: [EMAIL PROTECTED] (Koch)
Subject: Re: Kernel panic: VFS:
Date: Mon, 28 Aug 2000 04:27:14 GMT
Reply-To: [EMAIL PROTECTED]

Thank you for your advice.

>I'm guessing that is trying to mount /dev/sda2 on /
>
>use rdev on the [b]zImage or pass root= option when
>booting.  There isn't any config opton for this, the build scripts
>take you current root partition as the one intended unless you've
>editing the ROOT_DEV macro in the Makefile.

All I have done is to perform 'make menuconfig', but without
having understood meanings of all items. 

>I usually use make menuconfig which has access to the help texts, but not
>all options are documented.

And it's too brief to understand for newbie lime me.

Thank you.
koch


------------------------------

From: "Peter Huang" <[EMAIL PROTECTED]>
Subject: spin locks
Date: Sun, 27 Aug 2000 22:28:03 -0700

Hi all

I'm new at Linux programming and I was suggested by some helpful people in
to use spin locks for things I'm doing. I have Rubini's book on Linux
programming but it doesn't cover spin locks since it is a new subject.  Can
any one tell me where I can get comprehensive information on spin locks or
can give me some ideas over the net on how to use spin locks.. I would
appreciate it.

Peter



------------------------------

From: Josef Moellers <[EMAIL PROTECTED]>
Subject: Re: where is "make" in linux
Date: Mon, 28 Aug 2000 08:06:48 +0200

Christos Karayiannis wrote:
> =

> You should change to /udr/src/linux first.
> =

> <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]...
> > When I try "make menuconfig", I got error message "hash: make: comman=
d not
> > found". I also use `find / -name "make"' to search for it, but it ret=
urns
> > nothing. Could someone please tell me where I can get the "make" comm=
and?
> > Thanks a lot.
> > -jesse

Changing to /usr/src/linux won't help a bit when "make" is nowhere to be
found!

Jesse: you need to install the "make" rpm. This will add the
/usr/bin/make command and the associated info and man pages. Also, once
your system has been up for a good night's sleep (or once you've run the
updatedb command), you can use the "locate" command to find a program:
"locate make", possibly filtered to find only those that have "bin" in
their path: "locate make | fgrep /bin/". It's much faster than "find"
and also causes less impact on in-core inode tables, buffers and such.

Hope this helps,
-- =

Josef M=F6llers (Pinguinpfleger bei FSC)

------------------------------

From: [EMAIL PROTECTED]
Subject: Any substitution for _msize( )
Date: Mon, 28 Aug 2000 06:46:18 GMT

Hi Friends,
          I am new to Linux 'C' Programming. Well can anyone Please
tell me how can we find the size of a block malloced in my program. In
NT environment I am using _msize() to find the size. I searched thru
the system calls in Linux but could not find any such function.

Any help would be appreciated. I am sorry if I am posting this question
at wrong forum.

Thanks


Sent via Deja.com http://www.deja.com/
Before you buy.

------------------------------

From: Josef Moellers <[EMAIL PROTECTED]>
Subject: Re: Any substitution for _msize( )
Date: Mon, 28 Aug 2000 09:12:24 +0200

[EMAIL PROTECTED] wrote:
> =

> Hi Friends,
>           I am new to Linux 'C' Programming. Well can anyone Please
> tell me how can we find the size of a block malloced in my program. In
> NT environment I am using _msize() to find the size. I searched thru
> the system calls in Linux but could not find any such function.
> =

> Any help would be appreciated. I am sorry if I am posting this question=

> at wrong forum.

AFAIK, such a function is not defined in the *ix environment. You may be
able to somehow use undocumented features (e.g. "the size is in the long
just preceding the malloc-ed block"), but this is generally a bad idea,
because you definitely loose portability there. The exact algorithms and
data structures to manage dynamically allocated memory buffers are
encapsulated such that improvements in the algorithms will not affect
any existing programs.

Thus said: since you malloc'ed the space in your program, why not
provide some means to transfer this information to the place where you
need it, e.g. by adding a field "size" to the structure inside the
malloc-ed space? The *nix philosophy is "if it can be done without, do
it without" and what you need _can_ be done without an _msize()
function.

After all: if NT needs it doesn't mean everyone needs it.
-- =

Josef M=F6llers (Pinguinpfleger bei FSC)

------------------------------


** FOR YOUR REFERENCE **

The service address, to which questions about the list itself and requests
to be added to or deleted from it should be directed, is:

    Internet: [EMAIL PROTECTED]

You can send mail to the entire list (and comp.os.linux.development.system) via:

    Internet: [EMAIL PROTECTED]

Linux may be obtained via one of these FTP sites:
    ftp.funet.fi                                pub/Linux
    tsx-11.mit.edu                              pub/linux
    sunsite.unc.edu                             pub/Linux

End of Linux-Development-System Digest
******************************

Reply via email to