Re: [2/3] ntdll: Implement NtQuerySystemInformation/SystemLogicalProcessorInformation (try 6)

2010-10-10 Thread Rudolf Mayerhofer
On Sunday 10 October 2010 18:43:25 Vitaliy Margolen wrote: > On 10/10/2010 03:42 AM, Rudolf Mayerhofer wrote: > > I haven't found out how to do this properly yet and i think that i > > definitely need help on that one (like an example) as my skills in C are > > not tha

Re: [2/3] ntdll: Implement NtQuerySystemInformation/SystemLogicalProcessorInformation (try 6)

2010-10-10 Thread Rudolf Mayerhofer
On Sunday 10 October 2010 00:26:45 you wrote: > On 10/09/2010 12:37 PM, Rudolf Mayerhofer wrote: > >>> +static SYSTEM_LOGICAL_PROCESSOR_INFORMATION cached_lpi[1024]; > >> > >> You think there are systems with that many CPUs running Wine? > > > >

Re: [2/3] ntdll: Implement NtQuerySystemInformation/SystemLogicalProcessorInformation (try 6)

2010-10-10 Thread Rudolf Mayerhofer
>> +static SYSTEM_LOGICAL_PROCESSOR_INFORMATION cached_lpi[1024]; >You think there are systems with that many CPUs running Wine? I honestly don't know the array is currently large enough to support 146 CPU's with 4 unique Caches (L1i,L1d,L2,L3), each in it's own processorpackage and numa node. Thi

Re: [2/3] ntdll: Implement NtQuerySystemInformation/SystemLogicalProcessorInformation (try 5)

2010-10-08 Thread Rudolf Mayerhofer
>On Friday 08 October 2010 14:26:28 Alexandre Julliard wrote: >> Rudolf Mayerhofer writes: >> > +/*** >> > + * Several methods to retrieve data from SysFS (/sys) >> > + * used to

Re: [2/3] ntdll: Implement NtQuerySystemInformation/SystemLogicalProcessorInformation (try 5)

2010-10-08 Thread Rudolf Mayerhofer
On Friday 08 October 2010 14:26:28 Alexandre Julliard wrote: > Rudolf Mayerhofer writes: > > +/*** > > + * Several methods to retrieve data from SysFS (/sys) > > + * used to retrieve cached

Re: kernel32/process: Implement GetLogicalProcessorInformation (rewrite - try 3)

2010-10-05 Thread Rudolf Mayerhofer
> Have you checked that it doesn't just return a > SYSTEM_LOGICAL_PROCESSOR_INFORMATION ? It seems to be the right > "format" for the name anyway. I'd play with the size argument or try > using NtQuerySystemInformationEx (some new thing in win7). You could > just find a case that passes and impleme

Re: kernel32/process: Implement GetLogicalProcessorInformation (rewrite - try 3)

2010-10-04 Thread Rudolf Mayerhofer
>I don't know much about kernel32/ntdll, but I'm pretty sure that you >could get this to work through ntdll. NtQuerySystemInformation with >SystemProcessorInformation/SystemLogicalProcessorInformation (see >http://undocumented.ntinternals.net/UserMode/Undocumented%20Functions/System%20Information/S

Re: [PATCH1/3] include/winternl: Add Logical Processor Information to SYSTEM_CPU_INFORMATION

2010-10-03 Thread Rudolf Mayerhofer
On Sunday 03 October 2010 16:22:07 Eric Pouech wrote: > > SystemCpuInformation seems not defined anywhere outside Wine. > > It's not defined on MSDN, neither can it be found on any Wine-unrelated > > Documentations/Source-codes or Documentations. If you have any links or > > documentation for Syste

Re: [PATCH1/3] include/winternl: Add Logical Processor Information to SYSTEM_CPU_INFORMATION

2010-10-03 Thread Rudolf Mayerhofer
On Sunday 03 October 2010 09:34:02 Dmitry Timoshkov wrote: > Rudolf Mayerhofer wrote: > > > Are the additions to the structures your own invention? > > > > Yes, as SystemClass 0x01 and struct SYSTEM_CPU_INFORMATION seem to be > > Wine- only (I could not find anythi

Re: [PATCH1/3] include/winternl: Add Logical Processor Information to SYSTEM_CPU_INFORMATION

2010-10-02 Thread Rudolf Mayerhofer
On Saturday 02 October 2010 15:15:48 Dmitry Timoshkov wrote: > Rudolf Mayerhofer wrote: > > This is used in NTDLL and Kernel32 to provide an Implementation for > > kernel32's GetLogicalProcessorInformation(). > > Are the additions to the structures your own invention?

Re: [PATCH1/3] include/winternl: Add Logical Processor Information to SYSTEM_CPU_INFORMATION

2010-10-02 Thread Rudolf Mayerhofer
On Saturday 02 October 2010 08:15:46 Dmitry Timoshkov wrote: > Rudolf Mayerhofer wrote: > > /* System Information Class 0x01 */ > > > > +typedef struct _SYSTEM_CPU_CACHE_INFORMATION { > > +ULONG ProcessorMask; > > +CACHE_DESCRIPTOR CacheInformation; &g