summaryrefslogtreecommitdiffstats
path: root/src/plugins/perfmon
AgeCommit message (Expand)AuthorFilesLines
2019-05-24Add callback multiplex supportDave Barach1-15/+47
2019-05-03plugins: clean up plugin descriptionsDave Wallace1-1/+1
2019-05-01Add node, frame to vlib main loop perf analysis callback argumentsDave Barach1-1/+3
2019-03-26perfmon: fix pmc hw indices out-dated when multiple pmcSu Wang1-3/+15
2019-03-20perfmon: python to C parser for intel CPUsDamjan Marion24-445/+23854
2019-01-27Fix issue with cpu_id and numa_code captured too earlyDamjan Marion1-1/+1
2019-01-27perfmon: collect data on selected thread(s)Dave Barach3-18/+86
2019-01-24perfmon: enable pmc event before reading rdpmc indexDamjan Marion1-6/+6
2019-01-24perfmon plugin: 2-way parallel stat collectionDave Barach3-143/+228
2018-12-17Improve perfmon json table pickerDave Barach4-23/+341
2018-11-14Remove c-11 memcpy checks from perf-critical codeDave Barach1-1/+1
2018-10-25Add x86_64 perfmon tablesDave Barach3-20/+10
2018-10-23VPP-1474: fix coverity warningDave Barach1-0/+3
2018-10-23perfmon.c: Register additional cpuids.Paul Vinciguerra1-4/+7
2018-10-22X86_64 perf counter pluginDave Barach5-0/+1466
} /* Name.Function.Magic */ .highlight .vc { color: #f8f8f2 } /* Name.Variable.Class */ .highlight .vg { color: #f8f8f2 } /* Name.Variable.Global */ .highlight .vi { color: #f8f8f2 } /* Name.Variable.Instance */ .highlight .vm { color: #f8f8f2 } /* Name.Variable.Magic */ .highlight .il { color: #ae81ff } /* Literal.Number.Integer.Long */ } @media (prefers-color-scheme: light) { .highlight .hll { background-color: #ffffcc } .highlight .c { color: #888888 } /* Comment */ .highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */ .highlight .k { color: #008800; font-weight: bold } /* Keyword */ .highlight .ch { color: #888888 } /* Comment.Hashbang */ .highlight .cm { color: #888888 } /* Comment.Multiline */ .highlight .cp { color: #cc0000; font-weight: bold } /* Comment.Preproc */ .highlight .cpf { color: #888888 } /* Comment.PreprocFile */ .highlight .c1 { color: #888888 } /* Comment.Single */ .highlight .cs { color: #cc0000; font-weight: bold; background-color: #fff0f0 } /* Comment.Special */ .highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */ .highlight .ge { font-style: italic } /* Generic.Emph */ .highlight .gr { color: #aa0000 } /* Generic.Error */ .highlight .gh { color: #333333 } /* Generic.Heading */ .highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */ .highlight .go { color: #888888 } /* Generic.Output */ .highlight .gp { color: #555555 } /* Generic.Prompt */ .highlight .gs { font-weight: bold } /* Generic.Strong */ .highlight .gu { color: #666666 } /* Generic.Subheading */ .highlight .gt { color: #aa0000 } /* Generic.Traceback */ .highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */ .highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */ .highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */ .highlight .kp { color: #008800 } /* Keyword.Pseudo */ .highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */ .highlight .kt { color: #888888; font-weight: bold } /* Keyword.Type */ .highlight .m { color: #0000DD; font-weight: bold } /* Literal.Number */ .highlight .s { color: #dd2200; background-color: #fff0f0 } /* Literal.String */ .highlight .na { color: #336699 } /* Name.Attribute */ .highlight .nb { color: #003388 } /* Name.Builtin */ .highlight .nc { color: #bb0066; font-weight: bold } /* Name.Class */ .highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ .highlight .nd { color: #555555 } /* Name.Decorator */ .highlight .ne { color: #bb0066; font-weight: bold } /* Name.Exception */ .highlight .nf { color: #0066bb; font-weight: bold } /* Name.Function */ .highlight .nl { color: #336699; font-style: italic } /* Name.Label */ .highlight .nn { color: #bb0066; font-weight: bold } /* Name.Namespace */ .highlight .py { color: #336699; font-weight: bold } /* Name.Property */ .highlight .nt { color: #bb0066; font-weight: bold } /* Name.Tag */ .highlight .nv { color: #336699 } /* Name.Variable */ .highlight .ow { color: #008800 } /* Operator.Word */ .highlight .w { color: #bbbbbb } /* Text.Whitespace */ .highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */ .highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */ .highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ }
/*
 * Copyright (c) 2015 Cisco and/or its affiliates.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at:
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
#ifndef included_vnet_ppp_packet_h
#define included_vnet_ppp_packet_h

/*
 * PPP packet format
 *
 * Copyright (c) 2009 Eliot Dresselhaus
 *
 * Permission is hereby granted, free of charge, to any person obtaining
 * a copy of this software and associated documentation files (the
 * "Software"), to deal in the Software without restriction, including
 * without limitation the rights to use, copy, modify, merge, publish,
 * distribute, sublicense, and/or sell copies of the Software, and to
 * permit persons to whom the Software is furnished to do so, subject to
 * the following conditions:
 *
 * The above copyright notice and this permission notice shall be
 * included in all copies or substantial portions of the Software.
 *
 *  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 *  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 *  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 *  NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
 *  LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
 *  OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 *  WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 */

/*
See http://www.iana.org/assignments/ppp-numbers.

The Point-to-Point Protocol (PPP) Data Link Layer [146,147,175]
contains a 16 bit Protocol field to identify the the encapsulated
protocol.  The Protocol field is consistent with the ISO 3309 (HDLC)
extension mechanism for Address fields.  All Protocols MUST be
assigned such that the least significant bit of the most significant
octet equals "0", and the least significant bit of the least
significant octet equals "1".
*/

#define foreach_ppp_protocol			\
_ (0x0001, padding)				\
_ (0x0003, rohc_small_cid)			\
_ (0x0005, rohc_large_cid)			\
_ (0x0021, ip4)					\
_ (0x0023, osi)					\
_ (0x0025, xerox_ns_idp)			\
_ (0x0027, decnet)				\
_ (0x0029, appletalk)				\
_ (0x002b, ipx)					\
_ (0x002d, vj_compressed_tcp)			\
_ (0x002f, vj_uncompressed_tcp)			\
_ (0x0031, bpdu)				\
_ (0x0033, streams)				\
_ (0x0035, vines)				\
_ (0x0039, appletalk_eddp)			\
_ (0x003b, appletalk_smart_buffered)		\
_ (0x003d, multilink)				\
_ (0x003f, netbios_framing)			\
_ (0x0041, cisco)				\
_ (0x0043, timeplex)				\
_ (0x0045, fujitsu_lblb)			\
_ (0x0047, dca_remote_lan)			\
_ (0x0049, sdtp)				\
_ (0x004b, sna_over_802_2)			\
_ (0x004d, sna)					\
_ (0x004f, ip6_header_compression)		\
_ (0x0051, knx)					\
_ (0x0053, encryption)				\
_ (0x0055, link_encryption)			\
_ (0x0057, ip6)					\
_ (0x0059, ppp_mux)				\
_ (0x005b, vendor_specific_a)			\
_ (0x0061, rtp_iphc_full_header)		\
_ (0x0063, rtp_iphc_compressed_tcp)		\
_ (0x0065, rtp_iphc_compressed_non_tcp)		\
_ (0x0067, rtp_iphc_compressed_udp_8)		\
_ (0x0069, rtp_iphc_compressed_rtp_8)		\
_ (0x006f, stampede)				\
_ (0x0073, mp_plus)				\
_ (0x007d, control)				\
_ (0x00c1, ntcits_ipi)				\
_ (0x00cf, ppp_nlpid)				\
_ (0x00fb, multilink_compression)		\
_ (0x00fd, compressed_datagram)			\
_ (0x0201, 802_1d_hello)			\
_ (0x0203, ibm_source_routing)			\
_ (0x0205, dec_lanbridge)			\
_ (0x0207, cdp)					\
_ (0x0209, netcs)				\
_ (0x020b, stp)					\
_ (0x020d, edp)					\
_ (0x0211, oscp_a)				\
_ (0x0213, oscp_b)				\
_ (0x0231, luxcom)				\
_ (0x0233, sigma)				\
_ (0x0235, apple_client_server)			\
_ (0x0281, mpls_unicast)			\
_ (0x0283, mpls_multicast)			\
_ (0x0285, ieee_p1284_4)			\
_ (0x0287, tetra)				\
_ (0x0289, multichannel_flow_treatment)		\
_ (0x2063, rtp_iphc_compressed_tcp_no_delta)	\
_ (0x2065, rtp_iphc_context_state)		\
_ (0x2067, rtp_iphc_compressed_udp_16)		\
_ (0x2069, rtp_iphc_compressed_rtp_16)		\
_ (0x4001, cray)				\
_ (0x4003, cdpd)				\
_ (0x4005, expand)				\
_ (0x4007, odsicp)				\
_ (0x4009, docsis_dll)				\
_ (0x400B, cetacean)				\
_ (0x4021, lzs)					\
_ (0x4023, reftek)				\
_ (0x4025, fibre_channel)			\
_ (0x4027, emit)				\
_ (0x405b, vendor_specific_b)			\
_ (0xc021, lcp)					\
_ (0xc023, pap)					\
_ (0xc025, link_quality_report)			\
_ (0xc027, shiva_password)			\
_ (0xc029, cbcp)				\
_ (0xc02b, bacp)				\
_ (0xc02d, bap)					\
_ (0xc05b, vendor_specific_password)		\
_ (0xc081, container_control)			\
_ (0xc223, chap)				\
_ (0xc225, rsa)					\
_ (0xc227, extensible_authentication)		\
_ (0xc229, mitsubishi_security_info)		\
_ (0xc26f, stampede_authorization)		\
_ (0xc281, proprietary_authentication_a)	\
_ (0xc283, proprietary_authentication_b)	\
_ (0xc481, proprietary_node_id_authentication)

typedef enum
{
#define _(n,f) PPP_PROTOCOL_##f = n,
  foreach_ppp_protocol
#undef _
} ppp_protocol_t;

/* PPP Link Control Protocol (LCP) and Internet Protocol Control Protocol (IPCP) Codes

The Point-to-Point Protocol (PPP) Link Control Protocol (LCP),
the Compression Control Protocol (CCP), Internet Protocol Control
Protocol (IPCP), and other control protocols, contain an 8 bit
Code field which identifies the type of packet. */

#define foreach_ppp_lcp_code			\
_ (0, vendor_specific)				\
_ (1, configure_request)			\
_ (2, configure_ack)				\
_ (3, configure_nak)				\
_ (4, configure_reject)				\
_ (5, terminate_request)			\
_ (6, terminate_ack)				\
_ (7, code_reject)				\
_ (8, protocol_reject)				\
_ (9, echo_request)				\
_ (10, echo_reply)				\
_ (11, discard_request)				\
_ (12, identification)				\
_ (13, time_remaining)				\
_ (14, reset_request)				\
_ (15, reset_reply)

typedef struct
{
  /* Set to 0xff 0x03 */
  u8 address, control;

  /* Layer 3 protocol for this packet. */
  u16 protocol;
} ppp_header_t;

#endif /* included_vnet_ppp_packet_h */

/*
 * fd.io coding-style-patch-verification: ON
 *
 * Local Variables:
 * eval: (c-set-style "gnu")
 * End:
 */