Skip to content
Commit b94729a3 authored by Valentin Schneider's avatar Valentin Schneider
Browse files

tools: Add a sched domain flag reader

Running this on my HiKey960 gives me the following result:

./tools/scripts/get_sd_flags.py --kind linux --host x.x.x.x --username xxx --password xxx
Module devfreq is not supported by the target
Module fastboot is not supported by the target
Module gem5stats is not supported by the target
Module gpufreq is not supported by the target
Module odroidxu3-fan is not supported by the target
Failed to initialized "devfreq" devlib Module
Failed to initialized "fastboot" devlib Module
Failed to initialized "gem5stats" devlib Module
Failed to initialized "gpufreq" devlib Module
Failed to initialized "mbed-fan" devlib Module
Failed to initialized "odroidxu3-fan" devlib Module
Couldn't read target energy model: Unable to probe for energy model on target.
== CPU0 ==
	MC level
		SD_WAKE_AFFINE - Wake task to waking CPU
		SD_LOAD_BALANCE - Do load balancing on this domain
		SD_BALANCE_NEWIDLE - Balance when about to become idle
		SD_SHARE_PKG_RESOURCES - Domain members share cpu pkg resources
		SD_BALANCE_EXEC - Balance on exec
		SD_BALANCE_FORK - Balance on fork, clone
		SD_BALANCE_WAKE - Balance on wakeup
	DIE level
		SD_WAKE_AFFINE - Wake task to waking CPU
		SD_LOAD_BALANCE - Do load balancing on this domain
		SD_BALANCE_NEWIDLE - Balance when about to become idle
		SD_ASYM_CPUCAPACITY - Groups have different max cpu capacities
		SD_BALANCE_EXEC - Balance on exec
		SD_PREFER_SIBLING - Prefer to place tasks in a sibling domain
		SD_BALANCE_FORK - Balance on fork, clone
		SD_BALANCE_WAKE - Balance on wakeup
== CPU1 ==
	MC level
		SD_WAKE_AFFINE - Wake task to waking CPU
		SD_LOAD_BALANCE - Do load balancing on this domain
		SD_BALANCE_NEWIDLE - Balance when about to become idle
		SD_SHARE_PKG_RESOURCES - Domain members share cpu pkg resources
		SD_BALANCE_EXEC - Balance on exec
		SD_BALANCE_FORK - Balance on fork, clone
		SD_BALANCE_WAKE - Balance on wakeup
	DIE level
		SD_WAKE_AFFINE - Wake task to waking CPU
		SD_LOAD_BALANCE - Do load balancing on this domain
		SD_BALANCE_NEWIDLE - Balance when about to become idle
		SD_ASYM_CPUCAPACITY - Groups have different max cpu capacities
		SD_BALANCE_EXEC - Balance on exec
		SD_PREFER_SIBLING - Prefer to place tasks in a sibling domain
		SD_BALANCE_FORK - Balance on fork, clone
		SD_BALANCE_WAKE - Balance on wakeup
== CPU2 ==
	MC level
		SD_WAKE_AFFINE - Wake task to waking CPU
		SD_LOAD_BALANCE - Do load balancing on this domain
		SD_BALANCE_NEWIDLE - Balance when about to become idle
		SD_SHARE_PKG_RESOURCES - Domain members share cpu pkg resources
		SD_BALANCE_EXEC - Balance on exec
		SD_BALANCE_FORK - Balance on fork, clone
		SD_BALANCE_WAKE - Balance on wakeup
	DIE level
		SD_WAKE_AFFINE - Wake task to waking CPU
		SD_LOAD_BALANCE - Do load balancing on this domain
		SD_BALANCE_NEWIDLE - Balance when about to become idle
		SD_ASYM_CPUCAPACITY - Groups have different max cpu capacities
		SD_BALANCE_EXEC - Balance on exec
		SD_PREFER_SIBLING - Prefer to place tasks in a sibling domain
		SD_BALANCE_FORK - Balance on fork, clone
		SD_BALANCE_WAKE - Balance on wakeup
== CPU3 ==
	MC level
		SD_WAKE_AFFINE - Wake task to waking CPU
		SD_LOAD_BALANCE - Do load balancing on this domain
		SD_BALANCE_NEWIDLE - Balance when about to become idle
		SD_SHARE_PKG_RESOURCES - Domain members share cpu pkg resources
		SD_BALANCE_EXEC - Balance on exec
		SD_BALANCE_FORK - Balance on fork, clone
		SD_BALANCE_WAKE - Balance on wakeup
	DIE level
		SD_WAKE_AFFINE - Wake task to waking CPU
		SD_LOAD_BALANCE - Do load balancing on this domain
		SD_BALANCE_NEWIDLE - Balance when about to become idle
		SD_ASYM_CPUCAPACITY - Groups have different max cpu capacities
		SD_BALANCE_EXEC - Balance on exec
		SD_PREFER_SIBLING - Prefer to place tasks in a sibling domain
		SD_BALANCE_FORK - Balance on fork, clone
		SD_BALANCE_WAKE - Balance on wakeup
