github.com/imran-kn/cilium-fork@v1.6.9/pkg/bpf/perf.go (about) 1 // Copyright 2016-2018 Authors of Cilium 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 package bpf 16 17 const ( 18 EventsMapName = "cilium_events" 19 20 PERF_TYPE_HARDWARE = 0 21 PERF_TYPE_SOFTWARE = 1 22 PERF_TYPE_TRACEPOINT = 2 23 PERF_TYPE_HW_CACHE = 3 24 PERF_TYPE_RAW = 4 25 PERF_TYPE_BREAKPOINT = 5 26 27 PERF_SAMPLE_IP = 1 << 0 28 PERF_SAMPLE_TID = 1 << 1 29 PERF_SAMPLE_TIME = 1 << 2 30 PERF_SAMPLE_ADDR = 1 << 3 31 PERF_SAMPLE_READ = 1 << 4 32 PERF_SAMPLE_CALLCHAIN = 1 << 5 33 PERF_SAMPLE_ID = 1 << 6 34 PERF_SAMPLE_CPU = 1 << 7 35 PERF_SAMPLE_PERIOD = 1 << 8 36 PERF_SAMPLE_STREAM_ID = 1 << 9 37 PERF_SAMPLE_RAW = 1 << 10 38 PERF_SAMPLE_BRANCH_STACK = 1 << 11 39 PERF_SAMPLE_REGS_USER = 1 << 12 40 PERF_SAMPLE_STACK_USER = 1 << 13 41 PERF_SAMPLE_WEIGHT = 1 << 14 42 PERF_SAMPLE_DATA_SRC = 1 << 15 43 PERF_SAMPLE_IDENTIFIER = 1 << 16 44 PERF_SAMPLE_TRANSACTION = 1 << 17 45 PERF_SAMPLE_REGS_INTR = 1 << 18 46 47 PERF_COUNT_SW_BPF_OUTPUT = 10 48 )