Skip to content

Commit

Permalink
ACPICA: Executer: Add option to bypass opcode tracing
Browse files Browse the repository at this point in the history
ACPICA commit 61e9e20aadfaa03184d0959fbdc1fa5cdfea2551

This patch adds option to bypass opcode tracing. The option can be used to
reduce the trace message output. Lv Zheng.

Link: https://github.com/acpica/acpica/commit/61e9e20a
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>
  • Loading branch information
Lv Zheng authored and Rafael J. Wysocki committed Jul 23, 2015
1 parent bab0482 commit fb18e8f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 4 additions & 2 deletions drivers/acpi/acpica/exdebug.c
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,8 @@ acpi_ex_start_trace_opcode(union acpi_parse_object *op,

ACPI_FUNCTION_NAME(ex_start_trace_opcode);

if (acpi_ex_interpreter_trace_enabled(NULL)) {
if (acpi_ex_interpreter_trace_enabled(NULL) &&
(acpi_gbl_trace_flags & ACPI_TRACE_OPCODE)) {
ACPI_TRACE_POINT(ACPI_TRACE_AML_OPCODE, TRUE,
op->common.aml, op->common.aml_op_name);
}
Expand All @@ -625,7 +626,8 @@ acpi_ex_stop_trace_opcode(union acpi_parse_object *op,

ACPI_FUNCTION_NAME(ex_stop_trace_opcode);

if (acpi_ex_interpreter_trace_enabled(NULL)) {
if (acpi_ex_interpreter_trace_enabled(NULL) &&
(acpi_gbl_trace_flags & ACPI_TRACE_OPCODE)) {
ACPI_TRACE_POINT(ACPI_TRACE_AML_OPCODE, FALSE,
op->common.aml, op->common.aml_op_name);
}
Expand Down
5 changes: 3 additions & 2 deletions include/acpi/acoutput.h
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,9 @@
/*
* Global trace flags
*/
#define ACPI_TRACE_ENABLED ((u32) 2)
#define ACPI_TRACE_ONESHOT ((u32) 1)
#define ACPI_TRACE_ENABLED ((u32) 4)
#define ACPI_TRACE_ONESHOT ((u32) 2)
#define ACPI_TRACE_OPCODE ((u32) 1)

/* Defaults for trace debugging level/layer */

Expand Down

0 comments on commit fb18e8f

Please sign in to comment.