Skip to content

Commit b1aa1a6

Browse files
Enable support for MQTT Parser in stirling (#1756)
Summary: This PR adds the parser component of MQTT (v5), a newly added protocol. Related issues: #341 Type of change: /kind feature Test Plan: Added tests --------- Signed-off-by: Chinmay <chinmaysharma1020@gmail.com>
1 parent 3e159e7 commit b1aa1a6

File tree

5 files changed

+1798
-0
lines changed

5 files changed

+1798
-0
lines changed
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# Copyright 2018- The Pixie Authors.
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+
# SPDX-License-Identifier: Apache-2.0
16+
17+
load("//bazel:pl_build_system.bzl", "pl_cc_library", "pl_cc_test")
18+
19+
package(default_visibility = ["//src/stirling:__subpackages__"])
20+
21+
pl_cc_library(
22+
name = "cc_library",
23+
srcs = glob(
24+
[
25+
"*.cc",
26+
],
27+
exclude = [
28+
"**/*_test.cc",
29+
"**/*_benchmark.cc",
30+
],
31+
),
32+
hdrs = glob(
33+
[
34+
"*.h",
35+
],
36+
),
37+
deps = [
38+
"//src/common/json:cc_library",
39+
"//src/stirling/source_connectors/socket_tracer/protocols/common:cc_library",
40+
"//src/stirling/utils:cc_library",
41+
],
42+
)
43+
44+
pl_cc_test(
45+
name = "parse_test",
46+
srcs = ["parse_test.cc"],
47+
deps = [
48+
":cc_library",
49+
],
50+
)

0 commit comments

Comments
 (0)