#
4c2caea0 |
| 09-Apr-2019 |
Reshma Pattan <reshma.pattan@intel.com> |
examples/power: fix string null termination
After the read() the jason_data null termination is missing for the case "indent < 0", for "indent > 0" and "indent == 0" cases null termination is alread
examples/power: fix string null termination
After the read() the jason_data null termination is missing for the case "indent < 0", for "indent > 0" and "indent == 0" cases null termination is already handled.
So add the missing case "indent < 0" to the existing "indent == 0" case to fix null termination.
Coverity issue: 337680 Fixes: a63504a90f ("examples/power: add JSON string handling") Cc: stable@dpdk.org
Signed-off-by: Reshma Pattan <reshma.pattan@intel.com> Acked-by: David Hunt <david.hunt@intel.com>
show more ...
|
#
236e164b |
| 09-Apr-2019 |
Lukasz Krakowiak <lukaszx.krakowiak@intel.com> |
examples/power: remove policy dependency to MAC list
Removed dependency to mac_list from policies: * BRANCH_RATIO, * WORKLOAD, * TIME in function update_policy.
Fixes: 1b897991473f ("power: update
examples/power: remove policy dependency to MAC list
Removed dependency to mac_list from policies: * BRANCH_RATIO, * WORKLOAD, * TIME in function update_policy.
Fixes: 1b897991473f ("power: update error handling")
Signed-off-by: Lukasz Krakowiak <lukaszx.krakowiak@intel.com> Acked-by: David Hunt <david.hunt@intel.com> Tested-by: Yufeng Mo <yufengx.mo@intel.com>
show more ...
|
#
6723c0fc |
| 03-Apr-2019 |
Bruce Richardson <bruce.richardson@intel.com> |
replace snprintf with strlcpy
Do a global replace of snprintf(..."%s",...) with strlcpy, adding in the rte_string_fns.h header if needed. The function changes in this patch were auto-generated via
replace snprintf with strlcpy
Do a global replace of snprintf(..."%s",...) with strlcpy, adding in the rte_string_fns.h header if needed. The function changes in this patch were auto-generated via command:
spatch --sp-file devtools/cocci/strlcpy.cocci --dir . --in-place
and then the files edited using awk to add in the missing header:
gawk -i inplace '/include <rte_/ && ! seen { \ print "#include <rte_string_fns.h>"; seen=1} {print}'
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
show more ...
|
#
d7b713d0 |
| 28-Mar-2019 |
Lukasz Krakowiak <lukaszx.krakowiak@intel.com> |
power: add some logs on requests
Extend debugs on power instruction and cmd police destroy requests.
Signed-off-by: Lukasz Krakowiak <lukaszx.krakowiak@intel.com>
|
#
1b897991 |
| 28-Mar-2019 |
Lukasz Krakowiak <lukaszx.krakowiak@intel.com> |
power: update error handling
Update for handling negative returned status from functions call.
Signed-off-by: Lukasz Krakowiak <lukaszx.krakowiak@intel.com> Acked-by: Anatoly Burakov <anatoly.burak
power: update error handling
Update for handling negative returned status from functions call.
Signed-off-by: Lukasz Krakowiak <lukaszx.krakowiak@intel.com> Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
show more ...
|
#
d38e6a6a |
| 07-Jan-2019 |
David Hunt <david.hunt@intel.com> |
examples/power: fix core id with JSON commands
This patch fixes a bug introduced in the 64-core limitation enhancement where the core_id is inadvertently converted from virtual to physical even thou
examples/power: fix core id with JSON commands
This patch fixes a bug introduced in the 64-core limitation enhancement where the core_id is inadvertently converted from virtual to physical even though it may already be a physical core_id.
We should be using the core_type field, and only converting via hypervisor when core_type is set to CORE_TYPE_VIRTUAL
Fixes: 5776b7a371d1 ("examples/power: allow VM to use lcores over 63")
Signed-off-by: David Hunt <david.hunt@intel.com> Reviewed-by: Lei Yao <lei.a.yao@intel.com> Tested-by: Lei Yao <lei.a.yao@intel.com>
show more ...
|
#
5776b7a3 |
| 14-Dec-2018 |
David Hunt <david.hunt@intel.com> |
examples/power: allow VM to use lcores over 63
Extending the functionality to allow vms to power manage cores beyond 63.
Signed-off-by: David Hunt <david.hunt@intel.com> Reviewed-by: Anatoly Burako
examples/power: allow VM to use lcores over 63
Extending the functionality to allow vms to power manage cores beyond 63.
Signed-off-by: David Hunt <david.hunt@intel.com> Reviewed-by: Anatoly Burakov <anatoly.burakov@intel.com>
show more ...
|
#
b6b22982 |
| 14-Dec-2018 |
David Hunt <david.hunt@intel.com> |
examples/power: remove mask functions
Since we're moving to allowing greater than 64 cores, the mask functions that use uint64_t to perform functions on a masked set of cores are no longer needed, s
examples/power: remove mask functions
Since we're moving to allowing greater than 64 cores, the mask functions that use uint64_t to perform functions on a masked set of cores are no longer needed, so removing them.
Signed-off-by: David Hunt <david.hunt@intel.com> Reviewed-by: Anatoly Burakov <anatoly.burakov@intel.com>
show more ...
|
#
ce4a2766 |
| 17-Oct-2018 |
David Hunt <david.hunt@intel.com> |
examples/power: clean up verbose messages
Some messages appearing several times a second, removing as they are unnecessary. Other less severe messages change from INFO to DEBUG
Signed-off-by: David
examples/power: clean up verbose messages
Some messages appearing several times a second, removing as they are unnecessary. Other less severe messages change from INFO to DEBUG
Signed-off-by: David Hunt <david.hunt@intel.com> Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
show more ...
|
#
a63504a9 |
| 17-Oct-2018 |
David Hunt <david.hunt@intel.com> |
examples/power: add JSON string handling
Add JSON string handling to vm_power_manager for JSON strings received through the fifo. The format of the JSON strings are detailed in the next patch, the v
examples/power: add JSON string handling
Add JSON string handling to vm_power_manager for JSON strings received through the fifo. The format of the JSON strings are detailed in the next patch, the vm_power_manager user guide documentation updates.
This patch introduces a new dependency on Jansson, a C library for encoding, decoding and manipulating JSON data. To compile the sample app you now need to have installed libjansson4 and libjansson-dev (these may be named slightly differently depending on your Operating System)
Signed-off-by: David Hunt <david.hunt@intel.com> Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
show more ...
|
#
90a774c4 |
| 17-Oct-2018 |
David Hunt <david.hunt@intel.com> |
examples/power: increase allowed number of clients
Now that we're handling host policies, containers and virtual machines, we'll rename MAX_VMS to MAX_CLIENTS, and increase from 4 to 64
Signed-off-
examples/power: increase allowed number of clients
Now that we're handling host policies, containers and virtual machines, we'll rename MAX_VMS to MAX_CLIENTS, and increase from 4 to 64
Signed-off-by: David Hunt <david.hunt@intel.com> Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
show more ...
|
#
3618326f |
| 17-Oct-2018 |
David Hunt <david.hunt@intel.com> |
examples/power: add host channel to power manager
This patch adds a fifo channel to the vm_power_manager app through which we can send commands and polices. Intended for sending JSON strings. The fi
examples/power: add host channel to power manager
This patch adds a fifo channel to the vm_power_manager app through which we can send commands and polices. Intended for sending JSON strings. The fifo is at /tmp/powermonitor/fifo
Signed-off-by: David Hunt <david.hunt@intel.com> Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
show more ...
|
#
395e97bf |
| 17-Oct-2018 |
David Hunt <david.hunt@intel.com> |
examples/power: allow number of VMs to be zero
Previously the vm_power_manager app required to have some vms defined, so the call to get_all_vm() always set the noVms variable. Now we're accepting p
examples/power: allow number of VMs to be zero
Previously the vm_power_manager app required to have some vms defined, so the call to get_all_vm() always set the noVms variable. Now we're accepting policies from the host OS (without any VMs defined), so it is now valid to have zero VMs. This patch initialises the relevant variables to zero just in case the call to get_all_vms() does not find any, so could return with the variables uninitialised.
Signed-off-by: David Hunt <david.hunt@intel.com> Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
show more ...
|
#
b89168ef |
| 13-Jul-2018 |
David Hunt <david.hunt@intel.com> |
examples/vm_power: add branch ratio policy type
Add the capability for the vm_power_manager to receive a policy of type BRANCH_RATIO. This will add any vcpus in the policy to the oob monitoring thre
examples/vm_power: add branch ratio policy type
Add the capability for the vm_power_manager to receive a policy of type BRANCH_RATIO. This will add any vcpus in the policy to the oob monitoring thread.
Signed-off-by: David Hunt <david.hunt@intel.com> Acked-by: Radu Nicolau <radu.nicolau@intel.com>
show more ...
|
#
8728ccf3 |
| 05-Apr-2018 |
Thomas Monjalon <thomas@monjalon.net> |
fix ethdev ports enumeration
Some DPDK applications wrongly assume these requirements: - no hotplug, i.e. ports are never detached - all allocated ports are available to the application
Suc
fix ethdev ports enumeration
Some DPDK applications wrongly assume these requirements: - no hotplug, i.e. ports are never detached - all allocated ports are available to the application
Such application iterates over ports by its own mean. The most common pattern is to request the port count and assume ports with index in the range [0..count[ can be used.
There are three consequences when using such wrong design: - new ports having an index higher than the port count won't be seen - old ports being detached (RTE_ETH_DEV_UNUSED) can be seen as ghosts - failsafe sub-devices (RTE_ETH_DEV_DEFERRED) will be seen by the application
Such mistake will be less common with growing hotplug awareness. All applications and examples inside this repository - except testpmd - must be fixed to use the iterator RTE_ETH_FOREACH_DEV.
Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
show more ...
|
#
3998e2a0 |
| 19-Dec-2017 |
Bruce Richardson <bruce.richardson@intel.com> |
examples: use SPDX tag for Intel copyright files
Replace the BSD license header with the SPDX tag for files with only an Intel copyright on them.
Signed-off-by: Bruce Richardson <bruce.richardson@i
examples: use SPDX tag for Intel copyright files
Replace the BSD license header with the SPDX tag for files with only an Intel copyright on them.
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
show more ...
|
#
e4f66da3 |
| 23-Oct-2017 |
David Hunt <david.hunt@intel.com> |
examples/vm_power_manager: fix response time
A delay in the loop waiting for the virtio-serial commands in the vm_power_manager app was causing a lag in the response time. This was set to 1 second,
examples/vm_power_manager: fix response time
A delay in the loop waiting for the virtio-serial commands in the vm_power_manager app was causing a lag in the response time. This was set to 1 second, and has now been changed to 1ms.
Fixes: f14791a8126e ("examples/vm_power_mgr: add policy to channels")
Signed-off-by: David Hunt <david.hunt@intel.com>
show more ...
|
#
7abd801f |
| 13-Oct-2017 |
David Hunt <david.hunt@intel.com> |
examples/vm_power_manager: fix build
Remove variable declaration from within for loop.
Fixes: f14791a8126e ("examples/vm_power_mgr: add policy to channels")
Signed-off-by: David Hunt <david.hunt@i
examples/vm_power_manager: fix build
Remove variable declaration from within for loop.
Fixes: f14791a8126e ("examples/vm_power_mgr: add policy to channels")
Signed-off-by: David Hunt <david.hunt@intel.com>
show more ...
|
#
f14791a8 |
| 11-Oct-2017 |
Rory Sexton <rory.sexton@intel.com> |
examples/vm_power_mgr: add policy to channels
Signed-off-by: Nemanja Marjanovic <nemanja.marjanovic@intel.com> Signed-off-by: Rory Sexton <rory.sexton@intel.com> Signed-off-by: David Hunt <david.hun
examples/vm_power_mgr: add policy to channels
Signed-off-by: Nemanja Marjanovic <nemanja.marjanovic@intel.com> Signed-off-by: Rory Sexton <rory.sexton@intel.com> Signed-off-by: David Hunt <david.hunt@intel.com> Reviewed-by: Santosh Shukla <santosh.shukla@caviumnetworks.com> Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
show more ...
|
#
567997b9 |
| 13-Sep-2017 |
David Hunt <david.hunt@intel.com> |
examples/vm_power_manager: add per-core turbo
Add extra commands to command line to allow enable/disable of per-core turbo.
When a core has turbo enabled, calling for max frequency will allow it to
examples/vm_power_manager: add per-core turbo
Add extra commands to command line to allow enable/disable of per-core turbo.
When a core has turbo enabled, calling for max frequency will allow it to go to a turbo frequency (P0n).
When a core has turbo disabled, calling for max frequency will allow it to go to the maximum non-turbo frequency (P1), but not beyond.
Signed-off-by: David Hunt <david.hunt@intel.com>
show more ...
|
#
50810f09 |
| 08-Feb-2016 |
Thomas Monjalon <thomas.monjalon@6wind.com> |
config: remove useless explicit includes of generated header
The file rte_config.h is automatically generated and included. No need to #include it.
The example performance-thread needs a makefile f
config: remove useless explicit includes of generated header
The file rte_config.h is automatically generated and included. No need to #include it.
The example performance-thread needs a makefile fix to avoid overwriting the default cflags.
Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
show more ...
|
#
fdf20fa7 |
| 19-Nov-2014 |
Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com> |
add prefix to cache line macros
CACHE_LINE_SIZE is a macro defined in machine/param.h in FreeBSD and conflicts with DPDK macro version. Adding RTE_ prefix to avoid conflicts. CACHE_LINE_MASK and CAC
add prefix to cache line macros
CACHE_LINE_SIZE is a macro defined in machine/param.h in FreeBSD and conflicts with DPDK macro version. Adding RTE_ prefix to avoid conflicts. CACHE_LINE_MASK and CACHE_LINE_ROUNDUP are also prefixed.
Signed-off-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com> [Thomas: updated on HEAD, including PPC]
show more ...
|
#
e8ae9b66 |
| 25-Nov-2014 |
Alan Carew <alan.carew@intel.com> |
examples/vm_power: channel manager and monitor in host
The manager is responsible for adding communications channels to the Monitor thread, tracking and reporting VM state and employs the libvirt AP
examples/vm_power: channel manager and monitor in host
The manager is responsible for adding communications channels to the Monitor thread, tracking and reporting VM state and employs the libvirt API for synchronization with the KVM Hypervisor. The manager interacts with the Hypervisor to discover the mapping of virtual CPUS(vCPUs) to the host physical CPUS(pCPUs) and to inspect the VM running state.
The manager provides the following functionality to the CLI: 1) Connect to a libvirtd instance, default: qemu:///system 2) Add a VM to an internal list, each VM is identified by a "name" which must correspond a valid libvirt Domain Name. 3) Add communication channels associated with a VM to the epoll based Monitor thread. The channels must exist and be in the form of: /tmp/powermonitor/<vm_name>.<channel_number>. Each channel is a Virtio-Serial endpoint configured as an AF_UNIX file socket and opened in non-blocking mode. Each VM can have a maximum of 64 channels associated with it. 4) Disable or re-enable VM communication channels, channels once added to the Monitor thread remain in that threads control, however acting on channel requests can be disabled and renabled via CLI.
The monitor is an epoll based infinite loop running in a separate thread that waits on channel events from VMs and calls the corresponding functions. Channel definitions from the manager are registered via the epoll event opaque pointer when calling epoll_ctl(EPOLL_CTL_ADD), this allows for obtaining the channels file descriptor for reading EPOLLIN events and mapping the vCPU to pCPU(s) associated with a request from a particular VM.
Signed-off-by: Alan Carew <alan.carew@intel.com> Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
show more ...
|