aboutsummaryrefslogtreecommitdiffstats
path: root/include/acpi
diff options
context:
space:
mode:
authorLv Zheng <lv.zheng@intel.com>2015-07-23 00:53:07 -0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2015-07-23 17:09:07 -0400
commitbab0482418885627babfd1a6ca4e57a809712474 (patch)
tree8e28351551ee4c308295130ef45dd25bc4ee0cb3 /include/acpi
parentab6c573320768c36ac629be3db79ad62445aae64 (diff)
ACPICA: Executer: Add OSL trace hook support
ACPICA commit e8e4a9b19d0b72a7b165398bdc961fc2f6f502ec This patch adds OSL trace hook support. OSPMs are encouraged to use acpi_os_trace_point() with ACPI_USE_SYSTEM_TRACER defined to implement platform specific trace facility. Lv Zheng. Link: https://github.com/acpica/acpica/commit/e8e4a9b1 Signed-off-by: Lv Zheng <lv.zheng@intel.com> Signed-off-by: Bob Moore <robert.moore@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/acpi')
-rw-r--r--include/acpi/acoutput.h3
-rw-r--r--include/acpi/acpiosxf.h6
-rw-r--r--include/acpi/acpixf.h5
-rw-r--r--include/acpi/actypes.h8
4 files changed, 22 insertions, 0 deletions
diff --git a/include/acpi/acoutput.h b/include/acpi/acoutput.h
index 37f46d49a74a..c3f0ac135f68 100644
--- a/include/acpi/acoutput.h
+++ b/include/acpi/acoutput.h
@@ -447,6 +447,8 @@
447#define ACPI_DUMP_PATHNAME(a, b, c, d) acpi_ns_dump_pathname(a, b, c, d) 447#define ACPI_DUMP_PATHNAME(a, b, c, d) acpi_ns_dump_pathname(a, b, c, d)
448#define ACPI_DUMP_BUFFER(a, b) acpi_ut_debug_dump_buffer((u8 *) a, b, DB_BYTE_DISPLAY, _COMPONENT) 448#define ACPI_DUMP_BUFFER(a, b) acpi_ut_debug_dump_buffer((u8 *) a, b, DB_BYTE_DISPLAY, _COMPONENT)
449 449
450#define ACPI_TRACE_POINT(a, b, c, d) acpi_trace_point (a, b, c, d)
451
450#else /* ACPI_DEBUG_OUTPUT */ 452#else /* ACPI_DEBUG_OUTPUT */
451/* 453/*
452 * This is the non-debug case -- make everything go away, 454 * This is the non-debug case -- make everything go away,
@@ -468,6 +470,7 @@
468#define ACPI_DUMP_PATHNAME(a, b, c, d) 470#define ACPI_DUMP_PATHNAME(a, b, c, d)
469#define ACPI_DUMP_BUFFER(a, b) 471#define ACPI_DUMP_BUFFER(a, b)
470#define ACPI_IS_DEBUG_ENABLED(level, component) 0 472#define ACPI_IS_DEBUG_ENABLED(level, component) 0
473#define ACPI_TRACE_POINT(a, b, c, d)
471 474
472/* Return macros must have a return statement at the minimum */ 475/* Return macros must have a return statement at the minimum */
473 476
diff --git a/include/acpi/acpiosxf.h b/include/acpi/acpiosxf.h
index d02df0a49d98..a54ad1cc990c 100644
--- a/include/acpi/acpiosxf.h
+++ b/include/acpi/acpiosxf.h
@@ -430,4 +430,10 @@ long acpi_os_get_file_offset(ACPI_FILE file);
430acpi_status acpi_os_set_file_offset(ACPI_FILE file, long offset, u8 from); 430acpi_status acpi_os_set_file_offset(ACPI_FILE file, long offset, u8 from);
431#endif 431#endif
432 432
433#ifndef ACPI_USE_ALTERNATE_PROTOTYPE_acpi_os_trace_point
434void
435acpi_os_trace_point(acpi_trace_event_type type,
436 u8 begin, u8 *aml, char *pathname);
437#endif
438
433#endif /* __ACPIOSXF_H__ */ 439#endif /* __ACPIOSXF_H__ */
diff --git a/include/acpi/acpixf.h b/include/acpi/acpixf.h
index 9c362cf14264..9aa27a3e3716 100644
--- a/include/acpi/acpixf.h
+++ b/include/acpi/acpixf.h
@@ -909,6 +909,11 @@ ACPI_DBG_DEPENDENT_RETURN_VOID(ACPI_PRINTF_LIKE(6)
909 const char *module_name, 909 const char *module_name,
910 u32 component_id, 910 u32 component_id,
911 const char *format, ...)) 911 const char *format, ...))
912
913ACPI_DBG_DEPENDENT_RETURN_VOID(void
914 acpi_trace_point(acpi_trace_event_type type,
915 u8 begin,
916 u8 *aml, char *pathname))
912ACPI_APP_DEPENDENT_RETURN_VOID(ACPI_PRINTF_LIKE(1) 917ACPI_APP_DEPENDENT_RETURN_VOID(ACPI_PRINTF_LIKE(1)
913 void ACPI_INTERNAL_VAR_XFACE 918 void ACPI_INTERNAL_VAR_XFACE
914 acpi_log_error(const char *format, ...)) 919 acpi_log_error(const char *format, ...))
diff --git a/include/acpi/actypes.h b/include/acpi/actypes.h
index 0f3913f9a377..531eca49edd4 100644
--- a/include/acpi/actypes.h
+++ b/include/acpi/actypes.h
@@ -1247,6 +1247,14 @@ struct acpi_memory_list {
1247#endif 1247#endif
1248}; 1248};
1249 1249
1250/* Definitions of trace event types */
1251
1252typedef enum {
1253 ACPI_TRACE_AML_METHOD,
1254 ACPI_TRACE_AML_OPCODE,
1255 ACPI_TRACE_AML_REGION
1256} acpi_trace_event_type;
1257
1250/* Definitions of _OSI support */ 1258/* Definitions of _OSI support */
1251 1259
1252#define ACPI_VENDOR_STRINGS 0x01 1260#define ACPI_VENDOR_STRINGS 0x01