summaryrefslogtreecommitdiffstats
path: root/base/sys_info_linux.cc
Commit message (Collapse)AuthorAgeFilesLines
* Cache the numberOfProcessors value on posix and expose it to blinkjochen@chromium.org2013-11-201-18/+5
| | | | | | | | | | | | We need to cache the value, so we can request it from blink after the sandbox was already turned on. BUG=321060 R=jam@chromium.org,mark@chromium.org,jamesr@chromium.org Review URL: https://codereview.chromium.org/67373006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@236224 0039d316-1c4b-4281-b951-d872f2087c98
* Reland "Enable SysInfo::AmountOfPhysicalMemory to be called from within the ↵rmcilroy@chromium.org2013-11-041-23/+51
| | | | | | | | | | | | | Linux Sandbox" Trigger caching of SysInfo::AmountOfPhysicalMemory in PreSandboxInit() to enable it to be called by the renderer process after the sandbox is sealed. BUG=312241 Review URL: https://codereview.chromium.org/55913004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232790 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 232274 "Reland "Enable SysInfo::AmountOfPhysicalMemory to..."dglazkov@chromium.org2013-11-011-47/+23
| | | | | | | | | | | | | | | | | | | | Broke all linux dbg layout tests (again): http://build.chromium.org/p/chromium.webkit/builders/WebKit%20Linux%20%28dbg%29/builds/14495 > Reland "Enable SysInfo::AmountOfPhysicalMemory to be called from within the Linux Sandbox" > > Trigger caching of SysInfo::AmountOfPhysicalMemory in PreSandboxInit() to enable > it to be called by the renderer process after the sandbox is sealed. > > BUG=312241 > > Review URL: https://codereview.chromium.org/52403002 TBR=rmcilroy@chromium.org Review URL: https://codereview.chromium.org/54923005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232282 0039d316-1c4b-4281-b951-d872f2087c98
* Reland "Enable SysInfo::AmountOfPhysicalMemory to be called from within the ↵rmcilroy@chromium.org2013-11-011-23/+47
| | | | | | | | | | | | | Linux Sandbox" Trigger caching of SysInfo::AmountOfPhysicalMemory in PreSandboxInit() to enable it to be called by the renderer process after the sandbox is sealed. BUG=312241 Review URL: https://codereview.chromium.org/52403002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232274 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 231613 "Enable SysInfo::AmountOfPhysicalMemory to be call..."dglazkov@chromium.org2013-10-291-66/+35
| | | | | | | | | | | | | | | | | > Enable SysInfo::AmountOfPhysicalMemory to be called from within the Linux sandbox. > > Trigger caching of SysInfo::AmountOfPhysicalMemory in PreSandboxInit() to enable > it to be called by the renderer process after the sandbox is sealed. > > BUG=312241 > > Review URL: https://codereview.chromium.org/28833002 TBR=rmcilroy@chromium.org Review URL: https://codereview.chromium.org/51223003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231626 0039d316-1c4b-4281-b951-d872f2087c98
* Enable SysInfo::AmountOfPhysicalMemory to be called from within the Linux ↵rmcilroy@chromium.org2013-10-291-35/+66
| | | | | | | | | | | | | sandbox. Trigger caching of SysInfo::AmountOfPhysicalMemory in PreSandboxInit() to enable it to be called by the renderer process after the sandbox is sealed. BUG=312241 Review URL: https://codereview.chromium.org/28833002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231613 0039d316-1c4b-4281-b951-d872f2087c98
* Move ReadFileToString to the base namespace.brettw@chromium.org2013-08-301-2/+2
| | | | | | | | BUG= Review URL: https://codereview.chromium.org/19579005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@220612 0039d316-1c4b-4281-b951-d872f2087c98
* Fixed CPU model name reporting on ChromeOS/ARM.zelidrag@chromium.org2013-05-061-3/+7
| | | | | | | | | BUG=237294 TEST=none Review URL: https://chromiumcodereview.appspot.com/14872004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@198378 0039d316-1c4b-4281-b951-d872f2087c98
* Implement missing SysInfo methods on OpenBSDmdempsky@google.com2013-04-101-12/+14
| | | | | | | | | Adds AmountOfAvailablePhysicalMemory (based on Linux's implementation) and CPUModelName() (based on OS X's implementation). Review URL: https://chromiumcodereview.appspot.com/13945012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@193295 0039d316-1c4b-4281-b951-d872f2087c98
* Move string_number_conversions to base/strings.brettw@chromium.org2013-02-071-1/+1
| | | | | | | | | | This only updates includes in base and keeps a forwarding header for now to keep the change under control. BUG= Review URL: https://codereview.chromium.org/12092078 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181161 0039d316-1c4b-4281-b951-d872f2087c98
* Add systemInfo.memory API implementationhongbo.min@intel.com2012-10-271-0/+11
| | | | | | | | | BUG=136519 TEST=browser_tests --gtest_filter=SystemInfoMemoryApiTest.* Review URL: https://chromiumcodereview.appspot.com/11185049 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@164518 0039d316-1c4b-4281-b951-d872f2087c98
* Refine systemInfo.cpu API and provide systemInfo.cpu.get impl for Windows ↵hongbo.min@intel.com2012-09-081-0/+19
| | | | | | | | | | | and Linux. BUG=136519 TEST=browser_test --gtest_filter=SystemInfoCpuApiTest.* Review URL: https://chromiumcodereview.appspot.com/10914060 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@155575 0039d316-1c4b-4281-b951-d872f2087c98
* OpenBSD patches for base and build, part 2robert.nagy@gmail.com2011-10-241-5/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | base/base.gyp: - exclude test/test_file_util_linux.cc on OpenBSD because of missing fdatasync() base/base.gypi: - include linux_util.cc on OpenBSD too - exclude some linux specific files from the OpenBSD build because the openbsd implementation is different base/file_util_posix.cc: - Use file_util::GetTempDir directly to get the shm dir on !linux base/sys_info_freebsd.cc: - return 0 and do a NOTREACHED() in case sysctlbyname() fails base/sys_info_openbsd.cc: - cleanup includes - use arraysize() in the sysctl() call - implement SysInfo::MaxSharedMemorySize() build/common.gypi: - -Wno-deprecated is C++ only flag so move it to cflags_cc - Do not exclude linux specific files, dirs on OpenBSD since 90% of it is sharable base/sys_info_linux.cc: - DCHECK if the read string is empty - Use base::StringToInt64() to convert the string to an int64 - DCHECK if the returned int64 is okay for a size_t - call NOTREACHED() and return 0 if fails BUG= TEST=runs on linux? Review URL: http://codereview.chromium.org/8382001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106984 0039d316-1c4b-4281-b951-d872f2087c98
* posix: split OS-specific bits out of sys_info_posixevan@chromium.org2009-11-231-0/+36
Split into Linux and BSD-specific files. Review URL: http://codereview.chromium.org/427010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32860 0039d316-1c4b-4281-b951-d872f2087c98