2c1bbab7f0
The patch changes rx_burst profiling approach: 1. VTune's instrumentation is removed 2. empty hook callback for profiling is added This way all VTune-specific logic moves to the VTune side. Hook is enabled only when CONFIG_RTE_ETHDEV_PROFILE_WITH_VTUNE option is turned on. VTune uses this hook to attach to the polling cycle. It is not possible to attach to the rx_burst directly, as it is inline. Signed-off-by: Ilia Kurakin <ilia.kurakin@intel.com> Acked-by: Keith Wiles <keith.wiles@intel.com> Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
28 lines
638 B
C
28 lines
638 B
C
/* SPDX-License-Identifier: BSD-3-Clause
|
|
* Copyright(c) 2010-2018 Intel Corporation
|
|
*/
|
|
|
|
#ifndef _RTE_ETHDEV_PROFILE_H_
|
|
#define _RTE_ETHDEV_PROFILE_H_
|
|
|
|
#include "rte_ethdev.h"
|
|
|
|
/**
|
|
* Initialization of the Ethernet device profiling.
|
|
* Implementation of this function depends on chosen profiling method,
|
|
* defined in configs.
|
|
*
|
|
* @param port_id
|
|
* The port identifier of the Ethernet device.
|
|
* @param dev
|
|
* Pointer to struct rte_eth_dev corresponding to given port_id.
|
|
*
|
|
* @return
|
|
* - On success, zero.
|
|
* - On failure, a negative value.
|
|
*/
|
|
int
|
|
__rte_eth_dev_profile_init(uint16_t port_id, struct rte_eth_dev *dev);
|
|
|
|
#endif
|