Re: Patch procfs cpuinfo

2011-11-27 Thread Samuel Thibault
Bouju Alain, le Sun 27 Nov 2011 23:06:07 +0100, a écrit : > For Intel with HyperThreading 8 I think -> 16 (virtual core). > Linux probably choose 8 to obtain better result. Nope, it's 4 cores, and with hyperthreading, 8 threads. > With Qemu I obtain 1 processor -smp can take a various number of

Re: Patch procfs cpuinfo

2011-11-27 Thread Bouju Alain
Hello, For Intel with HyperThreading 8 I think -> 16 (virtual core). Linux probably choose 8 to obtain better result. This is not very clear for me. http://www.richweb.com/cpu_info I have apply your change. With Qemu I obtain 1 processor (I keep the virtual number of core but it's easy to chan

Re: Patch procfs cpuinfo

2011-11-19 Thread Samuel Thibault
Hello, Bouju Alain, le Sun 13 Nov 2011 12:44:04 +0100, a écrit : > /* gcc cpuinfo.c -o cpuinfo `pkg-config --cflags glib-2.0` -lm */ > #include Using glib for /proc is a bit out of question :) 16-bit and 32-bit types are available as uint16_t & uint32_t in stdint.h. The coding style has to fol

Re: Patch procfs cpuinfo

2011-11-13 Thread Bouju Alain
Hello, with cpuinfo.c and cpuinfo.h Alain ... /* Hurd /proc filesystem, implementation of process directories. Copyright (C) 2010 Free Software Foundation, Inc. This file is part of the GNU Hurd. The GNU Hurd is free software; you can redistribute it and/or modify it under the term

Re: Patch procfs cpuinfo

2011-11-13 Thread Samuel Thibault
Bouju Alain, le Sun 13 Nov 2011 01:19:12 +0100, a écrit : > A patch for procfs /proc/cpuinfo Please also post your cpuinfo.c file. Samuel

Patch procfs cpuinfo

2011-11-13 Thread Bouju Alain
Hello, A patch for procfs /proc/cpuinfo Alain ... diff --git a/Makefile b/Makefile index a397522..d79b523 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,10 @@ TARGET = procfs -OBJS = procfs.o netfs.o procfs_dir.o \ +OBJS = procfs.o netfs.o procfs_dir.o cpuinfo.o\ process.o proclist.o

Patch procfs cpuinfo

2011-11-13 Thread Bouju Alain
Hello, A patch for procfs /proc/cpuinfo Alain ... diff --git a/Makefile b/Makefile index a397522..d79b523 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,10 @@ TARGET = procfs -OBJS = procfs.o netfs.o procfs_dir.o \ +OBJS = procfs.o netfs.o procfs_dir.o cpuinfo.o\ process.o proclist.o