/* * intel_pt_insn_decoder.h: Intel Processor Trace support * Copyright (c) 2013-2014, Intel Corporation. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, * version 2, as published by the Free Software Foundation. * * This program is distributed in the hope it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. * */ #ifndef INCLUDE__INTEL_PT_INSN_DECODER_H__ #define INCLUDE__INTEL_PT_INSN_DECODER_H__ #include <stddef.h> #include <stdint.h> #define INTEL_PT_INSN_DESC_MAX 32 #define INTEL_PT_INSN_BUF_SZ 16 enum intel_pt_insn_op { INTEL_PT_OP_OTHER, INTEL_PT_OP_CALL, INTEL_PT_OP_RET, INTEL_PT_OP_JCC, INTEL_PT_OP_JMP, INTEL_PT_OP_LOOP, INTEL_PT_OP_IRET, INTEL_PT_OP_INT, INTEL_PT_OP_SYSCALL, INTEL_PT_OP_SYSRET, }; enum intel_pt_insn_branch { INTEL_PT_BR_NO_BRANCH, INTEL_PT_BR_INDIRECT, INTEL_PT_BR_CONDITIONAL, INTEL_PT_BR_UNCONDITIONAL, }; struct intel_pt_insn { enum intel_pt_insn_op op; enum intel_pt_insn_branch branch; int length; int32_t rel; unsigned char buf[INTEL_PT_INSN_BUF_SZ]; }; int intel_pt_get_insn(const unsigned char *buf, size_t len, int x86_64, struct intel_pt_insn *intel_pt_insn); const char *intel_pt_insn_name(enum intel_pt_insn_op op); int intel_pt_insn_desc(const struct intel_pt_insn *intel_pt_insn, char *buf, size_t buf_len); int intel_pt_insn_type(enum intel_pt_insn_op op); #endif d649aa2e167c3f97f62bdad07e3f84'>refs</a><a href='/cgit.cgi/linux/net-next.git/log/tools/testing/selftests/filesystems'>log</a><a href='/cgit.cgi/linux/net-next.git/tree/tools/testing/selftests/filesystems?id=24d615a694d649aa2e167c3f97f62bdad07e3f84'>tree</a><a class='active' href='/cgit.cgi/linux/net-next.git/commit/tools/testing/selftests/filesystems?id=24d615a694d649aa2e167c3f97f62bdad07e3f84'>commit</a><a href='/cgit.cgi/linux/net-next.git/diff/tools/testing/selftests/filesystems?id=24d615a694d649aa2e167c3f97f62bdad07e3f84'>diff</a></td><td class='form'><form class='right' method='get' action='/cgit.cgi/linux/net-next.git/log/tools/testing/selftests/filesystems'> <input type='hidden' name='id' value='24d615a694d649aa2e167c3f97f62bdad07e3f84'/><select name='qt'> <option value='grep'>log msg</option> <option value='author'>author</option> <option value='committer'>committer</option> <option value='range'>range</option> </select> <input class='txt' type='search' size='10' name='q' value=''/> <input type='submit' value='search'/> </form> </td></tr></table> <div class='path'>path: <a href='/cgit.cgi/linux/net-next.git/commit/?id=24d615a694d649aa2e167c3f97f62bdad07e3f84'>root</a>/<a href='/cgit.cgi/linux/net-next.git/commit/tools?id=24d615a694d649aa2e167c3f97f62bdad07e3f84'>tools</a>/<a href='/cgit.cgi/linux/net-next.git/commit/tools/testing?id=24d615a694d649aa2e167c3f97f62bdad07e3f84'>testing</a>/<a href='/cgit.cgi/linux/net-next.git/commit/tools/testing/selftests?id=24d615a694d649aa2e167c3f97f62bdad07e3f84'>selftests</a>/<a href='/cgit.cgi/linux/net-next.git/commit/tools/testing/selftests/filesystems?id=24d615a694d649aa2e167c3f97f62bdad07e3f84'>filesystems</a></div><div class='content'><div class='cgit-panel'><b>diff options</b><form method='get'><input type='hidden' name='id' value='24d615a694d649aa2e167c3f97f62bdad07e3f84'/><table><tr><td colspan='2'/></tr><tr><td class='label'>context:</td><td class='ctrl'><select name='context' onchange='this.form.submit();'><option value='1'>1</option><option value='2'>2</option><option value='3' selected='selected'>3</option><option value='4'>4</option><option value='5'>5</option><option value='6'>6</option><option value='7'>7</option><option value='8'>8</option><option value='9'>9</option><option value='10'>10</option><option value='15'>15</option><option value='20'>20</option><option value='25'>25</option><option value='30'>30</option><option value='35'>35</option><option value='40'>40</option></select></td></tr><tr><td class='label'>space:</td><td class='ctrl'><select name='ignorews' onchange='this.form.submit();'><option value='0' selected='selected'>include</option><option value='1'>ignore</option></select></td></tr><tr><td class='label'>mode:</td><td class='ctrl'><select name='dt' onchange='this.form.submit();'><option value='0' selected='selected'>unified</option><option value='1'>ssdiff</option><option value='2'>stat only</option></select></td></tr><tr><td/><td class='ctrl'><noscript><input type='submit' value='reload'/></noscript></td></tr></table></form></div><table summary='commit info' class='commit-info'> <tr><th>author</th><td>Aleksander Morgado <aleksander@aleksander.es></td><td class='right'>2017-01-18 21:31:31 +0100</td></tr> <tr><th>committer</th><td>Johan Hovold <johan@kernel.org></td><td class='right'>2017-01-19 09:08:37 +0100</td></tr> <tr><th>commit</th><td colspan='2' class='oid'><a href='/cgit.cgi/linux/net-next.git/commit/tools/testing/selftests/filesystems?id=24d615a694d649aa2e167c3f97f62bdad07e3f84'>24d615a694d649aa2e167c3f97f62bdad07e3f84</a> (<a href='/cgit.cgi/linux/net-next.git/patch/tools/testing/selftests/filesystems?id=24d615a694d649aa2e167c3f97f62bdad07e3f84'>patch</a>)</td></tr> <tr><th>tree</th><td colspan='2' class='oid'><a href='/cgit.cgi/linux/net-next.git/tree/?id=24d615a694d649aa2e167c3f97f62bdad07e3f84'>2fe33c115bdec6bf4b01e27afd90bb16fa668e22</a> /<a href='/cgit.cgi/linux/net-next.git/tree/tools/testing/selftests/filesystems?id=24d615a694d649aa2e167c3f97f62bdad07e3f84'>tools/testing/selftests/filesystems</a></td></tr> <tr><th>parent</th><td colspan='2' class='oid'><a href='/cgit.cgi/linux/net-next.git/commit/tools/testing/selftests/filesystems?id=49def1853334396f948dcb4cedb9347abb318df5'>49def1853334396f948dcb4cedb9347abb318df5</a> (<a href='/cgit.cgi/linux/net-next.git/diff/tools/testing/selftests/filesystems?id=24d615a694d649aa2e167c3f97f62bdad07e3f84&id2=49def1853334396f948dcb4cedb9347abb318df5'>diff</a>)</td></tr></table> <div class='commit-subject'>USB: serial: qcserial: add Dell DW5570 QDL</div><div class='commit-msg'>The Dell DW5570 is a re-branded Sierra Wireless MC8805 which will by default boot with vid 0x413c and pid 0x81a3. When triggered QDL download mode, the device switches to pid 0x81a6 and provides the standard TTY used for firmware upgrade. Cc: <stable@vger.kernel.org> Signed-off-by: Aleksander Morgado <aleksander@aleksander.es> Signed-off-by: Johan Hovold <johan@kernel.org> </div><div class='diffstat-header'><a href='/cgit.cgi/linux/net-next.git/diff/?id=24d615a694d649aa2e167c3f97f62bdad07e3f84'>Diffstat</a> (limited to 'tools/testing/selftests/filesystems')</div><table summary='diffstat' class='diffstat'>