Files
kernel_common_drivers/include/linux/amlogic/watch_point.h
T
Jianxiong Pan f1fec716d4 mm: modify the watchpoint to ko. [2/2]
PD#SWPL-92714

Problem:
need modify the watchpoint to ko.

Solution:
modify the watchpoint to ko.

Verify:
sc2_ah212.

Change-Id: I26e5e451690fb557264d8bbd6bcceb7701494cc5
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2022-10-29 08:05:00 -07:00

36 lines
800 B
C

/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
/*
* Copyright (c) 2019 Amlogic, Inc. All rights reserved.
*/
#ifndef __AML_WATCH_POINT_H__
#define __AML_WATCH_POINT_H__
#include <uapi/linux/elf.h>
#include <uapi/linux/hw_breakpoint.h>
#include <linux/perf_event.h>
#define MAX_WATCH_POINTS 16
#ifdef CONFIG_HAVE_HW_BREAKPOINT
extern int aml_watch_point_register(unsigned long addr,
unsigned int len,
unsigned int type,
perf_overflow_handler_t handle);
extern void aml_watch_point_remove(unsigned long addr);
#else
static inline int aml_watch_point_register(unsigned long addr,
unsigned int len,
unsigned int type,
perf_overflow_handler_t handle)
{
return -1;
}
static inline void aml_watch_point_remove(unsigned long addr)
{
}
#endif
#endif