nuttx/drivers/segger/config/SEGGER_SYSVIEW_Conf.h
wangming9 a7fc26124d arch/arm64: the arm64 perf interface supports pmu
Summary:
- Support arm64 pmu api, Currently only the cycle counter function is supported.
- Using ARM64 PMU hardware capability to implement perf interface, modify all
  perf interface related code.
- Support for pmu init under smp.

Signed-off-by: wangming9 <wangming9@xiaomi.com>
2023-04-10 16:23:49 -03:00

84 lines
3.0 KiB
C

/****************************************************************************
* drivers/segger/config/SEGGER_SYSVIEW_Conf.h
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
* ASF licenses this file to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the
* License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
****************************************************************************/
#ifndef __DRIVERS_SEGGER_CONFIG_SEGGER_SYSVIEW_CONF_H
#define __DRIVERS_SEGGER_CONFIG_SEGGER_SYSVIEW_CONF_H
/****************************************************************************
* Included Files
****************************************************************************/
#include <nuttx/config.h>
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
/* Function macro to retrieve the Id of the currently active interrupt.
* Call user-supplied function SEGGER_SYSVIEW_X_GetInterruptId().
*/
#define SEGGER_SYSVIEW_GET_INTERRUPT_ID note_sysview_get_interrupt_id
/* Function macro to retrieve a system timestamp for SYSVIEW events.
* Call user-supplied function SEGGER_SYSVIEW_X_GetTimestamp().
*/
#define SEGGER_SYSVIEW_GET_TIMESTAMP note_sysview_get_timestamp
/* The RTT channel that SystemView will use. */
#define SEGGER_SYSVIEW_RTT_CHANNEL CONFIG_SEGGER_SYSVIEW_RTT_CHANNEL
/* Number of bytes that SystemView uses for the RTT buffer. */
#define SEGGER_SYSVIEW_RTT_BUFFER_SIZE CONFIG_SEGGER_SYSVIEW_RTT_BUFFER_SIZE
/* Largest cache line size (in bytes) in the target system. */
#define SEGGER_SYSVIEW_CPU_CACHE_LINE_SIZE CONFIG_SEGGER_RTT_CPU_CACHE_LINE_SIZE
/****************************************************************************
* Public Data
****************************************************************************/
#undef EXTERN
#if defined(__cplusplus)
#define EXTERN extern "C"
extern "C"
{
#else
#define EXTERN extern
#endif
/****************************************************************************
* Public Function Prototypes
****************************************************************************/
unsigned int note_sysview_get_interrupt_id(void);
unsigned long note_sysview_get_timestamp(void);
#undef EXTERN
#if defined(__cplusplus)
}
#endif
#endif /* __DRIVERS_SEGGER_CONFIG_SEGGER_SYSVIEW_CONF_H */