|
From: Han <kee...@gm...> - 2013-08-23 18:36:01
|
Hi, I am using Linux kernel 2.6.27 for building UML kernel. It seems like "arch/x86/kernel/tsc.c" is not built in and the symbol "cpu_khz" is not available. My question is: what's the reason that "tsc.c" not included in UML? Is there any config or simple way(patch?) to include it in UML? I have not tried the same on the newer kernels yet as my target system uses 2.6.27 only so I prefer to stick with 2.6.27 if possible. thanks Han |
|
From: richard -r. w. <ric...@gm...> - 2013-08-24 13:42:27
|
On Fri, Aug 23, 2013 at 8:35 PM, Han <kee...@gm...> wrote: > Hi, > > I am using Linux kernel 2.6.27 for building UML kernel. It seems like > "arch/x86/kernel/tsc.c" is not built in and the symbol "cpu_khz" is not > available. > > My question is: what's the reason that "tsc.c" not included in UML? Is > there any config or simple way(patch?) to include it in UML? Simply because UML has no TSC. > I have not tried the same on the newer kernels yet as my target system uses > 2.6.27 only so I prefer to stick with 2.6.27 if possible. > > thanks > Han > > > ------------------------------------------------------------------------------ > Introducing Performance Central, a new site from SourceForge and > AppDynamics. Performance Central is your source for news, insights, > analysis and resources for efficient Application Performance Management. > Visit us today! > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk > _______________________________________________ > User-mode-linux-user mailing list > Use...@li... > https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user > -- Thanks, //richard |
|
From: Han <kee...@gm...> - 2013-08-27 17:51:59
|
On Sat, Aug 24, 2013 at 6:42 AM, richard -rw- weinberger < ric...@gm...> wrote: > On Fri, Aug 23, 2013 at 8:35 PM, Han <kee...@gm...> wrote: > > Hi, > > > > I am using Linux kernel 2.6.27 for building UML kernel. It seems like > > "arch/x86/kernel/tsc.c" is not built in and the symbol "cpu_khz" is not > > available. > > > > My question is: what's the reason that "tsc.c" not included in UML? Is > > there any config or simple way(patch?) to include it in UML? > > Simply because UML has no TSC. > [Han] I don't really understand why UML has no TSC. As I know, TSC is accessible from user space process (on x86 at least) and I don't see any obvious reason why UML does not support TSC. I might missed something. I am trying to add TSC into UML kernel (2.6.27) for an experiment. Is that a practical thing to do at all? thanks Han > > I have not tried the same on the newer kernels yet as my target system > uses > > 2.6.27 only so I prefer to stick with 2.6.27 if possible. > > > > thanks > > Han > > > > > > > ------------------------------------------------------------------------------ > > Introducing Performance Central, a new site from SourceForge and > > AppDynamics. Performance Central is your source for news, insights, > > analysis and resources for efficient Application Performance Management. > > Visit us today! > > > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk > > _______________________________________________ > > User-mode-linux-user mailing list > > Use...@li... > > https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user > > > > > > -- > Thanks, > //richard > |
|
From: Richard W. <ri...@no...> - 2013-08-27 20:32:14
|
Hi! Am 27.08.2013 19:51, schrieb Han: > > On Sat, Aug 24, 2013 at 6:42 AM, richard -rw- weinberger <ric...@gm... <mailto:ric...@gm...>> wrote: > > On Fri, Aug 23, 2013 at 8:35 PM, Han <kee...@gm... <mailto:kee...@gm...>> wrote: > > Hi, > > > > I am using Linux kernel 2.6.27 for building UML kernel. It seems like > > "arch/x86/kernel/tsc.c" is not built in and the symbol "cpu_khz" is not > > available. > > > > My question is: what's the reason that "tsc.c" not included in UML? Is > > there any config or simple way(patch?) to include it in UML? > > Simply because UML has no TSC. > > > > [Han] I don't really understand why UML has no TSC. As I know, TSC is accessible from user space process (on x86 at least) and I don't see any obvious reason why UML does not > support TSC. I might missed something. What exactly is the problem you are trying to solve? > I am trying to add TSC into UML kernel (2.6.27) for an experiment. Is that a practical thing to do at all? What exactly do you want to add? TSC as a clocksource to UML..? Thanks, //richard |
|
From: Han <kee...@gm...> - 2013-08-27 21:28:58
|
On Tue, Aug 27, 2013 at 1:31 PM, Richard Weinberger <ri...@no...> wrote: > Hi! > > Am 27.08.2013 19:51, schrieb Han: > > > > On Sat, Aug 24, 2013 at 6:42 AM, richard -rw- weinberger < > ric...@gm... <mailto:ric...@gm...>> wrote: > > > > On Fri, Aug 23, 2013 at 8:35 PM, Han <kee...@gm... <mailto: > kee...@gm...>> wrote: > > > Hi, > > > > > > I am using Linux kernel 2.6.27 for building UML kernel. It seems > like > > > "arch/x86/kernel/tsc.c" is not built in and the symbol "cpu_khz" > is not > > > available. > > > > > > My question is: what's the reason that "tsc.c" not included in > UML? Is > > > there any config or simple way(patch?) to include it in UML? > > > > Simply because UML has no TSC. > > > > > > > > [Han] I don't really understand why UML has no TSC. As I know, TSC > is accessible from user space process (on x86 at least) and I don't see any > obvious reason why UML does not > > support TSC. I might missed something. > > What exactly is the problem you are trying to solve? > > > I am trying to add TSC into UML kernel (2.6.27) for an experiment. Is > that a practical thing to do at all? > > What exactly do you want to add? TSC as a clocksource to UML..? > my immediate need is to compile and run an application that uses "cpu_khz" (which is part of tsc.c). I cannot modify the source code of the application as I am not the owner. thanks. Han > > Thanks, > //richard > > |
|
From: Han <kee...@gm...> - 2013-08-27 21:30:33
|
On Tue, Aug 27, 2013 at 2:28 PM, Han <kee...@gm...> wrote: > > > > On Tue, Aug 27, 2013 at 1:31 PM, Richard Weinberger <ri...@no...>wrote: > >> Hi! >> >> Am 27.08.2013 19:51, schrieb Han: >> > >> > On Sat, Aug 24, 2013 at 6:42 AM, richard -rw- weinberger < >> ric...@gm... <mailto:ric...@gm...>> >> wrote: >> > >> > On Fri, Aug 23, 2013 at 8:35 PM, Han <kee...@gm... <mailto: >> kee...@gm...>> wrote: >> > > Hi, >> > > >> > > I am using Linux kernel 2.6.27 for building UML kernel. It seems >> like >> > > "arch/x86/kernel/tsc.c" is not built in and the symbol "cpu_khz" >> is not >> > > available. >> > > >> > > My question is: what's the reason that "tsc.c" not included in >> UML? Is >> > > there any config or simple way(patch?) to include it in UML? >> > >> > Simply because UML has no TSC. >> > >> > >> > >> > [Han] I don't really understand why UML has no TSC. As I know, TSC >> is accessible from user space process (on x86 at least) and I don't see any >> obvious reason why UML does not >> > support TSC. I might missed something. >> >> What exactly is the problem you are trying to solve? >> >> > I am trying to add TSC into UML kernel (2.6.27) for an experiment. >> Is that a practical thing to do at all? >> >> What exactly do you want to add? TSC as a clocksource to UML..? >> > > my immediate need is to compile and run an application that uses "cpu_khz" > (which is part of tsc.c). I cannot modify the source code of the > application as I am not the owner. > > [Han] sorry, when I say "application", I really meant Kernel Module. (klm). thanks. Han thanks. > Han > >> >> Thanks, >> //richard >> >> > |
|
From: Richard W. <ri...@no...> - 2013-08-28 06:23:36
|
Am 27.08.2013 23:30, schrieb Han: > > > > On Tue, Aug 27, 2013 at 2:28 PM, Han <kee...@gm... <mailto:kee...@gm...>> wrote: > > > > > On Tue, Aug 27, 2013 at 1:31 PM, Richard Weinberger <ri...@no... <mailto:ri...@no...>> wrote: > > Hi! > > Am 27.08.2013 19 <tel:27.08.2013%2019>:51, schrieb Han: > > > > On Sat, Aug 24, 2013 at 6:42 AM, richard -rw- weinberger <ric...@gm... <mailto:ric...@gm...> <mailto:ric...@gm... > <mailto:ric...@gm...>>> wrote: > > > > On Fri, Aug 23, 2013 at 8:35 PM, Han <kee...@gm... <mailto:kee...@gm...> <mailto:kee...@gm... <mailto:kee...@gm...>>> wrote: > > > Hi, > > > > > > I am using Linux kernel 2.6.27 for building UML kernel. It seems like > > > "arch/x86/kernel/tsc.c" is not built in and the symbol "cpu_khz" is not > > > available. > > > > > > My question is: what's the reason that "tsc.c" not included in UML? Is > > > there any config or simple way(patch?) to include it in UML? > > > > Simply because UML has no TSC. > > > > > > > > [Han] I don't really understand why UML has no TSC. As I know, TSC is accessible from user space process (on x86 at least) and I don't see any obvious reason why UML > does not > > support TSC. I might missed something. > > What exactly is the problem you are trying to solve? > > > I am trying to add TSC into UML kernel (2.6.27) for an experiment. Is that a practical thing to do at all? > > What exactly do you want to add? TSC as a clocksource to UML..? > > > my immediate need is to compile and run an application that uses "cpu_khz" (which is part of tsc.c). I cannot modify the source code of the application as I am not the owner. > > [Han] sorry, when I say "application", I really meant Kernel Module. (klm). I really cannot help you on closed sources Kernel modules. You are on your own. But you can look how arch/x86 computes cpu_khz. If you find a sane way to make it available on UML, fine. :) Thanks, //richard |