~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.h

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.h (Version linux-6.12-rc7) and /tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.h (Version linux-4.13.16)


  1 /* SPDX-License-Identifier: GPL-2.0-only */    << 
  2 /*                                                  1 /*
  3  * intel_pt_pkt_decoder.h: Intel Processor Tra      2  * intel_pt_pkt_decoder.h: Intel Processor Trace support
  4  * Copyright (c) 2013-2014, Intel Corporation.      3  * Copyright (c) 2013-2014, Intel Corporation.
                                                   >>   4  *
                                                   >>   5  * This program is free software; you can redistribute it and/or modify it
                                                   >>   6  * under the terms and conditions of the GNU General Public License,
                                                   >>   7  * version 2, as published by the Free Software Foundation.
                                                   >>   8  *
                                                   >>   9  * This program is distributed in the hope it will be useful, but WITHOUT
                                                   >>  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
                                                   >>  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
                                                   >>  12  * more details.
                                                   >>  13  *
  5  */                                                14  */
  6                                                    15 
  7 #ifndef INCLUDE__INTEL_PT_PKT_DECODER_H__          16 #ifndef INCLUDE__INTEL_PT_PKT_DECODER_H__
  8 #define INCLUDE__INTEL_PT_PKT_DECODER_H__          17 #define INCLUDE__INTEL_PT_PKT_DECODER_H__
  9                                                    18 
 10 #include <stddef.h>                                19 #include <stddef.h>
 11 #include <stdint.h>                                20 #include <stdint.h>
 12                                                    21 
 13 #define INTEL_PT_PKT_DESC_MAX   256                22 #define INTEL_PT_PKT_DESC_MAX   256
 14                                                    23 
 15 #define INTEL_PT_NEED_MORE_BYTES        -1         24 #define INTEL_PT_NEED_MORE_BYTES        -1
 16 #define INTEL_PT_BAD_PACKET             -2         25 #define INTEL_PT_BAD_PACKET             -2
 17                                                    26 
 18 #define INTEL_PT_PSB_STR                "\002\     27 #define INTEL_PT_PSB_STR                "\002\202\002\202\002\202\002\202" \
 19                                         "\002\     28                                         "\002\202\002\202\002\202\002\202"
 20 #define INTEL_PT_PSB_LEN                16         29 #define INTEL_PT_PSB_LEN                16
 21                                                    30 
 22 #define INTEL_PT_PKT_MAX_SZ             16         31 #define INTEL_PT_PKT_MAX_SZ             16
 23                                                    32 
 24 #define INTEL_PT_VMX_NR_FLAG            1      << 
 25                                                << 
 26 enum intel_pt_pkt_type {                           33 enum intel_pt_pkt_type {
 27         INTEL_PT_BAD,                              34         INTEL_PT_BAD,
 28         INTEL_PT_PAD,                              35         INTEL_PT_PAD,
 29         INTEL_PT_TNT,                              36         INTEL_PT_TNT,
 30         INTEL_PT_TIP_PGD,                          37         INTEL_PT_TIP_PGD,
 31         INTEL_PT_TIP_PGE,                          38         INTEL_PT_TIP_PGE,
 32         INTEL_PT_TSC,                              39         INTEL_PT_TSC,
 33         INTEL_PT_TMA,                              40         INTEL_PT_TMA,
 34         INTEL_PT_MODE_EXEC,                        41         INTEL_PT_MODE_EXEC,
 35         INTEL_PT_MODE_TSX,                         42         INTEL_PT_MODE_TSX,
 36         INTEL_PT_MTC,                              43         INTEL_PT_MTC,
 37         INTEL_PT_TIP,                              44         INTEL_PT_TIP,
 38         INTEL_PT_FUP,                              45         INTEL_PT_FUP,
 39         INTEL_PT_CYC,                              46         INTEL_PT_CYC,
 40         INTEL_PT_VMCS,                             47         INTEL_PT_VMCS,
 41         INTEL_PT_PSB,                              48         INTEL_PT_PSB,
 42         INTEL_PT_PSBEND,                           49         INTEL_PT_PSBEND,
 43         INTEL_PT_CBR,                              50         INTEL_PT_CBR,
 44         INTEL_PT_TRACESTOP,                        51         INTEL_PT_TRACESTOP,
 45         INTEL_PT_PIP,                              52         INTEL_PT_PIP,
 46         INTEL_PT_OVF,                              53         INTEL_PT_OVF,
 47         INTEL_PT_MNT,                              54         INTEL_PT_MNT,
 48         INTEL_PT_PTWRITE,                          55         INTEL_PT_PTWRITE,
 49         INTEL_PT_PTWRITE_IP,                       56         INTEL_PT_PTWRITE_IP,
 50         INTEL_PT_EXSTOP,                           57         INTEL_PT_EXSTOP,
 51         INTEL_PT_EXSTOP_IP,                        58         INTEL_PT_EXSTOP_IP,
 52         INTEL_PT_MWAIT,                            59         INTEL_PT_MWAIT,
 53         INTEL_PT_PWRE,                             60         INTEL_PT_PWRE,
 54         INTEL_PT_PWRX,                             61         INTEL_PT_PWRX,
 55         INTEL_PT_BBP,                          << 
 56         INTEL_PT_BIP,                          << 
 57         INTEL_PT_BEP,                          << 
 58         INTEL_PT_BEP_IP,                       << 
 59         INTEL_PT_CFE,                          << 
 60         INTEL_PT_CFE_IP,                       << 
 61         INTEL_PT_EVD,                          << 
 62 };                                                 62 };
 63                                                    63 
 64 struct intel_pt_pkt {                              64 struct intel_pt_pkt {
 65         enum intel_pt_pkt_type  type;              65         enum intel_pt_pkt_type  type;
 66         int                     count;             66         int                     count;
 67         uint64_t                payload;           67         uint64_t                payload;
 68 };                                                 68 };
 69                                                    69 
 70 /*                                             << 
 71  * Decoding of BIP packets conflicts with sing << 
 72  * packets only occur in the context of a bloc << 
 73  * context must be recorded and passed to the  << 
 74  */                                            << 
 75 enum intel_pt_pkt_ctx {                        << 
 76         INTEL_PT_NO_CTX,        /* BIP packets << 
 77         INTEL_PT_BLK_4_CTX,     /* 4-byte BIP  << 
 78         INTEL_PT_BLK_8_CTX,     /* 8-byte BIP  << 
 79 };                                             << 
 80                                                << 
 81 const char *intel_pt_pkt_name(enum intel_pt_pk     70 const char *intel_pt_pkt_name(enum intel_pt_pkt_type);
 82                                                    71 
 83 int intel_pt_get_packet(const unsigned char *b     72 int intel_pt_get_packet(const unsigned char *buf, size_t len,
 84                         struct intel_pt_pkt *p !!  73                         struct intel_pt_pkt *packet);
 85                         enum intel_pt_pkt_ctx  << 
 86                                                << 
 87 void intel_pt_upd_pkt_ctx(const struct intel_p << 
 88                           enum intel_pt_pkt_ct << 
 89                                                    74 
 90 int intel_pt_pkt_desc(const struct intel_pt_pk     75 int intel_pt_pkt_desc(const struct intel_pt_pkt *packet, char *buf, size_t len);
 91                                                    76 
 92 #endif                                             77 #endif
 93                                                    78 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php