1291333Sjkim/****************************************************************************** 2291333Sjkim * 3291333Sjkim * Module Name: extrace - Support for interpreter execution tracing 4291333Sjkim * 5291333Sjkim *****************************************************************************/ 6291333Sjkim 7316303Sjkim/****************************************************************************** 8316303Sjkim * 9316303Sjkim * 1. Copyright Notice 10316303Sjkim * 11316303Sjkim * Some or all of this work - Copyright (c) 1999 - 2017, Intel Corp. 12291333Sjkim * All rights reserved. 13291333Sjkim * 14316303Sjkim * 2. License 15316303Sjkim * 16316303Sjkim * 2.1. This is your license from Intel Corp. under its intellectual property 17316303Sjkim * rights. You may have additional license terms from the party that provided 18316303Sjkim * you this software, covering your right to use that party's intellectual 19316303Sjkim * property rights. 20316303Sjkim * 21316303Sjkim * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a 22316303Sjkim * copy of the source code appearing in this file ("Covered Code") an 23316303Sjkim * irrevocable, perpetual, worldwide license under Intel's copyrights in the 24316303Sjkim * base code distributed originally by Intel ("Original Intel Code") to copy, 25316303Sjkim * make derivatives, distribute, use and display any portion of the Covered 26316303Sjkim * Code in any form, with the right to sublicense such rights; and 27316303Sjkim * 28316303Sjkim * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent 29316303Sjkim * license (with the right to sublicense), under only those claims of Intel 30316303Sjkim * patents that are infringed by the Original Intel Code, to make, use, sell, 31316303Sjkim * offer to sell, and import the Covered Code and derivative works thereof 32316303Sjkim * solely to the minimum extent necessary to exercise the above copyright 33316303Sjkim * license, and in no event shall the patent license extend to any additions 34316303Sjkim * to or modifications of the Original Intel Code. No other license or right 35316303Sjkim * is granted directly or by implication, estoppel or otherwise; 36316303Sjkim * 37316303Sjkim * The above copyright and patent license is granted only if the following 38316303Sjkim * conditions are met: 39316303Sjkim * 40316303Sjkim * 3. Conditions 41316303Sjkim * 42316303Sjkim * 3.1. Redistribution of Source with Rights to Further Distribute Source. 43316303Sjkim * Redistribution of source code of any substantial portion of the Covered 44316303Sjkim * Code or modification with rights to further distribute source must include 45316303Sjkim * the above Copyright Notice, the above License, this list of Conditions, 46316303Sjkim * and the following Disclaimer and Export Compliance provision. In addition, 47316303Sjkim * Licensee must cause all Covered Code to which Licensee contributes to 48316303Sjkim * contain a file documenting the changes Licensee made to create that Covered 49316303Sjkim * Code and the date of any change. Licensee must include in that file the 50316303Sjkim * documentation of any changes made by any predecessor Licensee. Licensee 51316303Sjkim * must include a prominent statement that the modification is derived, 52316303Sjkim * directly or indirectly, from Original Intel Code. 53316303Sjkim * 54316303Sjkim * 3.2. Redistribution of Source with no Rights to Further Distribute Source. 55316303Sjkim * Redistribution of source code of any substantial portion of the Covered 56316303Sjkim * Code or modification without rights to further distribute source must 57316303Sjkim * include the following Disclaimer and Export Compliance provision in the 58316303Sjkim * documentation and/or other materials provided with distribution. In 59316303Sjkim * addition, Licensee may not authorize further sublicense of source of any 60316303Sjkim * portion of the Covered Code, and must include terms to the effect that the 61316303Sjkim * license from Licensee to its licensee is limited to the intellectual 62316303Sjkim * property embodied in the software Licensee provides to its licensee, and 63316303Sjkim * not to intellectual property embodied in modifications its licensee may 64316303Sjkim * make. 65316303Sjkim * 66316303Sjkim * 3.3. Redistribution of Executable. Redistribution in executable form of any 67316303Sjkim * substantial portion of the Covered Code or modification must reproduce the 68316303Sjkim * above Copyright Notice, and the following Disclaimer and Export Compliance 69316303Sjkim * provision in the documentation and/or other materials provided with the 70316303Sjkim * distribution. 71316303Sjkim * 72316303Sjkim * 3.4. Intel retains all right, title, and interest in and to the Original 73316303Sjkim * Intel Code. 74316303Sjkim * 75316303Sjkim * 3.5. Neither the name Intel nor any other trademark owned or controlled by 76316303Sjkim * Intel shall be used in advertising or otherwise to promote the sale, use or 77316303Sjkim * other dealings in products derived from or relating to the Covered Code 78316303Sjkim * without prior written authorization from Intel. 79316303Sjkim * 80316303Sjkim * 4. Disclaimer and Export Compliance 81316303Sjkim * 82316303Sjkim * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED 83316303Sjkim * HERE. ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE 84316303Sjkim * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT, ASSISTANCE, 85316303Sjkim * INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY 86316303Sjkim * UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY 87316303Sjkim * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A 88316303Sjkim * PARTICULAR PURPOSE. 89316303Sjkim * 90316303Sjkim * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES 91316303Sjkim * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR 92316303Sjkim * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT, 93316303Sjkim * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY 94316303Sjkim * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL 95316303Sjkim * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. THESE LIMITATIONS 96316303Sjkim * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY 97316303Sjkim * LIMITED REMEDY. 98316303Sjkim * 99316303Sjkim * 4.3. Licensee shall not export, either directly or indirectly, any of this 100316303Sjkim * software or system incorporating such software without first obtaining any 101316303Sjkim * required license or other approval from the U. S. Department of Commerce or 102316303Sjkim * any other agency or department of the United States Government. In the 103316303Sjkim * event Licensee exports any such software from the United States or 104316303Sjkim * re-exports any such software from a foreign destination, Licensee shall 105316303Sjkim * ensure that the distribution and export/re-export of the software is in 106316303Sjkim * compliance with all laws, regulations, orders, or other restrictions of the 107316303Sjkim * U.S. Export Administration Regulations. Licensee agrees that neither it nor 108316303Sjkim * any of its subsidiaries will export/re-export any technical data, process, 109316303Sjkim * software, or service, directly or indirectly, to any country for which the 110316303Sjkim * United States government or any agency thereof requires an export license, 111316303Sjkim * other governmental approval, or letter of assurance, without first obtaining 112316303Sjkim * such license, approval or letter. 113316303Sjkim * 114316303Sjkim ***************************************************************************** 115316303Sjkim * 116316303Sjkim * Alternatively, you may choose to be licensed under the terms of the 117316303Sjkim * following license: 118316303Sjkim * 119291333Sjkim * Redistribution and use in source and binary forms, with or without 120291333Sjkim * modification, are permitted provided that the following conditions 121291333Sjkim * are met: 122291333Sjkim * 1. Redistributions of source code must retain the above copyright 123291333Sjkim * notice, this list of conditions, and the following disclaimer, 124291333Sjkim * without modification. 125291333Sjkim * 2. Redistributions in binary form must reproduce at minimum a disclaimer 126291333Sjkim * substantially similar to the "NO WARRANTY" disclaimer below 127291333Sjkim * ("Disclaimer") and any redistribution must be conditioned upon 128291333Sjkim * including a substantially similar Disclaimer requirement for further 129291333Sjkim * binary redistribution. 130291333Sjkim * 3. Neither the names of the above-listed copyright holders nor the names 131291333Sjkim * of any contributors may be used to endorse or promote products derived 132291333Sjkim * from this software without specific prior written permission. 133291333Sjkim * 134316303Sjkim * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 135316303Sjkim * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 136316303Sjkim * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 137316303Sjkim * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 138316303Sjkim * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 139316303Sjkim * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 140316303Sjkim * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 141316303Sjkim * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 142316303Sjkim * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 143316303Sjkim * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 144316303Sjkim * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 145316303Sjkim * 146316303Sjkim * Alternatively, you may choose to be licensed under the terms of the 147291333Sjkim * GNU General Public License ("GPL") version 2 as published by the Free 148291333Sjkim * Software Foundation. 149291333Sjkim * 150316303Sjkim *****************************************************************************/ 151291333Sjkim 152298714Sjkim#include <contrib/dev/acpica/include/acpi.h> 153298714Sjkim#include <contrib/dev/acpica/include/accommon.h> 154298714Sjkim#include <contrib/dev/acpica/include/acnamesp.h> 155298714Sjkim#include <contrib/dev/acpica/include/acinterp.h> 156291333Sjkim 157291333Sjkim 158291333Sjkim#define _COMPONENT ACPI_EXECUTER 159291333Sjkim ACPI_MODULE_NAME ("extrace") 160291333Sjkim 161291333Sjkim 162291333Sjkimstatic ACPI_OPERAND_OBJECT *AcpiGbl_TraceMethodObject = NULL; 163291333Sjkim 164291333Sjkim/* Local prototypes */ 165291333Sjkim 166291333Sjkim#ifdef ACPI_DEBUG_OUTPUT 167291333Sjkimstatic const char * 168291333SjkimAcpiExGetTraceEventName ( 169291333Sjkim ACPI_TRACE_EVENT_TYPE Type); 170291333Sjkim#endif 171291333Sjkim 172291333Sjkim 173291333Sjkim/******************************************************************************* 174291333Sjkim * 175291333Sjkim * FUNCTION: AcpiExInterpreterTraceEnabled 176291333Sjkim * 177291333Sjkim * PARAMETERS: Name - Whether method name should be matched, 178291333Sjkim * this should be checked before starting 179291333Sjkim * the tracer 180291333Sjkim * 181291333Sjkim * RETURN: TRUE if interpreter trace is enabled. 182291333Sjkim * 183291333Sjkim * DESCRIPTION: Check whether interpreter trace is enabled 184291333Sjkim * 185291333Sjkim ******************************************************************************/ 186291333Sjkim 187291333Sjkimstatic BOOLEAN 188291333SjkimAcpiExInterpreterTraceEnabled ( 189291333Sjkim char *Name) 190291333Sjkim{ 191291333Sjkim 192291333Sjkim /* Check if tracing is enabled */ 193291333Sjkim 194291333Sjkim if (!(AcpiGbl_TraceFlags & ACPI_TRACE_ENABLED)) 195291333Sjkim { 196291333Sjkim return (FALSE); 197291333Sjkim } 198291333Sjkim 199291333Sjkim /* 200291333Sjkim * Check if tracing is filtered: 201291333Sjkim * 202291333Sjkim * 1. If the tracer is started, AcpiGbl_TraceMethodObject should have 203291333Sjkim * been filled by the trace starter 204291333Sjkim * 2. If the tracer is not started, AcpiGbl_TraceMethodName should be 205291333Sjkim * matched if it is specified 206291333Sjkim * 3. If the tracer is oneshot style, AcpiGbl_TraceMethodName should 207291333Sjkim * not be cleared by the trace stopper during the first match 208291333Sjkim */ 209291333Sjkim if (AcpiGbl_TraceMethodObject) 210291333Sjkim { 211291333Sjkim return (TRUE); 212291333Sjkim } 213291333Sjkim 214291333Sjkim if (Name && 215291333Sjkim (AcpiGbl_TraceMethodName && 216291333Sjkim strcmp (AcpiGbl_TraceMethodName, Name))) 217291333Sjkim { 218291333Sjkim return (FALSE); 219291333Sjkim } 220291333Sjkim 221291333Sjkim if ((AcpiGbl_TraceFlags & ACPI_TRACE_ONESHOT) && 222291333Sjkim !AcpiGbl_TraceMethodName) 223291333Sjkim { 224291333Sjkim return (FALSE); 225291333Sjkim } 226291333Sjkim 227291333Sjkim return (TRUE); 228291333Sjkim} 229291333Sjkim 230291333Sjkim 231291333Sjkim/******************************************************************************* 232291333Sjkim * 233291333Sjkim * FUNCTION: AcpiExGetTraceEventName 234291333Sjkim * 235291333Sjkim * PARAMETERS: Type - Trace event type 236291333Sjkim * 237291333Sjkim * RETURN: Trace event name. 238291333Sjkim * 239291333Sjkim * DESCRIPTION: Used to obtain the full trace event name. 240291333Sjkim * 241291333Sjkim ******************************************************************************/ 242291333Sjkim 243291333Sjkim#ifdef ACPI_DEBUG_OUTPUT 244291333Sjkim 245291333Sjkimstatic const char * 246291333SjkimAcpiExGetTraceEventName ( 247291333Sjkim ACPI_TRACE_EVENT_TYPE Type) 248291333Sjkim{ 249291333Sjkim 250291333Sjkim switch (Type) 251291333Sjkim { 252291333Sjkim case ACPI_TRACE_AML_METHOD: 253291333Sjkim 254291333Sjkim return "Method"; 255291333Sjkim 256291333Sjkim case ACPI_TRACE_AML_OPCODE: 257291333Sjkim 258291333Sjkim return "Opcode"; 259291333Sjkim 260291333Sjkim case ACPI_TRACE_AML_REGION: 261291333Sjkim 262291333Sjkim return "Region"; 263291333Sjkim 264291333Sjkim default: 265291333Sjkim 266291333Sjkim return ""; 267291333Sjkim } 268291333Sjkim} 269291333Sjkim 270291333Sjkim#endif 271291333Sjkim 272291333Sjkim 273291333Sjkim/******************************************************************************* 274291333Sjkim * 275291333Sjkim * FUNCTION: AcpiExTracePoint 276291333Sjkim * 277291333Sjkim * PARAMETERS: Type - Trace event type 278291333Sjkim * Begin - TRUE if before execution 279291333Sjkim * Aml - Executed AML address 280291333Sjkim * Pathname - Object path 281291333Sjkim * 282291333Sjkim * RETURN: None 283291333Sjkim * 284291333Sjkim * DESCRIPTION: Internal interpreter execution trace. 285291333Sjkim * 286291333Sjkim ******************************************************************************/ 287291333Sjkim 288291333Sjkimvoid 289291333SjkimAcpiExTracePoint ( 290291333Sjkim ACPI_TRACE_EVENT_TYPE Type, 291291333Sjkim BOOLEAN Begin, 292291333Sjkim UINT8 *Aml, 293291333Sjkim char *Pathname) 294291333Sjkim{ 295291333Sjkim 296291333Sjkim ACPI_FUNCTION_NAME (ExTracePoint); 297291333Sjkim 298291333Sjkim 299291333Sjkim if (Pathname) 300291333Sjkim { 301291333Sjkim ACPI_DEBUG_PRINT ((ACPI_DB_TRACE_POINT, 302291333Sjkim "%s %s [0x%p:%s] execution.\n", 303291333Sjkim AcpiExGetTraceEventName (Type), Begin ? "Begin" : "End", 304291333Sjkim Aml, Pathname)); 305291333Sjkim } 306291333Sjkim else 307291333Sjkim { 308291333Sjkim ACPI_DEBUG_PRINT ((ACPI_DB_TRACE_POINT, 309291333Sjkim "%s %s [0x%p] execution.\n", 310291333Sjkim AcpiExGetTraceEventName (Type), Begin ? "Begin" : "End", 311291333Sjkim Aml)); 312291333Sjkim } 313291333Sjkim} 314291333Sjkim 315291333Sjkim 316291333Sjkim/******************************************************************************* 317291333Sjkim * 318291333Sjkim * FUNCTION: AcpiExStartTraceMethod 319291333Sjkim * 320291333Sjkim * PARAMETERS: MethodNode - Node of the method 321291333Sjkim * ObjDesc - The method object 322291333Sjkim * WalkState - current state, NULL if not yet executing 323291333Sjkim * a method. 324291333Sjkim * 325291333Sjkim * RETURN: None 326291333Sjkim * 327291333Sjkim * DESCRIPTION: Start control method execution trace 328291333Sjkim * 329291333Sjkim ******************************************************************************/ 330291333Sjkim 331291333Sjkimvoid 332291333SjkimAcpiExStartTraceMethod ( 333291333Sjkim ACPI_NAMESPACE_NODE *MethodNode, 334291333Sjkim ACPI_OPERAND_OBJECT *ObjDesc, 335291333Sjkim ACPI_WALK_STATE *WalkState) 336291333Sjkim{ 337291333Sjkim char *Pathname = NULL; 338291333Sjkim BOOLEAN Enabled = FALSE; 339291333Sjkim 340291333Sjkim 341291333Sjkim ACPI_FUNCTION_NAME (ExStartTraceMethod); 342291333Sjkim 343291333Sjkim 344291333Sjkim if (MethodNode) 345291333Sjkim { 346291333Sjkim Pathname = AcpiNsGetNormalizedPathname (MethodNode, TRUE); 347291333Sjkim } 348291333Sjkim 349291333Sjkim Enabled = AcpiExInterpreterTraceEnabled (Pathname); 350291333Sjkim if (Enabled && !AcpiGbl_TraceMethodObject) 351291333Sjkim { 352291333Sjkim AcpiGbl_TraceMethodObject = ObjDesc; 353291333Sjkim AcpiGbl_OriginalDbgLevel = AcpiDbgLevel; 354291333Sjkim AcpiGbl_OriginalDbgLayer = AcpiDbgLayer; 355291333Sjkim AcpiDbgLevel = ACPI_TRACE_LEVEL_ALL; 356291333Sjkim AcpiDbgLayer = ACPI_TRACE_LAYER_ALL; 357291333Sjkim 358291333Sjkim if (AcpiGbl_TraceDbgLevel) 359291333Sjkim { 360291333Sjkim AcpiDbgLevel = AcpiGbl_TraceDbgLevel; 361291333Sjkim } 362291333Sjkim 363291333Sjkim if (AcpiGbl_TraceDbgLayer) 364291333Sjkim { 365291333Sjkim AcpiDbgLayer = AcpiGbl_TraceDbgLayer; 366291333Sjkim } 367291333Sjkim } 368291333Sjkim 369291333Sjkim if (Enabled) 370291333Sjkim { 371291333Sjkim ACPI_TRACE_POINT (ACPI_TRACE_AML_METHOD, TRUE, 372291333Sjkim ObjDesc ? ObjDesc->Method.AmlStart : NULL, Pathname); 373291333Sjkim } 374291333Sjkim 375291333Sjkim if (Pathname) 376291333Sjkim { 377291333Sjkim ACPI_FREE (Pathname); 378291333Sjkim } 379291333Sjkim} 380291333Sjkim 381291333Sjkim 382291333Sjkim/******************************************************************************* 383291333Sjkim * 384291333Sjkim * FUNCTION: AcpiExStopTraceMethod 385291333Sjkim * 386291333Sjkim * PARAMETERS: MethodNode - Node of the method 387291333Sjkim * ObjDesc - The method object 388291333Sjkim * WalkState - current state, NULL if not yet executing 389291333Sjkim * a method. 390291333Sjkim * 391291333Sjkim * RETURN: None 392291333Sjkim * 393291333Sjkim * DESCRIPTION: Stop control method execution trace 394291333Sjkim * 395291333Sjkim ******************************************************************************/ 396291333Sjkim 397291333Sjkimvoid 398291333SjkimAcpiExStopTraceMethod ( 399291333Sjkim ACPI_NAMESPACE_NODE *MethodNode, 400291333Sjkim ACPI_OPERAND_OBJECT *ObjDesc, 401291333Sjkim ACPI_WALK_STATE *WalkState) 402291333Sjkim{ 403291333Sjkim char *Pathname = NULL; 404291333Sjkim BOOLEAN Enabled; 405291333Sjkim 406291333Sjkim 407291333Sjkim ACPI_FUNCTION_NAME (ExStopTraceMethod); 408291333Sjkim 409291333Sjkim 410291333Sjkim if (MethodNode) 411291333Sjkim { 412291333Sjkim Pathname = AcpiNsGetNormalizedPathname (MethodNode, TRUE); 413291333Sjkim } 414291333Sjkim 415291333Sjkim Enabled = AcpiExInterpreterTraceEnabled (NULL); 416291333Sjkim 417291333Sjkim if (Enabled) 418291333Sjkim { 419291333Sjkim ACPI_TRACE_POINT (ACPI_TRACE_AML_METHOD, FALSE, 420291333Sjkim ObjDesc ? ObjDesc->Method.AmlStart : NULL, Pathname); 421291333Sjkim } 422291333Sjkim 423291333Sjkim /* Check whether the tracer should be stopped */ 424291333Sjkim 425291333Sjkim if (AcpiGbl_TraceMethodObject == ObjDesc) 426291333Sjkim { 427291333Sjkim /* Disable further tracing if type is one-shot */ 428291333Sjkim 429291333Sjkim if (AcpiGbl_TraceFlags & ACPI_TRACE_ONESHOT) 430291333Sjkim { 431291333Sjkim AcpiGbl_TraceMethodName = NULL; 432291333Sjkim } 433291333Sjkim 434291333Sjkim AcpiDbgLevel = AcpiGbl_OriginalDbgLevel; 435291333Sjkim AcpiDbgLayer = AcpiGbl_OriginalDbgLayer; 436291333Sjkim AcpiGbl_TraceMethodObject = NULL; 437291333Sjkim } 438291333Sjkim 439291333Sjkim if (Pathname) 440291333Sjkim { 441291333Sjkim ACPI_FREE (Pathname); 442291333Sjkim } 443291333Sjkim} 444291333Sjkim 445291333Sjkim 446291333Sjkim/******************************************************************************* 447291333Sjkim * 448291333Sjkim * FUNCTION: AcpiExStartTraceOpcode 449291333Sjkim * 450291333Sjkim * PARAMETERS: Op - The parser opcode object 451291333Sjkim * WalkState - current state, NULL if not yet executing 452291333Sjkim * a method. 453291333Sjkim * 454291333Sjkim * RETURN: None 455291333Sjkim * 456291333Sjkim * DESCRIPTION: Start opcode execution trace 457291333Sjkim * 458291333Sjkim ******************************************************************************/ 459291333Sjkim 460291333Sjkimvoid 461291333SjkimAcpiExStartTraceOpcode ( 462291333Sjkim ACPI_PARSE_OBJECT *Op, 463291333Sjkim ACPI_WALK_STATE *WalkState) 464291333Sjkim{ 465291333Sjkim 466291333Sjkim ACPI_FUNCTION_NAME (ExStartTraceOpcode); 467291333Sjkim 468291333Sjkim 469291333Sjkim if (AcpiExInterpreterTraceEnabled (NULL) && 470291333Sjkim (AcpiGbl_TraceFlags & ACPI_TRACE_OPCODE)) 471291333Sjkim { 472291333Sjkim ACPI_TRACE_POINT (ACPI_TRACE_AML_OPCODE, TRUE, 473291333Sjkim Op->Common.Aml, Op->Common.AmlOpName); 474291333Sjkim } 475291333Sjkim} 476291333Sjkim 477291333Sjkim 478291333Sjkim/******************************************************************************* 479291333Sjkim * 480291333Sjkim * FUNCTION: AcpiExStopTraceOpcode 481291333Sjkim * 482291333Sjkim * PARAMETERS: Op - The parser opcode object 483291333Sjkim * WalkState - current state, NULL if not yet executing 484291333Sjkim * a method. 485291333Sjkim * 486291333Sjkim * RETURN: None 487291333Sjkim * 488291333Sjkim * DESCRIPTION: Stop opcode execution trace 489291333Sjkim * 490291333Sjkim ******************************************************************************/ 491291333Sjkim 492291333Sjkimvoid 493291333SjkimAcpiExStopTraceOpcode ( 494291333Sjkim ACPI_PARSE_OBJECT *Op, 495291333Sjkim ACPI_WALK_STATE *WalkState) 496291333Sjkim{ 497291333Sjkim 498291333Sjkim ACPI_FUNCTION_NAME (ExStopTraceOpcode); 499291333Sjkim 500291333Sjkim 501291333Sjkim if (AcpiExInterpreterTraceEnabled (NULL) && 502291333Sjkim (AcpiGbl_TraceFlags & ACPI_TRACE_OPCODE)) 503291333Sjkim { 504291333Sjkim ACPI_TRACE_POINT (ACPI_TRACE_AML_OPCODE, FALSE, 505291333Sjkim Op->Common.Aml, Op->Common.AmlOpName); 506291333Sjkim } 507291333Sjkim} 508