{"push_id":605330505,"size":2,"distinct_size":2,"ref":"refs/heads/acpica-trace","head":"bcfe1070cf4716fa44ce7de2f6f3b90bff3db3b0","before":"4f43fc39058ecf5ecb35638107aff0f2e970ecbb","commits":[{"sha":"1cf6e6c98a054e005a238625249a06c219e02771","author":{"email":"687b611ec106f085ac3db1fd0c8e91dc3509d58c@intel.com","name":"Lv Zheng"},"message":"ACPI: Add AML interpreter execution trace support.\n\nThis patch adds tracer support for ACPI AML interpreter execution.\n\nFollowing AML trace points will be logged into the trace ring buffer:\n1. Before/after a control method evaluation, and\n2. Before/after an AML opcode execution.\n\nThe example test commands are as follows:\n1. Enable the AML tracer:\n   $ mount -t debugfs nodev /sys/kernel/debug\n   $ echo acpi-aml > /sys/kernel/debug/tracing/current_tracer\n2. Trigger AML control method execution:\n   This is platform specific, for example, we can access one of the\n   following files to trigger _BST/_PSR/_LID execution:\n   $ cat /sys/class/power_supply/BAT1/present\n   $ cat /sys/class/power_supply/ACAD/online\n   $ cat /proc/acpi/button/lid/LID0/state\n   Where BAT1/ACAD/LID0 are platform specific ACPI device names.\n3. Obtain the AML tracer result:\n   $ cat /sys/kernel/debug/tracing/trace\nThe example test results are as follows:\n# tracer: acpi-aml\n#\n# entries-in-buffer/entries-written: 7/7   #P:2\n#\n#                              _-----=> irqs-off\n#                             / _----=> need-resched\n#                            | / _---=> hardirq/softirq\n#                            || / _--=> preempt-depth\n#                            ||| /     delay\n#           TASK-PID   CPU#  ||||    TIMESTAMP  FUNCTION\n#              | |       |   ||||       |         |\nACPICA REVISION 20150204\nM B 02256 000 00180.409733 \\_SB.LID0._LID 0xf8200bd1\nO B 02256 000 00180.409963 Return 0xf8200bd1\nO B 02256 000 00180.410215 -NamePath- 0xf8200bd2\nO E 02256 000 00180.410510 -NamePath- 0xf8200bd2\nO E 02256 000 00180.410948 Return 0xf8200bd1\nM E 02256 000 00180.411177 \\_SB.LID0._LID 0xf8200bd1\n\nNote that the following ACPI module parameters\n(/sys/module/acpi/parameters) can also affect the enabling and the outputs:\n1. trace_state: this must not be \"disable\".\n2. trace_debug_layer: this must contain 0x80.\n3. trace_debug_level: this must contain 0x10.\n4. trace_method_name: this can be used to filter the logged method.\n\nSigned-off-by: Lv Zheng <lv.zheng@intel.com>","distinct":true,"url":"https://api.github.com/repos/zetalog/linux/commits/1cf6e6c98a054e005a238625249a06c219e02771"},{"sha":"bcfe1070cf4716fa44ce7de2f6f3b90bff3db3b0","author":{"email":"687b611ec106f085ac3db1fd0c8e91dc3509d58c@intel.com","name":"Lv Zheng"},"message":"ACPI: Add perl scripts to parse AML trace output.\n\nThis patch adds a utility to parse AML trace output into a SVG graphic.\nNote that currently the zooming feature is not supported.\n\nSigned-off-by: Lv Zheng <lv.zheng@intel.com>","distinct":true,"url":"https://api.github.com/repos/zetalog/linux/commits/bcfe1070cf4716fa44ce7de2f6f3b90bff3db3b0"}]}