| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
Updated licenses using replace-licenses.zsh from mkdist repo.
Possible copyright and contact changes will come later.
Change-Id: I5ea5f85b538e5e4304fe0336cb4de1932265fda9
Reviewed-by: Janne Anttila <[email protected]>
Reviewed-by: Sergio Ahumada <[email protected]>
|
|
|
|
|
| |
Change-Id: I4259ecf3c599ec0cd1515c1b8768ec9138d54f3e
Reviewed-by: Chris Craig <[email protected]>
|
|
|
|
|
| |
Change-Id: I68b75ef640f96671b6b8a9a169056c31e8d47443
Reviewed-by: Chris Craig <[email protected]>
|
|
|
|
|
| |
Change-Id: I9ab9c56444e926d298aadfedc9913f2394837083
Reviewed-by: Chris Craig <[email protected]>
|
|
|
|
|
| |
Change-Id: Icc471d82fd2b8e3a307e848e8d14389d0427f984
Reviewed-by: Chris Craig <[email protected]>
|
|
|
|
|
| |
Change-Id: Ied9ff13e8a467f9a7af6e9406518acdbba3474ec
Reviewed-by: Chris Craig <[email protected]>
|
|
|
|
|
|
|
|
| |
Taking the string out of a QQmlScriptString object is deprecated
and will be removed from the public API.
Change-Id: I5e02b5b79514deea2369c6e732090d6bdfc30643
Reviewed-by: Roberto Raggi <[email protected]>
|
|
|
|
|
|
|
|
| |
Many of the standard library includes have removed unistd.h.
See http://gcc.gnu.org/gcc-4.7/porting_to.html for more info.
Change-Id: I572f7705a73fb506f9fa5a498b1d4c9d9581af86
Reviewed-by: Andrew Christian <[email protected]>
|
|
|
|
|
|
|
|
| |
1. fix umask handling to be similar to uid/gid
2. add addition property "dropCapabilities"
Change-Id: I9ac7baece5f7c8b6c736dfd79bff6fab6d5b4f7a
Reviewed-by: Lasse Holmstedt <[email protected]>
|
|
|
|
|
|
|
|
| |
An earlier change caused data written from RemoteProcessBackend to be base64
encoded, so it needs to be decoded in LauncherClient.
Change-Id: I33a7fc333ad36f68633662d382c352a16b315da8
Reviewed-by: Andrew Christian <[email protected]>
|
|
|
|
|
|
|
|
| |
We want to be able to define the umask
in policy code
Change-Id: I4ad3badd294e7cbf21b91626c4fa205d625dc294
Reviewed-by: Lasse Holmstedt <[email protected]>
|
|
|
|
|
|
|
|
| |
if m_index is -1 (the default), the call to Prefork::at() will
run into an ASSERT.
Change-Id: Ic2606fe3dab5b589b47d79bb30a0cd654d522a0e
Reviewed-by: Nikolai Kosjar <[email protected]>
|
|
|
|
|
|
|
|
|
| |
The original code was right of course. pid -1 and
errno ECHILD is plausible condition that we should
not abort on. The pid 0 case comes in addition.
Change-Id: I9dca715b1d59e2d78e4d32b4aad2fd8a06af488a
Reviewed-by: Lasse Holmstedt <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
| |
1. pass correct command line arguments
2. abort waitForChildren when waitpit returns 0 (normal case
under Linux)
3. avoid writing empty json objects to the pipes
4. encode binary data as base64
Change-Id: I6b2076215d6d62e121a9e75a25acbb139be37598
Reviewed-by: Andrew Christian <[email protected]>
|
|
|
|
|
| |
Change-Id: I445d430e6f78475b923fa08001f9bb322f87f854
Reviewed-by: Chris Craig <[email protected]>
|
|
|
|
|
|
|
|
|
| |
We need to be able to disable prelaunched runtimes without
destroying the created ones. Destruction of exisiting runtimes
happen when memory is restricted.
Change-Id: Ia366b872951ff0c783e741ab5f081d5970d45a7d
Reviewed-by: Chris Craig <[email protected]>
|
|
|
|
|
|
| |
Change-Id: I8d951852a7898c974a11b11a97011983ef0694c3
Reviewed-by: Martin Zielinski <[email protected]>
Reviewed-by: Chris Craig <[email protected]>
|
|
|
|
|
|
|
|
|
| |
Changes to the priority of a unixprocess does apply the priority
also to all childprocesses and threads.
Change-Id: Iaff1a5f7ef0742268d527e6b6800bbd47c39146c
Reviewed-by: Lasse Holmstedt <[email protected]>
Reviewed-by: Chris Craig <[email protected]>
|
|
|
|
|
|
|
| |
Change-Id: Ib6b625893159c55cfb6d43a6e6e963abc85a0322
Reviewed-by: Lasse Holmstedt <[email protected]>
Reviewed-by: Alexey Shilov <[email protected]>
Reviewed-by: Chris Craig <[email protected]>
|
|
|
|
|
|
|
|
|
| |
* Clarified semantics for what the system does if UID is set,
GID is set, or both UID and GID are set.
* Added error checking code
Change-Id: Ifb6a6d9b4ef30cd4ae5135308880b3d5910c0167
Reviewed-by: Lasse Holmstedt <[email protected]>
|
|
|
|
|
| |
Change-Id: I35a1b425c3bf28d573a4f901ed916db110bc5152
Reviewed-by: Chris Craig <[email protected]>
|
|
|
|
|
| |
Change-Id: Id09f15c203ce0853b4d9a7d8d2d2588a2627a877
Reviewed-by: Chris Craig <[email protected]>
|
|
|
|
|
| |
Change-Id: I74aa4d388aa8684868c16e600e61e2ac20a552e5
Reviewed-by: Chris Craig <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Pass Idle CPU requests over remote procotol
* Pass Idle CPU grants over remote protocol
* Pass Memory Restricted messages over remote protocol
* Pass list of internal processes over remote protocol
* Update test cases for the above for PipeLauncher
and SocketLauncher.
* Verify that a PipeLauncher or SocketLauncher can support
prelaunched processes correctly.
* Added appropriate schema for remote protocol including
Halt: Stop the remote client
IdleCpuAvailable: grant idle cpu to a remote factory
Memory: configure memoryRestricted property
IdleCpuRequest: Event from remote process to request idle cpu
InternalProcesses: Event from remote process listing
all internal processes.
* Updated documentation with more accurate pictures of
ProcessBackendFactory and ProcessBackendManager hierarchies.
Change-Id: I34905049844b80e4018042d67a1a5ed3137fa29a
Reviewed-by: Chris Craig <[email protected]>
|
|
|
|
|
| |
Change-Id: I43cafb1dac4e202df6899b985802088fd2444dc4
Reviewed-by: Matthias Ettrich <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Fixed up PipeProcessBackendFactory to support being instantiated
by declarative.
* Added a DeclarativeProcessManager::registerTypes() function to
call qmlRegisterType() for all usable classes.
* Updated registered QML class names for items in declarative to
follow the "PmNAME" convention (because the QML type name can't
be the same as the C++ type name)
* Updated documentation for declarative types
Change-Id: I587689752cb69c7280db67bbc20c1a91b0c6722a
Reviewed-by: Chris Craig <[email protected]>
|
|
|
|
|
|
| |
Change-Id: I95dd813cdcee26e1ce654cc4fd49bbe63697c5fc
Reviewed-by: Lasse Holmstedt <[email protected]>
Reviewed-by: Chris Craig <[email protected]>
|
|
|
|
|
|
|
|
|
| |
* Added enabled property to delegates to universally turn them on and off
* Changed the default IdleDelegate to CpuIdleDelegate
* Added test case for enabling/disabling idle delegate
Change-Id: I6683aa19821f84afea25e8fd97c284863791e7ed
Reviewed-by: Chris Craig <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* ProcessBackendFactories indicate a need for extra
cycles by setting idleCpuRequest property.
* PrelaunchBackendFactory requests this whenever
it wants to prelaunch a backend.
* ProcessBackendManager aggregates idleCpuRequest
properties and passes combined request to IdleDelegate.
* IdleDelegate periodically sends idleCpuAvailable()
signal to first available factory with outstanding
request.
* The default IdleDelegate is set to TimeoutIdleDelegate
which distributes idleCpuAvailable() signals at
regular intervals. This is close to the old prelaunch
logic, but now centralized and replaceable.
* The CpuIdleDelegate measures system load (Linux & Mac)
and distributes idleCpuAvailable() signals when the
system load falls below a set level
Change-Id: I1ce273b2797ae0f0477dd80ae7bc2c8e3496901e
Reviewed-by: Andrew Christian <[email protected]>
|
|
|
|
|
| |
Change-Id: I124e5e9953a308b917134789866d8e69312d6ba1
Reviewed-by: Chris Craig <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
| |
- avoid failed assertions (m_prelaunch == 0) by scheduling starting a new
instance only if there does not exist one
- also make sure current instance is deleted before creating one for a
different runtime
Change-Id: Iec375d43d4d25508f5cdf433dec392d4196e53b3
Reviewed-by: Lasse Holmstedt <[email protected]>
Reviewed-by: Chris Craig <[email protected]>
|
|
|
|
|
|
|
|
|
| |
This reverts commit 9181b78247567f1c21b9f85a9eb149133425941a
Inappropriate implementation. Having two PrelaunchProcessBackendFactories will result in extraneous polling. Autotests now only succeed if you run on a machine with low CPU load. Autotests on Macintosh platform simply fail.
Change-Id: I3e7061e8fbf89bd3f6a2907a406ca1fbfbc88e3c
Reviewed-by: Chris Craig <[email protected]>
|
|
|
|
|
|
|
| |
Now we prelaunch runtimes only if cpu load is low enough.
Change-Id: Ie050fad9f75d2e6cb02a6dbc09b24841b539f41e
Reviewed-by: Lasse Holmstedt <[email protected]>
|
|
|
|
|
| |
Change-Id: I0612bc25e5d40dde12aa6f09158e30b0a94cd6af
Reviewed-by: Andrew Christian <[email protected]>
|
|
|
|
|
| |
Change-Id: If29f31cdb8bf696108788f5b179e404d303ebfb5
Reviewed-by: Chris Craig <[email protected]>
|
|
|
|
|
|
|
|
| |
The JsonPipe class from QJsonStream abstracts sending
and receiving JSON-formatted messages over file descriptors.
Change-Id: I7ebde3dc1f176d41e492f1bdf34c6ae0e0cf8fa5
Reviewed-by: Chris Craig <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Prefork library parses command line arguments and creates
appropriate master and child processes connected by
pipes.
* PreforkProcessBackendFactory retrieves information about
child processes from prefork library and exposes those
children as remote process manager objects.
* Linux test case added to start a master and child object
using prefork library and run all standard tests.
Change-Id: Ic76da3eb8237744dd075f55db80f46f35550c73f
Reviewed-by: Chris Craig <[email protected]>
|
|
|
|
|
|
|
|
|
| |
* Added declarative test cases for Prelaunch factory
* Copy ProcessInfo record into prelaunch factory to avoid
memory management issues
Change-Id: I3303286f34c7ee9c491a82726e4e4b50892625e4
Reviewed-by: Lasse Holmstedt <[email protected]>
|
|
|
|
|
| |
Change-Id: I0e88adff69718419598a7547f36aee3769833e53
Reviewed-by: Matthias Ettrich <[email protected]>
|
|
|
|
|
| |
Change-Id: I466e79d5794a9e4db3ec15f0449d80a6a7357fe2
Reviewed-by: Matthias Ettrich <[email protected]>
|
|
|
|
|
|
|
|
|
| |
When true, the factory does prelaunching. Otherwise, it is still
able to launch processes, but won't attempt to create any additional
prelaunched runtimes.
Change-Id: Iab8aa1367f109e64847b68af0c856d67287aa9aa
Reviewed-by: Matthias Ettrich <[email protected]>
|
|
|
|
|
|
|
| |
Otherwise you must subclass it in order to create it in QML.
Change-Id: Idbf78477518f366def7d3aadd56ef14734059db2
Reviewed-by: Matthias Ettrich <[email protected]>
|
|
|
|
|
| |
Change-Id: Ieebba581070fe1996e872e32bf9a7e6783376606
Reviewed-by: Lasse Holmstedt <[email protected]>
|
|
|
|
|
| |
Change-Id: I564279a78162c2b63b40e7009ea3034f929bb275
Reviewed-by: Lasse Holmstedt <[email protected]>
|
|
|
|
|
| |
Change-Id: I57f552da2f45069fab73782e7229af484cd2636b
Reviewed-by: Chris Craig <[email protected]>
|
|
|
|
|
| |
Change-Id: I0f536fc6cae58461ffb1818b044512349a89bba2
Reviewed-by: Chris Craig <[email protected]>
|
|
|
|
|
| |
Change-Id: Icff9cd4073684ba7cc314b69b3efc6c0bf7cff99
Reviewed-by: Chris Craig <[email protected]>
|
|
|
|
|
| |
Change-Id: I2e21b7635169464e229a36d02cc728a5f5bab443
Reviewed-by: Chris Craig <[email protected]>
|
|
|
|
|
| |
Change-Id: I42cdfcf1b32739ff483c1379cada7df394e57fa1
Reviewed-by: Chris Craig <[email protected]>
|
|
|
|
|
|
|
|
| |
* DeclarativeMatchDelegate allows matching logic to be specified in Javascript.
* Cleaned up some of the QML documentation
Change-Id: I1d9f246528a60656b713fcdb39d08f6f8d6904a0
Reviewed-by: Chris Craig <[email protected]>
|