== CPU4 ==
	MC level
		SD_WAKE_AFFINE - Wake task to waking CPU
		SD_LOAD_BALANCE - Do load balancing on this domain
		SD_BALANCE_NEWIDLE - Balance when about to become idle
		SD_SHARE_PKG_RESOURCES - Domain members share cpu pkg resources
		SD_BALANCE_EXEC - Balance on exec
		SD_BALANCE_FORK - Balance on fork, clone
		SD_BALANCE_WAKE - Balance on wakeup
	DIE level
		SD_WAKE_AFFINE - Wake task to waking CPU
		SD_LOAD_BALANCE - Do load balancing on this domain
		SD_BALANCE_NEWIDLE - Balance when about to become idle
		SD_ASYM_CPUCAPACITY - Groups have different max cpu capacities
		SD_BALANCE_EXEC - Balance on exec
		SD_PREFER_SIBLING - Prefer to place tasks in a sibling domain
		SD_BALANCE_FORK - Balance on fork, clone
		SD_BALANCE_WAKE - Balance on wakeup
== CPU5 ==
	MC level
		SD_WAKE_AFFINE - Wake task to waking CPU
		SD_LOAD_BALANCE - Do load balancing on this domain
		SD_BALANCE_NEWIDLE - Balance when about to become idle
		SD_SHARE_PKG_RESOURCES - Domain members share cpu pkg resources
		SD_BALANCE_EXEC - Balance on exec
		SD_BALANCE_FORK - Balance on fork, clone
		SD_BALANCE_WAKE - Balance on wakeup
	DIE level
		SD_WAKE_AFFINE - Wake task to waking CPU
		SD_LOAD_BALANCE - Do load balancing on this domain
		SD_BALANCE_NEWIDLE - Balance when about to become idle
		SD_ASYM_CPUCAPACITY - Groups have different max cpu capacities
		SD_BALANCE_EXEC - Balance on exec
		SD_PREFER_SIBLING - Prefer to place tasks in a sibling domain
		SD_BALANCE_FORK - Balance on fork, clone
		SD_BALANCE_WAKE - Balance on wakeup
== CPU6 ==
	MC level
		SD_WAKE_AFFINE - Wake task to waking CPU
		SD_LOAD_BALANCE - Do load balancing on this domain
		SD_BALANCE_NEWIDLE - Balance when about to become idle
		SD_SHARE_PKG_RESOURCES - Domain members share cpu pkg resources
		SD_BALANCE_EXEC - Balance on exec
		SD_BALANCE_FORK - Balance on fork, clone
		SD_BALANCE_WAKE - Balance on wakeup
	DIE level
		SD_WAKE_AFFINE - Wake task to waking CPU
		SD_LOAD_BALANCE - Do load balancing on this domain
		SD_BALANCE_NEWIDLE - Balance when about to become idle
		SD_ASYM_CPUCAPACITY - Groups have different max cpu capacities
		SD_BALANCE_EXEC - Balance on exec
		SD_PREFER_SIBLING - Prefer to place tasks in a sibling domain
		SD_BALANCE_FORK - Balance on fork, clone
		SD_BALANCE_WAKE - Balance on wakeup
== CPU7 ==
	MC level
		SD_WAKE_AFFINE - Wake task to waking CPU
		SD_LOAD_BALANCE - Do load balancing on this domain
		SD_BALANCE_NEWIDLE - Balance when about to become idle
		SD_SHARE_PKG_RESOURCES - Domain members share cpu pkg resources
		SD_BALANCE_EXEC - Balance on exec
		SD_BALANCE_FORK - Balance on fork, clone
		SD_BALANCE_WAKE - Balance on wakeup
	DIE level
		SD_WAKE_AFFINE - Wake task to waking CPU
		SD_LOAD_BALANCE - Do load balancing on this domain
		SD_BALANCE_NEWIDLE - Balance when about to become idle
		SD_ASYM_CPUCAPACITY - Groups have different max cpu capacities
		SD_BALANCE_EXEC - Balance on exec
		SD_PREFER_SIBLING - Prefer to place tasks in a sibling domain
		SD_BALANCE_FORK - Balance on fork, clone
		SD_BALANCE_WAKE - Balance on wakeup
parent c7845536
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment