diff --git a/src/carnot/funcs/metadata/metadata_ops.cc b/src/carnot/funcs/metadata/metadata_ops.cc index 3fe4e21692d..c0f68eb6495 100644 --- a/src/carnot/funcs/metadata/metadata_ops.cc +++ b/src/carnot/funcs/metadata/metadata_ops.cc @@ -113,6 +113,7 @@ void RegisterMetadataOpsOrDie(px::carnot::udf::Registry* registry) { registry->RegisterOrDie("upid_to_hostname"); registry->RegisterOrDie("upid_to_namespace"); registry->RegisterOrDie("upid_to_node_name"); + registry->RegisterOrDie("upid_to_parent_upid"); registry->RegisterOrDie("upid_to_pid"); registry->RegisterOrDie("upid_to_start_ts"); registry->RegisterOrDie("upid_to_pod_id"); diff --git a/src/carnot/funcs/metadata/metadata_ops.h b/src/carnot/funcs/metadata/metadata_ops.h index 241079858a4..877c036048a 100644 --- a/src/carnot/funcs/metadata/metadata_ops.h +++ b/src/carnot/funcs/metadata/metadata_ops.h @@ -241,11 +241,7 @@ class UPIDToContainerIDUDF : public ScalarUDF { auto upid_uint128 = absl::MakeUint128(upid_value.High64(), upid_value.Low64()); auto upid = md::UPID(upid_uint128); - auto pid = md->GetPIDByUPID(upid); - if (pid == nullptr) { - return ""; - } - return pid->cid(); + return md->ContainerIDByUPID(upid); } static udf::ScalarUDFDocBuilder Doc() { @@ -264,15 +260,37 @@ class UPIDToContainerIDUDF : public ScalarUDF { static udfspb::UDFSourceExecutor Executor() { return udfspb::UDFSourceExecutor::UDF_PEM; } }; +class UPIDToParentUPIDUDF : public ScalarUDF { + public: + UInt128Value Exec(FunctionContext* ctx, UInt128Value upid_value) { + auto md = GetMetadataState(ctx); + auto upid_uint128 = absl::MakeUint128(upid_value.High64(), upid_value.Low64()); + return md->ParentUPID(md::UPID(upid_uint128)).value(); + } + + static udf::ScalarUDFDocBuilder Doc() { + return udf::ScalarUDFDocBuilder("Get the UPID of the parent process from a UPID.") + .Details( + "Gets the Unique Process ID (UPID) of the parent of the process with the given UPID. " + "If the parent is not known, this function will return a UPID of zero.") + .Example("df.parent_upid = px.upid_to_parent_upid(df.upid)") + .Arg("upid", "The UPID of the process to get the parent for.") + .Returns("The UPID of the parent process."); + } + + static udf::InfRuleVec SemanticInferenceRules() { + return {udf::ExplicitRule::Create(types::ST_UPID, {types::ST_NONE})}; + } + + // This UDF can currently only run on PEMs, because only PEMs have the UPID information. + static udfspb::UDFSourceExecutor Executor() { return udfspb::UDFSourceExecutor::UDF_PEM; } +}; + inline const md::ContainerInfo* UPIDToContainer(const px::md::AgentMetadataState* md, types::UInt128Value upid_value) { auto upid_uint128 = absl::MakeUint128(upid_value.High64(), upid_value.Low64()); auto upid = md::UPID(upid_uint128); - auto pid = md->GetPIDByUPID(upid); - if (pid == nullptr) { - return nullptr; - } - return md->k8s_metadata_state().ContainerInfoByID(pid->cid()); + return md->k8s_metadata_state().ContainerInfoByID(md->ContainerIDByUPID(upid)); } class UPIDToContainerNameUDF : public ScalarUDF { diff --git a/src/carnot/funcs/metadata/metadata_ops_test.cc b/src/carnot/funcs/metadata/metadata_ops_test.cc index b9d225326bb..52b7cafef01 100644 --- a/src/carnot/funcs/metadata/metadata_ops_test.cc +++ b/src/carnot/funcs/metadata/metadata_ops_test.cc @@ -176,6 +176,41 @@ TEST_F(MetadataOpsTest, upid_to_container_id_test) { udf_tester.ForInput(upid3).Expect(""); } +TEST_F(MetadataOpsTest, upid_to_container_id_resolves_through_parent) { + metadata_state_->AddProcessParent(md::UPID(123, 900, 5000), md::UPID(123, 567, 89101)); + auto function_ctx = std::make_unique(metadata_state_, nullptr); + auto udf_tester = px::carnot::udf::UDFTester(std::move(function_ctx)); + auto child_upid = types::UInt128Value(528280978308, 5000); + udf_tester.ForInput(child_upid).Expect("pod1_container_1"); +} + +TEST_F(MetadataOpsTest, upid_to_pod_name_resolves_through_parent) { + metadata_state_->AddProcessParent(md::UPID(123, 900, 5000), md::UPID(123, 567, 89101)); + auto function_ctx = std::make_unique(metadata_state_, nullptr); + auto udf_tester = px::carnot::udf::UDFTester(std::move(function_ctx)); + auto child_upid = types::UInt128Value(528280978308, 5000); + udf_tester.ForInput(child_upid).Expect("pl/running_pod"); +} + +TEST_F(MetadataOpsTest, upid_to_pod_name_resolves_through_cgroup) { + metadata_state_->SetContainerCgroupID("pod1_container_1", 77); + metadata_state_->AddProcessCgroup(md::UPID(123, 900, 5000), 77); + auto function_ctx = std::make_unique(metadata_state_, nullptr); + auto udf_tester = px::carnot::udf::UDFTester(std::move(function_ctx)); + auto upid = types::UInt128Value(528280978308, 5000); + udf_tester.ForInput(upid).Expect("pl/running_pod"); +} + +TEST_F(MetadataOpsTest, upid_to_parent_upid_test) { + metadata_state_->AddProcessParent(md::UPID(123, 900, 5000), md::UPID(123, 567, 89101)); + auto function_ctx = std::make_unique(metadata_state_, nullptr); + UPIDToParentUPIDUDF udf; + auto child_upid = types::UInt128Value(528280978308, 5000); + EXPECT_EQ(udf.Exec(function_ctx.get(), child_upid).val, md::UPID(123, 567, 89101).value()); + auto unknown_upid = types::UInt128Value(528280978308, 6000); + EXPECT_EQ(udf.Exec(function_ctx.get(), unknown_upid).val, md::UPID().value()); +} + TEST_F(MetadataOpsTest, upid_to_container_name_test) { auto function_ctx = std::make_unique(metadata_state_, nullptr); auto udf_tester = px::carnot::udf::UDFTester(std::move(function_ctx)); diff --git a/src/common/system/proc_parser.cc b/src/common/system/proc_parser.cc index a183295300e..5af5c2d8ef4 100644 --- a/src/common/system/proc_parser.cc +++ b/src/common/system/proc_parser.cc @@ -83,6 +83,7 @@ constexpr int kProcNetDevTxDropField = 12; constexpr int kProcStatNumFields = 52; constexpr int kProcStatPIDField = 0; +constexpr int kProcStatPPIDField = 3; constexpr int kProcStatMinorFaultsField = 9; constexpr int kProcStatMajorFaultsField = 11; @@ -712,7 +713,9 @@ Status ProcParser::ReadNSPid(pid_t pid, std::vector* ns_pids) const return Status::OK(); } -StatusOr GetPIDStartTimeTicks(const std::filesystem::path& proc_pid_path) { +namespace { + +StatusOr ReadProcPIDStatField(const std::filesystem::path& proc_pid_path, int field) { const std::filesystem::path proc_pid_stat_path = proc_pid_path / "stat"; std::string line; @@ -767,12 +770,24 @@ StatusOr GetPIDStartTimeTicks(const std::filesystem::path& proc_pid_pat proc_pid_stat_path.string()); } - int64_t start_time_ticks; - if (!absl::SimpleAtoi(split[kProcStatStartTimeField + command_offset], &start_time_ticks)) { - return error::Internal("Time value does not parse in file: $0.", proc_pid_stat_path.string()); + int64_t value; + if (!absl::SimpleAtoi(split[field + command_offset], &value)) { + return error::Internal("Field $0 does not parse in file: $1.", field, + proc_pid_stat_path.string()); } - return start_time_ticks; + return value; +} + +} // namespace + +StatusOr GetPIDStartTimeTicks(const std::filesystem::path& proc_pid_path) { + return ReadProcPIDStatField(proc_pid_path, kProcStatStartTimeField); +} + +StatusOr ProcParser::GetPPID(int32_t pid) const { + PX_ASSIGN_OR_RETURN(int64_t ppid, ReadProcPIDStatField(ProcPidPath(pid), kProcStatPPIDField)); + return static_cast(ppid); } namespace { diff --git a/src/common/system/proc_parser.h b/src/common/system/proc_parser.h index 70c7d34370c..0face06aca9 100644 --- a/src/common/system/proc_parser.h +++ b/src/common/system/proc_parser.h @@ -194,6 +194,8 @@ class ProcParser { */ StatusOr GetPIDStartTimeTicks(int32_t pid) const; + StatusOr GetPPID(int32_t pid) const; + /** * Gets the command line for a given pid. * @param pid is the pid for which we want the command line. diff --git a/src/common/system/proc_parser_test.cc b/src/common/system/proc_parser_test.cc index 7d2baaa5315..136ee12f6e8 100644 --- a/src/common/system/proc_parser_test.cc +++ b/src/common/system/proc_parser_test.cc @@ -277,6 +277,11 @@ TEST_F(ProcParserTest, read_pid_start_time) { ASSERT_OK_AND_EQ(parser_->GetPIDStartTimeTicks(123), 14329); } +TEST_F(ProcParserTest, read_ppid) { + PX_SET_FOR_SCOPE(FLAGS_proc_path, GetPathToTestDataFile("testdata/proc")); + ASSERT_OK_AND_EQ(parser_->GetPPID(123), 3260); +} + TEST_F(ProcParserTest, read_pid_cmdline) { PX_SET_FOR_SCOPE(FLAGS_proc_path, GetPathToTestDataFile("testdata/proc")); EXPECT_THAT("/usr/lib/slack/slack --force-device-scale-factor=1.5 --high-dpi-support=1", diff --git a/src/shared/k8s/metadatapb/metadata.pb.go b/src/shared/k8s/metadatapb/metadata.pb.go index c67435f3b35..71856178d94 100755 --- a/src/shared/k8s/metadatapb/metadata.pb.go +++ b/src/shared/k8s/metadatapb/metadata.pb.go @@ -1898,6 +1898,7 @@ type ProcessInfo struct { StopTimestampNS int64 `protobuf:"varint,5,opt,name=stop_timestamp_ns,json=stopTimestampNs,proto3" json:"stop_timestamp_ns,omitempty"` ProcessArgs string `protobuf:"bytes,6,opt,name=process_args,json=processArgs,proto3" json:"process_args,omitempty"` CID string `protobuf:"bytes,7,opt,name=cid,proto3" json:"cid,omitempty"` + ParentUPID *typespb.UInt128 `protobuf:"bytes,8,opt,name=parent_upid,json=parentUpid,proto3" json:"parent_upid,omitempty"` } func (m *ProcessInfo) Reset() { *m = ProcessInfo{} } @@ -1974,6 +1975,13 @@ func (m *ProcessInfo) GetCID() string { return "" } +func (m *ProcessInfo) GetParentUPID() *typespb.UInt128 { + if m != nil { + return m.ParentUPID + } + return nil +} + type PodUpdate struct { UID string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` @@ -2455,6 +2463,7 @@ type ProcessCreated struct { StartTimestampNS int64 `protobuf:"varint,3,opt,name=start_timestamp_ns,json=startTimestampNs,proto3" json:"start_timestamp_ns,omitempty"` Cmdline string `protobuf:"bytes,4,opt,name=cmdline,proto3" json:"cmdline,omitempty"` CID string `protobuf:"bytes,5,opt,name=cid,proto3" json:"cid,omitempty"` + ParentUPID *typespb.UInt128 `protobuf:"bytes,6,opt,name=parent_upid,json=parentUpid,proto3" json:"parent_upid,omitempty"` } func (m *ProcessCreated) Reset() { *m = ProcessCreated{} } @@ -2517,6 +2526,13 @@ func (m *ProcessCreated) GetCID() string { return "" } +func (m *ProcessCreated) GetParentUPID() *typespb.UInt128 { + if m != nil { + return m.ParentUPID + } + return nil +} + type ProcessTerminated struct { UPID *typespb.UInt128 `protobuf:"bytes,1,opt,name=upid,proto3" json:"upid,omitempty"` StopTimestampNS int64 `protobuf:"varint,2,opt,name=stop_timestamp_ns,json=stopTimestampNs,proto3" json:"stop_timestamp_ns,omitempty"` @@ -4449,14 +4465,14 @@ func init() { } var fileDescriptor_281217845a4326db = []byte{ - // 4453 bytes of a gzipped FileDescriptorProto + // 4484 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x7b, 0x4f, 0x8c, 0x1b, 0x59, 0x5a, 0x78, 0x97, 0xff, 0xfb, 0x73, 0xb7, 0xbb, 0xfa, 0x75, 0x27, 0x71, 0x3a, 0xb3, 0xdd, 0x49, 0x25, 0x99, 0x49, 0xfa, 0xb7, 0xd3, 0xf9, 0x4d, 0x76, 0x16, 0x92, 0xd9, 0xd9, 0x99, 0x75, 0xdb, 0x95, 0x74, 0x25, 0x8e, 0xed, 0x3c, 0xdb, 0x99, 0xc9, 0xac, 0x50, 0x51, 0xed, 0xaa, 0xee, 0x14, - 0xb1, 0xab, 0x6a, 0xaa, 0xca, 0x21, 0x2d, 0x21, 0x84, 0x84, 0x56, 0x20, 0x10, 0x68, 0x11, 0x8b, - 0x40, 0xc0, 0x8d, 0x0b, 0x07, 0x0e, 0x1c, 0x56, 0x80, 0xb8, 0x80, 0x90, 0x56, 0x42, 0xc0, 0x61, - 0x0e, 0x8b, 0x34, 0xa7, 0x16, 0xe3, 0x41, 0x82, 0xe3, 0x0a, 0x89, 0x3b, 0x7a, 0xef, 0xd5, 0xff, + 0xb1, 0xab, 0x6a, 0xaa, 0xca, 0x21, 0x2d, 0x21, 0x84, 0x04, 0x2b, 0x10, 0x08, 0xb4, 0x88, 0x45, + 0x20, 0xc4, 0x8d, 0x0b, 0x07, 0x0e, 0x1c, 0x56, 0x80, 0xb8, 0x20, 0x21, 0xad, 0x84, 0x80, 0xc3, + 0x1c, 0x16, 0x69, 0x4e, 0x0d, 0xe3, 0x41, 0x82, 0xe3, 0x0a, 0x89, 0x3b, 0x7a, 0xef, 0xd5, 0xff, 0xb6, 0xdd, 0xee, 0x24, 0x03, 0xd9, 0xbd, 0x24, 0xae, 0xf7, 0xfd, 0x79, 0xdf, 0xfb, 0xfe, 0xbd, 0xef, 0x7b, 0xef, 0x35, 0x5c, 0x73, 0xec, 0xfe, 0x0d, 0xe7, 0x89, 0x62, 0x6b, 0xea, 0x8d, 0xa7, 0xb7, 0x9c, 0x1b, 0x43, 0xcd, 0x55, 0x54, 0xc5, 0x55, 0xac, 0xbd, 0xe0, 0xe7, 0xb6, 0x65, 0x9b, @@ -4494,7 +4510,7 @@ var fileDescriptor_281217845a4326db = []byte{ 0xe0, 0x44, 0x75, 0x28, 0xf8, 0xda, 0xf1, 0x12, 0xd2, 0xb5, 0x79, 0x95, 0x87, 0x03, 0x4a, 0xe1, 0xef, 0x38, 0x48, 0xb7, 0x4d, 0xf5, 0xd5, 0x70, 0x43, 0xdf, 0x84, 0x8c, 0x63, 0x69, 0x7d, 0x2f, 0xcf, 0x5d, 0x9a, 0x99, 0x20, 0x3b, 0x96, 0xd6, 0xc7, 0x14, 0x1d, 0x7d, 0x0b, 0x72, 0x8e, 0xab, - 0xb8, 0x23, 0xc7, 0xcb, 0x6e, 0x97, 0x67, 0x13, 0x52, 0x54, 0xec, 0x91, 0x08, 0x7f, 0x9c, 0x86, + 0xb8, 0x23, 0xc7, 0xcb, 0x6e, 0x97, 0x67, 0x13, 0x52, 0x54, 0xec, 0x91, 0x08, 0x7f, 0x92, 0x86, 0xbc, 0xc7, 0x0e, 0x3d, 0x04, 0x50, 0x0d, 0x47, 0xb6, 0xcc, 0x81, 0xde, 0x67, 0xe6, 0x2a, 0xcf, 0x62, 0x56, 0x6f, 0x76, 0xda, 0x14, 0x75, 0x67, 0x69, 0x7c, 0xb4, 0x59, 0x0c, 0x3e, 0x71, 0x51, 0x35, 0x1c, 0xf6, 0x13, 0x7d, 0x0c, 0x4b, 0x24, 0x91, 0xc9, 0x8e, 0x36, 0xd0, 0xfa, 0xae, 0x69, @@ -4504,7 +4520,7 @@ var fileDescriptor_281217845a4326db = []byte{ 0xe6, 0x50, 0xd1, 0x0d, 0x9a, 0x6a, 0x8a, 0x38, 0x1c, 0x40, 0xdb, 0xb0, 0x6a, 0xd9, 0xba, 0x69, 0xeb, 0xee, 0xa1, 0xdc, 0x1f, 0x28, 0x8e, 0xc3, 0x26, 0xc8, 0x51, 0xbc, 0x15, 0x1f, 0x54, 0x23, 0x10, 0x7f, 0x26, 0x7f, 0xb0, 0x92, 0xbf, 0xc8, 0x5d, 0xcb, 0xe2, 0xe0, 0x7b, 0xfd, 0x43, 0x58, - 0x39, 0xb6, 0x8a, 0xd3, 0x04, 0x83, 0xf0, 0x9b, 0x69, 0x58, 0xae, 0x99, 0x86, 0xab, 0xe8, 0x86, + 0x39, 0xb6, 0x8a, 0xd3, 0x04, 0x83, 0xf0, 0x5b, 0x69, 0x58, 0xae, 0x99, 0x86, 0xab, 0xe8, 0x86, 0x66, 0x33, 0xc3, 0x4d, 0xcc, 0xd6, 0x37, 0x61, 0xb1, 0xef, 0xa3, 0xc9, 0xba, 0xca, 0x18, 0xed, 0x2c, 0x8f, 0x8f, 0x36, 0x4b, 0x01, 0xb9, 0x54, 0xc7, 0xa5, 0x00, 0x49, 0x52, 0xd1, 0x43, 0x58, 0x0e, 0x69, 0x88, 0x33, 0x30, 0x2d, 0x96, 0x67, 0x79, 0x6e, 0x4c, 0x16, 0x0d, 0x97, 0xfb, 0xb1, @@ -4514,7 +4530,7 @@ var fileDescriptor_281217845a4326db = []byte{ 0x36, 0xe0, 0xa0, 0x0a, 0xe4, 0x87, 0x9a, 0xe3, 0x28, 0x07, 0xbe, 0xd1, 0xfc, 0x4f, 0x74, 0x16, 0x72, 0xb6, 0xa6, 0x38, 0xa6, 0x41, 0x0d, 0x55, 0xc4, 0xde, 0x17, 0xba, 0x0c, 0x4b, 0xb6, 0xc6, 0x04, 0xef, 0x9b, 0x23, 0xc3, 0xad, 0x14, 0xc8, 0x74, 0x78, 0xd1, 0x1b, 0xac, 0x91, 0x31, 0xe1, - 0x8f, 0x38, 0x28, 0xdc, 0xbf, 0xe5, 0x88, 0xcf, 0x34, 0xc3, 0x8d, 0xce, 0xc1, 0xc5, 0xe7, 0xb8, + 0x8f, 0x39, 0x28, 0xdc, 0xbf, 0xe5, 0x88, 0xcf, 0x34, 0xc3, 0x8d, 0xce, 0xc1, 0xc5, 0xe7, 0xb8, 0x0d, 0xb0, 0xaf, 0xdb, 0x0e, 0x53, 0x81, 0x17, 0xc8, 0xeb, 0xdb, 0xac, 0xa2, 0xda, 0xf6, 0x2b, 0xaa, 0xed, 0x40, 0x5e, 0x5c, 0xa4, 0xd8, 0xe4, 0x1b, 0xfd, 0x3c, 0x14, 0x07, 0x8a, 0x4f, 0x99, 0x3e, 0x91, 0xb2, 0x40, 0x90, 0xc9, 0xa7, 0xf0, 0xe3, 0x0c, 0x14, 0x83, 0xc0, 0x46, 0xb7, 0x20, @@ -4530,9 +4546,9 @@ var fileDescriptor_281217845a4326db = []byte{ 0x21, 0x8e, 0x42, 0xcb, 0x18, 0x4d, 0x95, 0x15, 0xb7, 0x52, 0x3a, 0xd9, 0x51, 0x3c, 0xec, 0xaa, 0x8b, 0xde, 0x83, 0x9c, 0x46, 0xdc, 0xd0, 0xa9, 0x2c, 0x52, 0x41, 0x66, 0x98, 0xd8, 0xf7, 0x58, 0xec, 0x51, 0x1c, 0xf7, 0xf5, 0xa5, 0xe3, 0xbe, 0x7e, 0x2f, 0x53, 0x48, 0xf1, 0x69, 0xe1, 0xf7, - 0x38, 0x58, 0x8c, 0xda, 0x18, 0x7d, 0x00, 0x19, 0x52, 0xe0, 0x7b, 0x8e, 0xb5, 0x35, 0x9f, 0x67, + 0x39, 0x58, 0x8c, 0xda, 0x18, 0x7d, 0x00, 0x19, 0x52, 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cb, 0xdb, 0x0f, 0x93, 0xc3, 0xc2, 0x6f, 0x73, 0x90, 0xf7, 0xda, 0xde, 0x57, 0x14, 0x52, 0xb7, 0x63, 0x85, 0xec, 0xd5, 0x13, 0xbb, 0xed, 0xb0, 0x98, 0x15, 0xfe, 0x3a, 0x0d, 0xa5, 0xc8, 0x28, 0xfa, 0x96, 0xef, 0xa2, 0x2c, 0x84, 0x4e, 0xe6, 0x15, 0xf1, 0x50, 0xf4, 0x75, 0x80, 0xfe, 0x60, 0xe4, 0xb8, 0xa4, 0x2a, 0xb2, 0xbc, 0xaa, 0x88, 0xd6, 0xaa, @@ -4558,177 +4574,179 @@ var fileDescriptor_281217845a4326db = []byte{ 0x72, 0x6d, 0x65, 0x7f, 0x5f, 0xef, 0xfb, 0xd5, 0x3d, 0xdb, 0x1e, 0x67, 0xd4, 0xe1, 0xbe, 0xdc, 0x5d, 0x46, 0xc7, 0xea, 0x79, 0xba, 0xe4, 0x33, 0xda, 0x24, 0x90, 0xf0, 0x03, 0x2e, 0xb0, 0xdc, 0xd4, 0xf8, 0x8a, 0xc6, 0x52, 0xea, 0x45, 0x62, 0x29, 0x88, 0xd0, 0x74, 0x24, 0x42, 0xfd, 0x04, - 0x42, 0x01, 0x19, 0x56, 0x84, 0x93, 0x01, 0x22, 0x86, 0xf0, 0xcf, 0x29, 0x58, 0x0a, 0x8b, 0x60, + 0x42, 0x01, 0x19, 0x56, 0x84, 0x93, 0x01, 0x22, 0x86, 0xf0, 0x4f, 0x29, 0x58, 0x0a, 0x8b, 0x60, 0x63, 0xdf, 0x9c, 0x28, 0x98, 0x17, 0x48, 0xa9, 0x09, 0x81, 0x34, 0xb9, 0xaa, 0x4d, 0xbf, 0x7c, 0x55, 0x9b, 0x39, 0x45, 0x55, 0x7b, 0x19, 0xf2, 0xa4, 0xf8, 0x21, 0x32, 0x46, 0x2a, 0xa4, 0xb6, 0xa9, 0x12, 0x31, 0x49, 0x5d, 0xd4, 0xd3, 0x13, 0xf9, 0x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0x01, 0x21, 0x60, 0x40, 0x10, 0xb2, 0x5b, 0xfb, - 0xf4, 0x21, 0x52, 0xf4, 0x14, 0x04, 0xbd, 0x01, 0x95, 0x5a, 0xab, 0x59, 0x97, 0xba, 0x52, 0xab, - 0x49, 0x63, 0xb0, 0xd7, 0x39, 0x66, 0xc2, 0x38, 0xb4, 0x8b, 0x7b, 0x64, 0x35, 0xcc, 0xf2, 0x71, - 0xd0, 0x9d, 0x6a, 0xa3, 0x23, 0xf2, 0xa9, 0xad, 0xcf, 0x39, 0xf6, 0x67, 0x61, 0xf1, 0xe8, 0xf5, - 0x15, 0x17, 0x92, 0xc5, 0xb2, 0x58, 0x02, 0xc6, 0x22, 0x91, 0x43, 0x02, 0x6c, 0x24, 0x20, 0x0f, - 0xc4, 0x07, 0x2d, 0xfc, 0x58, 0x6e, 0x63, 0xb1, 0xd3, 0xe9, 0x61, 0x92, 0xd0, 0x2e, 0xc2, 0x1b, - 0x09, 0x9c, 0xba, 0xd4, 0xb9, 0x1f, 0x62, 0x84, 0xba, 0x0b, 0x31, 0xda, 0x52, 0x3d, 0x44, 0xc8, - 0xa0, 0x37, 0x41, 0x48, 0x20, 0x34, 0xc5, 0xee, 0x47, 0x2d, 0x7c, 0x5f, 0xee, 0x35, 0xab, 0x8f, - 0xaa, 0x12, 0x4b, 0x17, 0xd9, 0xad, 0x1f, 0x72, 0x70, 0x6e, 0xca, 0x91, 0x14, 0xba, 0x0a, 0x97, - 0xea, 0x62, 0xbb, 0xd1, 0x7a, 0xfc, 0x40, 0x6c, 0x76, 0x23, 0x9c, 0x12, 0x4e, 0x22, 0xc0, 0xc6, - 0x44, 0xb4, 0x70, 0x1a, 0x0e, 0x5d, 0x81, 0x8b, 0x13, 0x71, 0xda, 0xb8, 0x75, 0x97, 0x08, 0xcd, - 0x3c, 0xf7, 0x1a, 0x5c, 0x99, 0x88, 0x85, 0xc5, 0x76, 0x43, 0xaa, 0x55, 0x65, 0xb2, 0xb5, 0xd0, - 0xf5, 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0x1a, 0x09, 0x48, 0xc7, 0x3b, 0xe9, + 0x5b, 0x1e, 0xea, 0x06, 0xbd, 0xd6, 0xe8, 0xb0, 0x61, 0x54, 0x83, 0x42, 0xe4, 0xb5, 0x01, 0x37, + 0x3b, 0xd2, 0xe3, 0x36, 0x08, 0x08, 0x91, 0x08, 0x05, 0xd7, 0x53, 0x96, 0x17, 0x56, 0xd7, 0x67, + 0x2e, 0x2d, 0xaa, 0x59, 0x1c, 0x90, 0x0a, 0x7f, 0x9b, 0x02, 0x3e, 0x19, 0x74, 0x33, 0x17, 0xfa, + 0x2e, 0x9c, 0xdd, 0x1f, 0x0d, 0x06, 0x87, 0xcc, 0x4d, 0x35, 0x55, 0x0e, 0x30, 0xd9, 0x95, 0xc4, + 0x1a, 0x85, 0x36, 0x18, 0x10, 0xfb, 0x54, 0x57, 0xa1, 0xcc, 0x54, 0x13, 0x60, 0x33, 0xdd, 0x2c, + 0xd1, 0xd1, 0x00, 0xed, 0x6d, 0x40, 0xca, 0x33, 0x45, 0x1f, 0x28, 0x7b, 0x03, 0x2d, 0x44, 0xcd, + 0x52, 0xd4, 0x95, 0x00, 0x12, 0xa0, 0xdf, 0x80, 0x55, 0x73, 0xcf, 0xd1, 0xec, 0x67, 0x9a, 0x2a, + 0x1f, 0x68, 0x06, 0x09, 0x39, 0xdd, 0x34, 0xd8, 0x46, 0x82, 0x91, 0x0f, 0xba, 0x1b, 0x40, 0xd0, + 0x83, 0x58, 0x96, 0xcd, 0x51, 0xff, 0x7f, 0x7b, 0x9e, 0x6c, 0x34, 0x39, 0xd7, 0x7e, 0x3f, 0x1b, + 0x55, 0xde, 0x4f, 0xf1, 0x5e, 0x18, 0x6b, 0x33, 0x17, 0x93, 0x6d, 0x66, 0xd4, 0x1d, 0xb2, 0x73, + 0xbb, 0x43, 0xee, 0x54, 0xee, 0x90, 0x9f, 0xdf, 0x1d, 0x0a, 0xa7, 0x74, 0x87, 0x22, 0xc5, 0x9f, + 0xe4, 0x0e, 0x6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 0x94, 0xd0, 0xcf, 0x9f, 0x14, 0xfa, + 0x13, 0xbc, 0x2d, 0x16, 0xfa, 0xf4, 0xae, 0x60, 0x30, 0xd0, 0x49, 0xed, 0x14, 0x79, 0xd2, 0x95, + 0xc5, 0xe5, 0x60, 0x98, 0x3d, 0xea, 0xfa, 0x9b, 0x34, 0x94, 0xe3, 0x41, 0x35, 0x73, 0x73, 0x7e, + 0x8d, 0x2a, 0x0b, 0xb4, 0x0b, 0x05, 0xc7, 0xb5, 0x15, 0x57, 0x3b, 0x38, 0xf4, 0x5e, 0x45, 0x7c, + 0x7d, 0xbe, 0xc0, 0x67, 0x34, 0x38, 0xa0, 0x9e, 0x5c, 0x5b, 0x65, 0x27, 0xd7, 0x56, 0xef, 0xc2, + 0x59, 0x5b, 0x7b, 0xc6, 0x14, 0xfb, 0x44, 0x77, 0x5c, 0xd3, 0x3e, 0x94, 0x07, 0xfa, 0x50, 0x77, + 0xfd, 0xfd, 0xc8, 0x87, 0xee, 0x32, 0x60, 0x83, 0xc0, 0x48, 0x98, 0x58, 0xca, 0xc8, 0xd1, 0xd8, + 0xd5, 0x59, 0x01, 0x7b, 0x5f, 0xe8, 0x3d, 0x38, 0x6f, 0xd9, 0xe6, 0x01, 0xa9, 0x72, 0x65, 0x55, + 0x53, 0xe8, 0x11, 0x57, 0x20, 0x01, 0xdb, 0x57, 0xce, 0xf9, 0x08, 0x75, 0x0f, 0xee, 0x49, 0x22, + 0xfc, 0x90, 0x03, 0x74, 0x7c, 0x59, 0xa8, 0x1e, 0xcb, 0x58, 0xff, 0xff, 0x34, 0x2a, 0x89, 0x24, + 0xac, 0x8f, 0xa1, 0x6c, 0x13, 0x4f, 0x31, 0x0e, 0xbc, 0x84, 0xe3, 0x99, 0x7b, 0x46, 0x06, 0xc4, + 0x0c, 0x9f, 0xe5, 0x9b, 0x90, 0x39, 0x5e, 0xb2, 0xa3, 0x00, 0x41, 0x86, 0x73, 0x53, 0x30, 0x89, + 0xd7, 0x0e, 0x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0, 0xd6, 0x8b, 0x13, + 0xa4, 0x40, 0x00, 0x00, } func (x DNSPolicy) String() string { @@ -5747,6 +5765,9 @@ func (this *ProcessInfo) Equal(that interface{}) bool { if this.CID != that1.CID { return false } + if !this.ParentUPID.Equal(that1.ParentUPID) { + return false + } return true } func (this *PodUpdate) Equal(that interface{}) bool { @@ -6025,6 +6046,9 @@ func (this *ProcessCreated) Equal(that interface{}) bool { if this.CID != that1.CID { return false } + if !this.ParentUPID.Equal(that1.ParentUPID) { + return false + } return true } func (this *ProcessTerminated) Equal(that interface{}) bool { @@ -7511,7 +7535,7 @@ func (this *ProcessInfo) GoString() string { if this == nil { return "nil" } - s := make([]string, 0, 10) + s := make([]string, 0, 11) s = append(s, "&metadatapb.ProcessInfo{") s = append(s, "Name: "+fmt.Sprintf("%#v", this.Name)+",\n") if this.UPID != nil { @@ -7521,6 +7545,9 @@ func (this *ProcessInfo) GoString() string { s = append(s, "StopTimestampNS: "+fmt.Sprintf("%#v", this.StopTimestampNS)+",\n") s = append(s, "ProcessArgs: "+fmt.Sprintf("%#v", this.ProcessArgs)+",\n") s = append(s, "CID: "+fmt.Sprintf("%#v", this.CID)+",\n") + if this.ParentUPID != nil { + s = append(s, "ParentUPID: "+fmt.Sprintf("%#v", this.ParentUPID)+",\n") + } s = append(s, "}") return strings.Join(s, "") } @@ -7610,7 +7637,7 @@ func (this *ProcessCreated) GoString() string { if this == nil { return "nil" } - s := make([]string, 0, 8) + s := make([]string, 0, 9) s = append(s, "&metadatapb.ProcessCreated{") if this.UPID != nil { s = append(s, "UPID: "+fmt.Sprintf("%#v", this.UPID)+",\n") @@ -7618,6 +7645,9 @@ func (this *ProcessCreated) GoString() string { s = append(s, "StartTimestampNS: "+fmt.Sprintf("%#v", this.StartTimestampNS)+",\n") s = append(s, "Cmdline: "+fmt.Sprintf("%#v", this.Cmdline)+",\n") s = append(s, "CID: "+fmt.Sprintf("%#v", this.CID)+",\n") + if this.ParentUPID != nil { + s = append(s, "ParentUPID: "+fmt.Sprintf("%#v", this.ParentUPID)+",\n") + } s = append(s, "}") return strings.Join(s, "") } @@ -9388,6 +9418,18 @@ func (m *ProcessInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if m.ParentUPID != nil { + { + size, err := m.ParentUPID.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMetadata(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x42 + } if len(m.CID) > 0 { i -= len(m.CID) copy(dAtA[i:], m.CID) @@ -9846,6 +9888,18 @@ func (m *ProcessCreated) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if m.ParentUPID != nil { + { + size, err := m.ParentUPID.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMetadata(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } if len(m.CID) > 0 { i -= len(m.CID) copy(dAtA[i:], m.CID) @@ -12071,6 +12125,10 @@ func (m *ProcessInfo) Size() (n int) { if l > 0 { n += 1 + l + sovMetadata(uint64(l)) } + if m.ParentUPID != nil { + l = m.ParentUPID.Size() + n += 1 + l + sovMetadata(uint64(l)) + } return n } @@ -12301,6 +12359,10 @@ func (m *ProcessCreated) Size() (n int) { if l > 0 { n += 1 + l + sovMetadata(uint64(l)) } + if m.ParentUPID != nil { + l = m.ParentUPID.Size() + n += 1 + l + sovMetadata(uint64(l)) + } return n } @@ -13435,6 +13497,7 @@ func (this *ProcessInfo) String() string { `StopTimestampNS:` + fmt.Sprintf("%v", this.StopTimestampNS) + `,`, `ProcessArgs:` + fmt.Sprintf("%v", this.ProcessArgs) + `,`, `CID:` + fmt.Sprintf("%v", this.CID) + `,`, + `ParentUPID:` + strings.Replace(fmt.Sprintf("%v", this.ParentUPID), "UInt128", "typespb.UInt128", 1) + `,`, `}`, }, "") return s @@ -13536,6 +13599,7 @@ func (this *ProcessCreated) String() string { `StartTimestampNS:` + fmt.Sprintf("%v", this.StartTimestampNS) + `,`, `Cmdline:` + fmt.Sprintf("%v", this.Cmdline) + `,`, `CID:` + fmt.Sprintf("%v", this.CID) + `,`, + `ParentUPID:` + strings.Replace(fmt.Sprintf("%v", this.ParentUPID), "UInt128", "typespb.UInt128", 1) + `,`, `}`, }, "") return s @@ -18122,6 +18186,42 @@ func (m *ProcessInfo) Unmarshal(dAtA []byte) error { } m.CID = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ParentUPID", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMetadata + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMetadata + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMetadata + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ParentUPID == nil { + m.ParentUPID = &typespb.UInt128{} + } + if err := m.ParentUPID.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipMetadata(dAtA[iNdEx:]) @@ -19683,6 +19783,42 @@ func (m *ProcessCreated) Unmarshal(dAtA []byte) error { } m.CID = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ParentUPID", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMetadata + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMetadata + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMetadata + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ParentUPID == nil { + m.ParentUPID = &typespb.UInt128{} + } + if err := m.ParentUPID.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipMetadata(dAtA[iNdEx:]) diff --git a/src/shared/k8s/metadatapb/metadata.proto b/src/shared/k8s/metadatapb/metadata.proto index b39a8ae80ab..d7f6dd87caa 100644 --- a/src/shared/k8s/metadatapb/metadata.proto +++ b/src/shared/k8s/metadatapb/metadata.proto @@ -375,6 +375,7 @@ message ProcessInfo { string cid = 7 [ (gogoproto.customname) = "CID" ]; // DEPRECATED: This was PID, which can be derived from UPID. reserved 3; + px.types.UInt128 parent_upid = 8 [ (gogoproto.customname) = "ParentUPID" ]; } // PodUpdate contains updated information about a Pod on K8s. @@ -488,6 +489,7 @@ message ProcessCreated { string cmdline = 4; // The container ID where under for container where this process is running. string cid = 5 [ (gogoproto.customname) = "CID" ]; + px.types.UInt128 parent_upid = 6 [ (gogoproto.customname) = "ParentUPID" ]; } message ProcessTerminated { diff --git a/src/shared/metadata/cgroup_metadata_reader.cc b/src/shared/metadata/cgroup_metadata_reader.cc index 97d1844e6bb..29f3183a10a 100644 --- a/src/shared/metadata/cgroup_metadata_reader.cc +++ b/src/shared/metadata/cgroup_metadata_reader.cc @@ -16,7 +16,10 @@ * SPDX-License-Identifier: Apache-2.0 */ +#include + #include +#include #include #include #include @@ -103,5 +106,17 @@ Status CGroupMetadataReader::ReadPIDs(PodQOSClass qos_class, std::string_view po return Status::OK(); } +StatusOr CGroupMetadataReader::CgroupID(PodQOSClass qos_class, std::string_view pod_id, + std::string_view container_id, + ContainerType container_type) const { + PX_ASSIGN_OR_RETURN(std::string fpath, PodPath(qos_class, pod_id, container_id, container_type)); + + struct stat st; + if (stat(std::filesystem::path(fpath).parent_path().c_str(), &st) != 0) { + return error::NotFound("Failed to stat the directory of $0", fpath); + } + return st.st_ino; +} + } // namespace md } // namespace px diff --git a/src/shared/metadata/cgroup_metadata_reader.h b/src/shared/metadata/cgroup_metadata_reader.h index c58b8a23457..da7cd016923 100644 --- a/src/shared/metadata/cgroup_metadata_reader.h +++ b/src/shared/metadata/cgroup_metadata_reader.h @@ -55,6 +55,10 @@ class CGroupMetadataReader : public NotCopyable { std::string_view container_id, ContainerType container_type, absl::flat_hash_set* pid_set) const; + virtual StatusOr CgroupID(PodQOSClass qos_class, std::string_view pod_id, + std::string_view container_id, + ContainerType container_type) const; + private: StatusOr PodPath(PodQOSClass qos_class, std::string_view pod_id, std::string_view container_id, ContainerType container_type) const; diff --git a/src/shared/metadata/cgroup_metadata_reader_mock.h b/src/shared/metadata/cgroup_metadata_reader_mock.h index 1eff1839bf5..c428ee4db42 100644 --- a/src/shared/metadata/cgroup_metadata_reader_mock.h +++ b/src/shared/metadata/cgroup_metadata_reader_mock.h @@ -36,6 +36,10 @@ class MockCGroupMetadataReader : public CGroupMetadataReader { MOCK_CONST_METHOD5(ReadPIDs, Status(PodQOSClass qos_class, std::string_view pod_id, std::string_view container_id, ContainerType container_type, absl::flat_hash_set* pid_set)); + MOCK_CONST_METHOD4(CgroupID, + StatusOr(PodQOSClass qos_class, std::string_view pod_id, + std::string_view container_id, + ContainerType container_type)); MOCK_CONST_METHOD1(ReadPIDStartTime, int64_t(uint32_t pid)); MOCK_CONST_METHOD1(ReadPIDCmdline, std::string(uint32_t pid)); }; diff --git a/src/shared/metadata/cgroup_metadata_reader_test.cc b/src/shared/metadata/cgroup_metadata_reader_test.cc index fe00eaf8430..0e2c14e38c9 100644 --- a/src/shared/metadata/cgroup_metadata_reader_test.cc +++ b/src/shared/metadata/cgroup_metadata_reader_test.cc @@ -17,6 +17,8 @@ */ #include "src/shared/metadata/cgroup_metadata_reader.h" +#include + #include #include "src/common/testing/testing.h" @@ -43,5 +45,17 @@ TEST_F(CGroupMetadataReaderTest, read_pid_list) { EXPECT_THAT(pid_set, ::testing::UnorderedElementsAre(123, 456, 789)); } +TEST_F(CGroupMetadataReaderTest, cgroup_id_is_the_inode_of_the_container_directory) { + struct stat st; + ASSERT_EQ(0, stat("src/shared/metadata/testdata/sysfs1/cgroup/cpu,cpuacct/kubepods/besteffort/" + "podabcd/c123", + &st)); + ASSERT_OK_AND_EQ(md_reader_->CgroupID(PodQOSClass::kBestEffort, "abcd", "c123", + ContainerType::kDocker), + st.st_ino); + EXPECT_NOT_OK(md_reader_->CgroupID(PodQOSClass::kBestEffort, "abcd", "missing", + ContainerType::kDocker)); +} + } // namespace md } // namespace px diff --git a/src/shared/metadata/metadata_state.cc b/src/shared/metadata/metadata_state.cc index 098d95179c5..1d462629c69 100644 --- a/src/shared/metadata/metadata_state.cc +++ b/src/shared/metadata/metadata_state.cc @@ -579,9 +579,87 @@ std::shared_ptr AgentMetadataState::CloneToShared() const { state->pids_by_upid_[k] = v->Clone(); } state->upids_ = upids_; + state->parent_upids_ = parent_upids_; + state->parent_upid_order_ = parent_upid_order_; + state->cids_by_cgroup_id_ = cids_by_cgroup_id_; + state->process_cids_ = process_cids_; + state->process_cid_order_ = process_cid_order_; return state; } +namespace { + +template +void EmplaceBounded(absl::flat_hash_map* values, std::deque* order, UPID upid, + const TValue& value) { + if (!values->try_emplace(upid, value).second) { + return; + } + order->push_back(upid); + if (order->size() > AgentMetadataState::kMaxProcessParents) { + values->erase(order->front()); + order->pop_front(); + } +} + +} // namespace + +void AgentMetadataState::AddProcessParent(UPID upid, UPID parent_upid) { + EmplaceBounded(&parent_upids_, &parent_upid_order_, upid, parent_upid); +} + +UPID AgentMetadataState::ParentUPID(UPID upid) const { + const PIDInfo* pid_info = GetPIDByUPID(upid); + if (pid_info != nullptr && pid_info->parent_upid() != UPID()) { + return pid_info->parent_upid(); + } + auto it = parent_upids_.find(upid); + if (it != parent_upids_.end()) { + return it->second; + } + return UPID(); +} + +std::vector> AgentMetadataState::ProcessParents() const { + std::vector> parents(parent_upids_.begin(), parent_upids_.end()); + for (const auto& [upid, pid_info] : pids_by_upid_) { + if (pid_info->parent_upid() != UPID() && !parent_upids_.contains(upid)) { + parents.emplace_back(upid, pid_info->parent_upid()); + } + } + return parents; +} + +void AgentMetadataState::SetContainerCgroupID(const CID& cid, uint64_t cgroup_id) { + cids_by_cgroup_id_[cgroup_id] = cid; +} + +void AgentMetadataState::AddProcessCgroup(UPID upid, uint64_t cgroup_id) { + auto it = cids_by_cgroup_id_.find(cgroup_id); + if (it != cids_by_cgroup_id_.end()) { + EmplaceBounded(&process_cids_, &process_cid_order_, upid, it->second); + } +} + +CID AgentMetadataState::ContainerIDByUPID(UPID upid) const { + for (int depth = 0; depth < kMaxAncestryDepth; ++depth) { + const PIDInfo* pid_info = GetPIDByUPID(upid); + if (pid_info != nullptr) { + return pid_info->cid(); + } + auto cid_it = process_cids_.find(upid); + if (cid_it != process_cids_.end()) { + return cid_it->second; + } + auto it = parent_upids_.find(upid); + if (it == parent_upids_.end()) { + return ""; + } + upid = it->second; + } + return ""; +} + std::string AgentMetadataState::DebugString(int indent_level) const { std::string str; std::string prefix = Indent(indent_level); diff --git a/src/shared/metadata/metadata_state.h b/src/shared/metadata/metadata_state.h index e2fdc9e6c86..00533c4f100 100644 --- a/src/shared/metadata/metadata_state.h +++ b/src/shared/metadata/metadata_state.h @@ -19,6 +19,7 @@ #pragma once #include +#include #include #include #include @@ -385,6 +386,21 @@ class AgentMetadataState : NotCopyable { return nullptr; } + static constexpr size_t kMaxProcessParents = 1 << 17; + static constexpr int kMaxAncestryDepth = 32; + + void AddProcessParent(UPID upid, UPID parent_upid); + + UPID ParentUPID(UPID upid) const; + + std::vector> ProcessParents() const; + + void SetContainerCgroupID(const CID& cid, uint64_t cgroup_id); + + void AddProcessCgroup(UPID upid, uint64_t cgroup_id); + + CID ContainerIDByUPID(UPID upid) const; + void AddUPID(UPID upid, std::unique_ptr pid_info) { DCHECK(pid_info != nullptr); DCHECK_EQ(pid_info->stop_time_ns(), 0); @@ -454,6 +470,12 @@ class AgentMetadataState : NotCopyable { * it is tracked separately as a performance optimization. */ absl::flat_hash_set upids_; + + absl::flat_hash_map parent_upids_; + std::deque parent_upid_order_; + absl::flat_hash_map cids_by_cgroup_id_; + absl::flat_hash_map process_cids_; + std::deque process_cid_order_; }; } // namespace md diff --git a/src/shared/metadata/pids.cc b/src/shared/metadata/pids.cc index 6e2f12a7b03..a40e68aa73f 100644 --- a/src/shared/metadata/pids.cc +++ b/src/shared/metadata/pids.cc @@ -22,8 +22,8 @@ namespace px { namespace md { std::string PIDInfo::DebugString() const { - return absl::Substitute("upid: $0, exe_path=$1, cmdline=$2, cid=$3", upid().String(), exe_path(), - cmdline(), cid()); + return absl::Substitute("upid: $0, exe_path=$1, cmdline=$2, cid=$3, parent_upid=$4", + upid().String(), exe_path(), cmdline(), cid(), parent_upid().String()); } std::string PIDStartedEvent::DebugString() const { diff --git a/src/shared/metadata/pids.h b/src/shared/metadata/pids.h index 26355153f17..9c6d401058c 100644 --- a/src/shared/metadata/pids.h +++ b/src/shared/metadata/pids.h @@ -55,6 +55,10 @@ class PIDInfo { const CID& cid() const { return cid_; } + UPID parent_upid() const { return parent_upid_; } + + void set_parent_upid(UPID parent_upid) { parent_upid_ = parent_upid; } + std::unique_ptr Clone() { auto pid_info = std::make_unique(*this); return pid_info; @@ -63,7 +67,7 @@ class PIDInfo { bool operator==(const PIDInfo& other) const { return (other.upid_ == upid_) && (other.exe_path_ == exe_path_) && (other.cmdline_ == cmdline_) && (other.cid_ == cid_) && - (other.stop_time_ns_ == stop_time_ns_); + (other.stop_time_ns_ == stop_time_ns_) && (other.parent_upid_ == parent_upid_); } bool operator!=(const PIDInfo& other) const { return !(other == *this); } @@ -88,6 +92,8 @@ class PIDInfo { */ CID cid_; + UPID parent_upid_; + /** * The time that this PID stopped running. If 0 we can assume it's still running. */ diff --git a/src/shared/metadata/standalone_state_manager.h b/src/shared/metadata/standalone_state_manager.h index 82cb16030ed..1e64d129b34 100644 --- a/src/shared/metadata/standalone_state_manager.h +++ b/src/shared/metadata/standalone_state_manager.h @@ -50,6 +50,8 @@ class StandaloneAgentMetadataStateManager : public AgentMetadataStateManager { return px::error::Unimplemented("k8s not available in standalone context"); }; + void AddProcessParent(UPID, UPID) override{/* empty */}; + void AddProcessCgroup(UPID, uint64_t) override{/* empty */}; void SetServiceCIDR(CIDRBlock) override{/* empty */}; void SetPodCIDR(std::vector) override{/* empty */}; std::unique_ptr GetNextPIDStatusEvent() override { return nullptr; }; diff --git a/src/shared/metadata/state_manager.cc b/src/shared/metadata/state_manager.cc index ec2924f345b..b2ae5950786 100644 --- a/src/shared/metadata/state_manager.cc +++ b/src/shared/metadata/state_manager.cc @@ -57,6 +57,14 @@ Status AgentMetadataStateManagerImpl::AddK8sUpdate(std::unique_ptr state_update_lock(metadata_state_update_lock_); @@ -92,6 +100,8 @@ Status AgentMetadataStateManagerImpl::PerformMetadataStateUpdate() { PX_RETURN_IF_ERROR( ProcessPIDUpdates(ts, proc_parser_, shadow_state.get(), md_reader_.get(), &pid_updates_)); } + ApplyProcessParents(shadow_state.get(), &process_parents_); + ApplyProcessCgroups(shadow_state.get(), &process_cgroups_); // Update the pod/service CIDRs if they have been updated. { @@ -176,6 +186,11 @@ StatusOr InitUPID(const system::ProcParser& proc_parser, uint32_t asid, ui return UPID(asid, pid, pid_start_time); } +StatusOr InitParentUPID(const system::ProcParser& proc_parser, uint32_t asid, uint32_t pid) { + PX_ASSIGN_OR_RETURN(int32_t ppid, proc_parser.GetPPID(pid)); + return InitUPID(proc_parser, asid, ppid); +} + } // namespace void ProcessContainerPIDUpdates( @@ -223,6 +238,7 @@ void ProcessContainerPIDUpdates( std::string cmdline = proc_parser.GetPIDCmdline(upid.pid()); auto pid_info = std::make_unique(upid, std::move(exe_path), std::move(cmdline), CID(cid)); + pid_info->set_parent_upid(InitParentUPID(proc_parser, md->asid(), upid.pid()).ValueOr(UPID())); // Push creation events to the queue. pid_updates->enqueue(std::make_unique(*pid_info)); @@ -290,6 +306,11 @@ Status ProcessPIDUpdates( continue; } + auto cgroup_id = md_reader->CgroupID(pod_info->qos_class(), pod_id, cid, cinfo->type()); + if (cgroup_id.ok()) { + md->SetContainerCgroupID(cid, cgroup_id.ValueOrDie()); + } + ProcessContainerPIDUpdates(cid, ts, proc_parser, md, cinfo->mutable_active_upids(), &cgroups_active_pids, pid_updates); } @@ -297,6 +318,24 @@ Status ProcessPIDUpdates( return Status::OK(); } +void ApplyProcessParents( + AgentMetadataState* state, + moodycamel::BlockingConcurrentQueue>* process_parents) { + std::pair process_parent; + while (process_parents->try_dequeue(process_parent)) { + state->AddProcessParent(process_parent.first, process_parent.second); + } +} + +void ApplyProcessCgroups( + AgentMetadataState* state, + moodycamel::BlockingConcurrentQueue>* process_cgroups) { + std::pair process_cgroup; + while (process_cgroups->try_dequeue(process_cgroup)) { + state->AddProcessCgroup(process_cgroup.first, process_cgroup.second); + } +} + Status DeleteMetadataForDeadObjects(AgentMetadataState* state, int64_t retention_time) { PX_RETURN_IF_ERROR( state->k8s_metadata_state()->CleanupExpiredMetadata(state->current_time(), retention_time)); diff --git a/src/shared/metadata/state_manager.h b/src/shared/metadata/state_manager.h index 67dec26b962..fccb33473c8 100644 --- a/src/shared/metadata/state_manager.h +++ b/src/shared/metadata/state_manager.h @@ -93,6 +93,10 @@ class AgentMetadataStateManager { */ virtual Status AddK8sUpdate(std::unique_ptr update) = 0; + virtual void AddProcessParent(UPID upid, UPID parent_upid) = 0; + + virtual void AddProcessCgroup(UPID upid, uint64_t cgroup_id) = 0; + /** * Sets the service CIDR. * @param the service CIDR. @@ -140,6 +144,10 @@ class AgentMetadataStateManagerImpl : public AgentMetadataStateManager { Status AddK8sUpdate(std::unique_ptr update) override; + void AddProcessParent(UPID upid, UPID parent_upid) override; + + void AddProcessCgroup(UPID upid, uint64_t cgroup_id) override; + void SetServiceCIDR(CIDRBlock cidr) override { absl::base_internal::SpinLockHolder lock(&cidr_lock_); service_cidr_ = std::move(cidr); @@ -175,6 +183,8 @@ class AgentMetadataStateManagerImpl : public AgentMetadataStateManager { moodycamel::BlockingConcurrentQueue> incoming_k8s_updates_; moodycamel::BlockingConcurrentQueue> pid_updates_; + moodycamel::BlockingConcurrentQueue> process_parents_; + moodycamel::BlockingConcurrentQueue> process_cgroups_; absl::base_internal::SpinLock cidr_lock_; std::optional service_cidr_; @@ -202,6 +212,14 @@ Status ProcessPIDUpdates( int64_t ts, const system::ProcParser& proc_parser, AgentMetadataState*, CGroupMetadataReader*, moodycamel::BlockingConcurrentQueue>* pid_updates); +void ApplyProcessParents( + AgentMetadataState* state, + moodycamel::BlockingConcurrentQueue>* process_parents); + +void ApplyProcessCgroups( + AgentMetadataState* state, + moodycamel::BlockingConcurrentQueue>* process_cgroups); + /** * Deletes metadata for dead objects. */ diff --git a/src/shared/metadata/state_manager_test.cc b/src/shared/metadata/state_manager_test.cc index b8c0cbdc446..1f551e26ed9 100644 --- a/src/shared/metadata/state_manager_test.cc +++ b/src/shared/metadata/state_manager_test.cc @@ -197,6 +197,14 @@ class FakePIDData : public MockCGroupMetadataReader { return error::NotFound("no found"); } + + StatusOr CgroupID(PodQOSClass, std::string_view, std::string_view container_id, + ContainerType) const override { + if (container_id == "container_id1") { + return 77; + } + return error::NotFound("no found"); + } }; // Generates some test updates for entry into the AgentMetadataState. @@ -395,9 +403,121 @@ TEST_F(AgentMetadataStateTest, pid_created) { PIDInfo pid1(UPID(kASID, 100 /*pid*/, 1000 /*ts*/), "", "cmdline100", "container_id1"); PIDInfo pid2(UPID(kASID /*asid*/, 200 /*pid*/, 2000 /*ts*/), "", "cmdline200", "container_id1"); + UPID parent(kASID, 3260 /*pid*/, 500 /*ts*/); + pid1.set_parent_upid(parent); + pid2.set_parent_upid(parent); EXPECT_EQ(2, pids_started.size()); EXPECT_THAT(pids_started, UnorderedElementsAre(PIDStartedEvent{pid1}, PIDStartedEvent{pid2})); + EXPECT_EQ(metadata_state_.ParentUPID(pid1.upid()), parent); +} + +TEST_F(AgentMetadataStateTest, short_lived_process_resolves_to_ancestor) { + UPID parent(kASID, 100 /*pid*/, 1000 /*ts*/); + UPID child(kASID, 300 /*pid*/, 3000 /*ts*/); + UPID grandchild(kASID, 301 /*pid*/, 3001 /*ts*/); + metadata_state_.AddUPID(parent, + std::make_unique(parent, "", "cmdline100", "container_id1")); + metadata_state_.AddProcessParent(child, parent); + metadata_state_.AddProcessParent(grandchild, child); + + EXPECT_EQ(metadata_state_.ParentUPID(grandchild), child); + EXPECT_EQ(metadata_state_.ParentUPID(child), parent); + EXPECT_EQ(metadata_state_.GetPIDByUPID(grandchild), nullptr); + EXPECT_EQ(metadata_state_.ContainerIDByUPID(UPID(kASID, 999 /*pid*/, 9 /*ts*/)), ""); + EXPECT_EQ(metadata_state_.ContainerIDByUPID(grandchild), "container_id1"); + EXPECT_EQ(metadata_state_.CloneToShared()->ContainerIDByUPID(grandchild), "container_id1"); +} + +TEST_F(AgentMetadataStateTest, process_resolves_to_the_container_of_its_cgroup) { + UPID process(kASID, 300 /*pid*/, 3000 /*ts*/); + UPID child(kASID, 301 /*pid*/, 3001 /*ts*/); + UPID other(kASID, 302 /*pid*/, 3002 /*ts*/); + metadata_state_.SetContainerCgroupID("container_id1", 77); + metadata_state_.AddProcessCgroup(process, 77); + metadata_state_.AddProcessCgroup(other, 78); + metadata_state_.AddProcessParent(child, process); + + EXPECT_EQ(metadata_state_.ContainerIDByUPID(process), "container_id1"); + EXPECT_EQ(metadata_state_.ContainerIDByUPID(child), "container_id1"); + EXPECT_EQ(metadata_state_.ContainerIDByUPID(other), ""); + EXPECT_EQ(metadata_state_.CloneToShared()->ContainerIDByUPID(process), "container_id1"); +} + +TEST_F(AgentMetadataStateTest, process_cgroups_are_bounded) { + metadata_state_.SetContainerCgroupID("container_id1", 77); + for (uint32_t i = 0; i <= AgentMetadataState::kMaxProcessParents; ++i) { + metadata_state_.AddProcessCgroup(UPID(kASID, 1000 + i, 1 /*ts*/), 77); + } + + EXPECT_EQ(metadata_state_.ContainerIDByUPID(UPID(kASID, 1000 /*pid*/, 1 /*ts*/)), ""); + EXPECT_EQ(metadata_state_.ContainerIDByUPID(UPID(kASID, 1001 /*pid*/, 1 /*ts*/)), + "container_id1"); +} + +TEST_F(AgentMetadataStateTest, process_cgroups_are_applied_after_the_scan) { + moodycamel::BlockingConcurrentQueue> updates; + GenerateTestUpdateEvents(&updates); + ASSERT_OK(ApplyK8sUpdates(2000 /*ts*/, &metadata_state_, &md_filter_, &updates)); + FakePIDData md_reader; + system::ProcParser proc_parser; + moodycamel::BlockingConcurrentQueue> pid_updates; + ASSERT_OK(ProcessPIDUpdates(1000, proc_parser, &metadata_state_, &md_reader, &pid_updates)); + + UPID process(kASID, 300 /*pid*/, 3000 /*ts*/); + moodycamel::BlockingConcurrentQueue> process_cgroups; + process_cgroups.enqueue({process, 77}); + ApplyProcessCgroups(&metadata_state_, &process_cgroups); + + EXPECT_EQ(0, process_cgroups.size_approx()); + EXPECT_EQ(metadata_state_.ContainerIDByUPID(process), "container_id1"); +} + +TEST_F(AgentMetadataStateTest, reported_parent_fills_missing_parent) { + UPID parent(kASID, 100 /*pid*/, 1000 /*ts*/); + UPID child(kASID, 300 /*pid*/, 3000 /*ts*/); + metadata_state_.AddUPID(child, + std::make_unique(child, "", "cmdline300", "container_id1")); + metadata_state_.AddProcessParent(child, parent); + + EXPECT_EQ(metadata_state_.ParentUPID(child), parent); +} + +TEST_F(AgentMetadataStateTest, process_parents_are_listed) { + UPID init(kASID, 1 /*pid*/, 10 /*ts*/); + UPID parent(kASID, 100 /*pid*/, 1000 /*ts*/); + UPID child(kASID, 300 /*pid*/, 3000 /*ts*/); + auto parent_info = std::make_unique(parent, "", "cmdline100", "container_id1"); + parent_info->set_parent_upid(init); + metadata_state_.AddUPID(parent, std::move(parent_info)); + metadata_state_.AddUPID(init, std::make_unique(init, "", "cmdline1", "container_id1")); + metadata_state_.AddProcessParent(parent, init); + metadata_state_.AddProcessParent(child, parent); + + EXPECT_THAT(metadata_state_.ProcessParents(), + UnorderedElementsAre(Pair(child, parent), Pair(parent, init))); +} + +TEST_F(AgentMetadataStateTest, process_parents_are_bounded) { + UPID parent(kASID, 100 /*pid*/, 1000 /*ts*/); + for (uint32_t i = 0; i <= AgentMetadataState::kMaxProcessParents; ++i) { + metadata_state_.AddProcessParent(UPID(kASID, 1000 + i, 1 /*ts*/), parent); + } + + EXPECT_EQ(metadata_state_.ParentUPID(UPID(kASID, 1000 /*pid*/, 1 /*ts*/)), UPID()); + EXPECT_EQ(metadata_state_.ParentUPID(UPID(kASID, 1001 /*pid*/, 1 /*ts*/)), parent); +} + +TEST_F(AgentMetadataStateTest, process_parents_are_applied) { + UPID parent(kASID, 100 /*pid*/, 1000 /*ts*/); + UPID child(kASID, 300 /*pid*/, 3000 /*ts*/); + moodycamel::BlockingConcurrentQueue> process_parents; + process_parents.enqueue({child, parent}); + + ApplyProcessParents(&metadata_state_, &process_parents); + + EXPECT_EQ(0, process_parents.size_approx()); + EXPECT_EQ(metadata_state_.ParentUPID(child), parent); } TEST_F(AgentMetadataStateTest, insert_into_filter) { diff --git a/src/shared/metadata/testdata/proc/3260/stat b/src/shared/metadata/testdata/proc/3260/stat new file mode 100644 index 00000000000..44e96cbfc1c --- /dev/null +++ b/src/shared/metadata/testdata/proc/3260/stat @@ -0,0 +1 @@ +3260 (bash) S 1 4602 3260 34818 4602 1077936128 1799 174589 55 68 8 23 106 72 20 0 13 0 500 114384896 2577 18446744073709551615 4194304 7917379 140730842479232 0 0 0 1006254592 0 2143420159 0 0 0 17 3 0 0 3 0 0 12193792 12432192 34951168 140730842488151 140730842488200 140730842488200 140730842492896 0 diff --git a/src/stirling/core/connector_context.h b/src/stirling/core/connector_context.h index 174ba0813e7..7504699d2ff 100644 --- a/src/stirling/core/connector_context.h +++ b/src/stirling/core/connector_context.h @@ -28,6 +28,7 @@ #include "src/shared/metadata/metadata_state.h" #include "src/shared/types/types.h" #include "src/shared/upid/upid.h" +#include "src/stirling/core/types.h" #include "src/stirling/utils/proc_tracker.h" namespace px { @@ -74,6 +75,10 @@ class ConnectorContext { virtual std::vector GetClusterCIDRs() = 0; virtual void RefreshUPIDList() = 0; + + virtual void AddProcessParent(const md::UPID& /*upid*/, const md::UPID& /*parent_upid*/) {} + + virtual void AddProcessCgroup(const md::UPID& /*upid*/, uint64_t /*cgroup_id*/) {} }; /** @@ -86,8 +91,12 @@ class AgentContext : public ConnectorContext { * @param agent_metadata_state A read-only snapshot view of the metadata state. This state * should not be held onto for extended periods of time. */ - explicit AgentContext(std::shared_ptr agent_metadata_state) - : agent_metadata_state_(std::move(agent_metadata_state)) { + explicit AgentContext(std::shared_ptr agent_metadata_state, + ProcessParentCallback process_parent_callback = nullptr, + ProcessCgroupCallback process_cgroup_callback = nullptr) + : agent_metadata_state_(std::move(agent_metadata_state)), + process_parent_callback_(std::move(process_parent_callback)), + process_cgroup_callback_(std::move(process_cgroup_callback)) { DCHECK(agent_metadata_state_ != nullptr); } @@ -113,8 +122,22 @@ class AgentContext : public ConnectorContext { void RefreshUPIDList() override{}; + void AddProcessParent(const md::UPID& upid, const md::UPID& parent_upid) override { + if (process_parent_callback_ != nullptr) { + process_parent_callback_(upid, parent_upid); + } + } + + void AddProcessCgroup(const md::UPID& upid, uint64_t cgroup_id) override { + if (process_cgroup_callback_ != nullptr) { + process_cgroup_callback_(upid, cgroup_id); + } + } + private: std::shared_ptr agent_metadata_state_; + ProcessParentCallback process_parent_callback_; + ProcessCgroupCallback process_cgroup_callback_; }; /** diff --git a/src/stirling/core/connector_context_test.cc b/src/stirling/core/connector_context_test.cc index f08679908e5..0ee7b874953 100644 --- a/src/stirling/core/connector_context_test.cc +++ b/src/stirling/core/connector_context_test.cc @@ -18,11 +18,18 @@ #include +#include +#include +#include + #include "src/stirling/core/connector_context.h" +#include "src/common/event/real_time_system.h" #include "src/common/testing/testing.h" using ::px::testing::BazelRunfilePath; +using ::testing::ElementsAre; +using ::testing::Pair; using ::testing::UnorderedElementsAre; namespace px { @@ -37,5 +44,35 @@ TEST(SystemWideStandaloneContextTest, ListUPIDs) { md::UPID{0, 456, 17594622}, md::UPID{0, 789, 46120203})); } +TEST(AgentContextTest, ForwardsProcessParents) { + event::RealTimeSystem time_system; + auto state = std::make_shared("myhost", 1, 123, sole::uuid4(), "mypod", + sole::uuid4(), "myvizier", + "myviziernamespace", &time_system); + std::vector> parents; + AgentContext ctx(state, [&parents](md::UPID upid, md::UPID parent_upid) { + parents.emplace_back(upid, parent_upid); + }); + + ctx.AddProcessParent(md::UPID{1, 300, 3000}, md::UPID{1, 100, 1000}); + + EXPECT_THAT(parents, ElementsAre(Pair(md::UPID{1, 300, 3000}, md::UPID{1, 100, 1000}))); +} + +TEST(AgentContextTest, ReportsProcessCgroup) { + event::RealTimeSystem time_system; + auto state = std::make_shared("myhost", 1, 123, sole::uuid4(), "mypod", + sole::uuid4(), "myvizier", + "myviziernamespace", &time_system); + std::vector> cgroups; + AgentContext ctx(state, nullptr, [&cgroups](md::UPID upid, uint64_t cgroup_id) { + cgroups.emplace_back(upid, cgroup_id); + }); + + ctx.AddProcessCgroup(md::UPID{1, 300, 3000}, 77); + + EXPECT_THAT(cgroups, ElementsAre(Pair(md::UPID{1, 300, 3000}, 77))); +} + } // namespace stirling } // namespace px diff --git a/src/stirling/core/types.h b/src/stirling/core/types.h index 307ddfc6993..be321915d25 100644 --- a/src/stirling/core/types.h +++ b/src/stirling/core/types.h @@ -43,6 +43,10 @@ using AgentMetadataType = std::shared_ptr; */ using AgentMetadataCallback = std::function; +using ProcessParentCallback = std::function; + +using ProcessCgroupCallback = std::function; + class DataElement { public: constexpr DataElement() = delete; diff --git a/src/stirling/source_connectors/proc_exit/bcc_bpf/proc_exit_trace.c b/src/stirling/source_connectors/proc_exit/bcc_bpf/proc_exit_trace.c index eba06c7549a..ac0c449a940 100644 --- a/src/stirling/source_connectors/proc_exit/bcc_bpf/proc_exit_trace.c +++ b/src/stirling/source_connectors/proc_exit/bcc_bpf/proc_exit_trace.c @@ -26,6 +26,9 @@ #include "src/stirling/upid/upid.h" BPF_PERF_OUTPUT(proc_exit_events); +BPF_PERF_OUTPUT(proc_fork_events); + +BPF_HASH(new_process_pids, uint64_t, uint32_t); // This array records singular values that are used by probes. We group them together to reduce the // number of arrays with only 1 element. Use of per-cpu array shall be the most efficient way, @@ -61,6 +64,7 @@ TRACEPOINT_PROBE(sched, sched_process_exit) { event.upid.tgid = tgid; event.upid.start_time_ticks = read_start_boottime(task); event.exit_code = read_exit_code(task); + event.cgroup_id = bpf_get_current_cgroup_id(); bpf_get_current_comm(&event.comm, sizeof(event.comm)); proc_exit_events.perf_submit(args, &event, sizeof(event)); @@ -68,3 +72,37 @@ TRACEPOINT_PROBE(sched, sched_process_exit) { return 0; } + +TRACEPOINT_PROBE(task, task_newtask) { + if (args->clone_flags & CLONE_THREAD) { + return 0; + } + + uint64_t id = bpf_get_current_pid_tgid(); + uint32_t pid = args->pid; + new_process_pids.update(&id, &pid); + + return 0; +} + +int probe_wake_up_new_task(struct pt_regs* ctx) { + uint64_t id = bpf_get_current_pid_tgid(); + + uint32_t* pid = new_process_pids.lookup(&id); + if (pid == NULL) { + return 0; + } + + struct task_struct* task = (struct task_struct*)PT_REGS_PARM1(ctx); + struct proc_fork_event_t event = {}; + + event.upid.tgid = *pid; + event.upid.start_time_ticks = read_start_boottime(task); + event.parent_upid.tgid = id >> 32; + event.parent_upid.start_time_ticks = get_tgid_start_time(); + + new_process_pids.delete(&id); + proc_fork_events.perf_submit(ctx, &event, sizeof(event)); + + return 0; +} diff --git a/src/stirling/source_connectors/proc_exit/bcc_bpf_intf/proc_exit.h b/src/stirling/source_connectors/proc_exit/bcc_bpf_intf/proc_exit.h index aa555c77085..43fb904e4a7 100644 --- a/src/stirling/source_connectors/proc_exit/bcc_bpf_intf/proc_exit.h +++ b/src/stirling/source_connectors/proc_exit/bcc_bpf_intf/proc_exit.h @@ -37,6 +37,13 @@ struct proc_exit_event_t { // See https://unix.stackexchange.com/questions/655950/command-args-and-process-name // It's assigned by bpf_get_current_comm() hence the name comm. char comm[MAX_CMD_SIZE]; + + uint64_t cgroup_id; +}; + +struct proc_fork_event_t { + struct upid_t upid; + struct upid_t parent_upid; }; // Specifies the corresponding indexes of the entries of a per-cpu array. diff --git a/src/stirling/source_connectors/proc_exit/proc_exit_connector.cc b/src/stirling/source_connectors/proc_exit/proc_exit_connector.cc index 2976dc85207..ad2805cfe8d 100644 --- a/src/stirling/source_connectors/proc_exit/proc_exit_connector.cc +++ b/src/stirling/source_connectors/proc_exit/proc_exit_connector.cc @@ -38,10 +38,17 @@ namespace stirling { namespace proc_exit_tracer { constexpr uint32_t kPerfBufferPerCPUSizeBytes = 5 * 1024 * 1024; +constexpr uint32_t kForkPerfBufferPerCPUSizeBytes = 256 * 1024; -const auto kTracepointSpecs = - MakeArray({{std::string("sched:sched_process_exit"), - std::string("tracepoint__sched__sched_process_exit")}}); +const auto kTracepointSpecs = MakeArray({ + {std::string("sched:sched_process_exit"), std::string("tracepoint__sched__sched_process_exit")}, + {std::string("task:task_newtask"), std::string("tracepoint__task__task_newtask")}, +}); + +const auto kProbeSpecs = MakeArray({ + {"wake_up_new_task", bpf_tools::BPFProbeAttachType::kEntry, "probe_wake_up_new_task", + /*is_syscall*/ false}, +}); void HandleProcExitEvent(void* cb_cookie, void* data, int /*data_size*/) { auto* connector = reinterpret_cast(cb_cookie); @@ -49,14 +56,26 @@ void HandleProcExitEvent(void* cb_cookie, void* data, int /*data_size*/) { connector->AcceptProcExitEvent(*event); } +void HandleProcForkEvent(void* cb_cookie, void* data, int /*data_size*/) { + auto* connector = reinterpret_cast(cb_cookie); + auto* event = reinterpret_cast(data); + connector->AcceptProcForkEvent(*event); +} + void HandleProcExitEventLoss(void* /*cb_cookie*/, uint64_t /*lost*/) { // TODO(yzhao): Add stats counter. } +void HandleProcForkEventLoss(void* cb_cookie, uint64_t lost) { + auto* connector = reinterpret_cast(cb_cookie); + connector->AcceptProcForkEventLoss(lost); +} + // Use char array to meet the user's interface, which expects std::string. constexpr char kJavaProcCrashedCounter[] = "java_proc_crashed"; constexpr char kJavaProcCrashedWithProfilerCounter[] = "java_proc_crashed_with_profiler"; constexpr char kJavaProcCrashedWithoutProfilerCounter[] = "java_proc_crashed_without_profiler"; +constexpr char kProcForkEventsLostCounter[] = "proc_fork_events_lost"; ProcExitConnector::ProcExitConnector(std::string_view name) : BCCSourceConnector(name, kTables), @@ -65,14 +84,24 @@ ProcExitConnector::ProcExitConnector(std::string_view name) java_proc_crashed_with_profiler_counter_(BuildCounter( kJavaProcCrashedWithProfilerCounter, "Count of the crashed Java processes that also had profiler agent attached")), - java_proc_crashed_without_profiler_counter_(BuildCounter( - kJavaProcCrashedWithoutProfilerCounter, - "Count of the crashed Java processes that hadn't attached profiler agent")) {} + java_proc_crashed_without_profiler_counter_( + BuildCounter(kJavaProcCrashedWithoutProfilerCounter, + "Count of the crashed Java processes that hadn't attached profiler agent")), + proc_fork_events_lost_counter_( + BuildCounter(kProcForkEventsLostCounter, "Count of the lost process creation events")) {} void ProcExitConnector::AcceptProcExitEvent(const struct proc_exit_event_t& event) { events_.push_back(event); } +void ProcExitConnector::AcceptProcForkEvent(const struct proc_fork_event_t& event) { + fork_events_.push_back(event); +} + +void ProcExitConnector::AcceptProcForkEventLoss(uint64_t lost) { + proc_fork_events_lost_counter_.Increment(lost); +} + Status ProcExitConnector::InitImpl() { sampling_freq_mgr_.set_period(kSamplingPeriod); push_freq_mgr_.set_period(kPushPeriod); @@ -96,9 +125,12 @@ Status ProcExitConnector::InitImpl() { const auto perf_buffer_specs = MakeArray({ {"proc_exit_events", HandleProcExitEvent, HandleProcExitEventLoss, this, kPerfBufferPerCPUSizeBytes, bpf_tools::PerfBufferSizeCategory::kControl}, + {"proc_fork_events", HandleProcForkEvent, HandleProcForkEventLoss, this, + kForkPerfBufferPerCPUSizeBytes, bpf_tools::PerfBufferSizeCategory::kControl}, }); PX_RETURN_IF_ERROR(bcc_->AttachTracepoints(kTracepointSpecs)); + PX_RETURN_IF_ERROR(bcc_->AttachKProbes(kProbeSpecs)); PX_RETURN_IF_ERROR(bcc_->OpenPerfBuffers(perf_buffer_specs)); return Status::OK(); @@ -115,12 +147,19 @@ void ProcExitConnector::TransferDataImpl(ConnectorContext* ctx) { bcc_->PollPerfBuffers(); + for (const auto& event : fork_events_) { + ctx->AddProcessParent(event.upid.ToMetadataUPID(ctx->GetASID()), + event.parent_upid.ToMetadataUPID(ctx->GetASID())); + } + fork_events_.clear(); + DataTable* data_table = data_tables_[0]; for (auto& event : events_) { event.timestamp_ns = ConvertToRealTime(event.timestamp_ns); DataTable::RecordBuilder<&kProcExitEventsTable> r(data_table, event.timestamp_ns); r.Append(event.timestamp_ns); md::UPID upid(ctx->GetASID(), event.upid.pid, event.upid.start_time_ticks); + ctx->AddProcessCgroup(upid, event.cgroup_id); r.Append(upid.value()); // Exit code and signals are encoded in the exit_code field of the task_struct of the process. // See the description below: diff --git a/src/stirling/source_connectors/proc_exit/proc_exit_connector.h b/src/stirling/source_connectors/proc_exit/proc_exit_connector.h index 90347b6ed07..bba164fe712 100644 --- a/src/stirling/source_connectors/proc_exit/proc_exit_connector.h +++ b/src/stirling/source_connectors/proc_exit/proc_exit_connector.h @@ -52,6 +52,8 @@ class ProcExitConnector : public BCCSourceConnector { ~ProcExitConnector() override = default; void AcceptProcExitEvent(const struct proc_exit_event_t& event); + void AcceptProcForkEvent(const struct proc_fork_event_t& event); + void AcceptProcForkEventLoss(uint64_t lost); protected: explicit ProcExitConnector(std::string_view name); @@ -62,6 +64,7 @@ class ProcExitConnector : public BCCSourceConnector { private: std::vector events_; + std::vector fork_events_; private: // Update counters related to java process. @@ -72,6 +75,7 @@ class ProcExitConnector : public BCCSourceConnector { prometheus::Counter& java_proc_crashed_counter_; prometheus::Counter& java_proc_crashed_with_profiler_counter_; prometheus::Counter& java_proc_crashed_without_profiler_counter_; + prometheus::Counter& proc_fork_events_lost_counter_; StirlingMonitor& monitor_ = *StirlingMonitor::GetInstance(); }; diff --git a/src/stirling/source_connectors/proc_exit/proc_exit_trace_bpf_test.cc b/src/stirling/source_connectors/proc_exit/proc_exit_trace_bpf_test.cc index e28bb11f0e6..ac025a21b5a 100644 --- a/src/stirling/source_connectors/proc_exit/proc_exit_trace_bpf_test.cc +++ b/src/stirling/source_connectors/proc_exit/proc_exit_trace_bpf_test.cc @@ -18,7 +18,17 @@ #include "src/stirling/source_connectors/proc_exit/proc_exit_connector.h" +#include + +#include +#include +#include + +#include + #include "src/common/exec/subprocess.h" +#include "src/common/metrics/metrics.h" +#include "src/common/system/proc_parser.h" #include "src/common/testing/testing.h" #include "src/stirling/core/connector_context.h" #include "src/stirling/core/data_tables.h" @@ -31,8 +41,29 @@ namespace proc_exit_tracer { using ::px::SubProcess; using ::px::stirling::testing::RecordBatchSizeIs; using ::px::testing::BazelRunfilePath; +using ::testing::ElementsAre; using ::testing::SizeIs; +class ProcessParentContext : public StandaloneContext { + public: + using StandaloneContext::StandaloneContext; + + void AddProcessParent(const md::UPID& upid, const md::UPID& parent_upid) override { + parents_[upid] = parent_upid; + } + + void AddProcessCgroup(const md::UPID& upid, uint64_t cgroup_id) override { + cgroups_[upid] = cgroup_id; + } + + const absl::flat_hash_map& parents() const { return parents_; } + const absl::flat_hash_map& cgroups() const { return cgroups_; } + + private: + absl::flat_hash_map parents_; + absl::flat_hash_map cgroups_; +}; + // Tests that ProcExitConnector::TransferData() does not throw any failures. TEST(ProcExitConnectorTest, TransferData) { auto connector = ProcExitConnector::Create("test_proc_exit_connector"); @@ -65,6 +96,102 @@ TEST(ProcExitConnectorTest, TransferData) { EXPECT_EQ(result[proc_exit_tracer::kCommIdx]->Get(0), "sleep"); } +TEST(ProcExitConnectorTest, ReportsParentOfNewProcess) { + auto connector = ProcExitConnector::Create("test_proc_exit_connector"); + ASSERT_TRUE(connector != nullptr); + EXPECT_OK(connector->Init()); + ProcessParentContext context({md::UPID{0, 1, 1}}); + + DataTables data_tables{ProcExitConnector::kTables}; + connector->set_data_tables(data_tables.tables()); + + const std::filesystem::path sleep_path = + BazelRunfilePath("src/stirling/source_connectors/proc_exit/testing/sleep"); + SubProcess proc; + ASSERT_OK(proc.Start({sleep_path.string()})); + system::ProcParser proc_parser; + ASSERT_OK_AND_ASSIGN(int64_t start_time, proc_parser.GetPIDStartTimeTicks(proc.child_pid())); + ASSERT_OK_AND_ASSIGN(int64_t parent_start_time, proc_parser.GetPIDStartTimeTicks(getpid())); + proc.Kill(); + proc.Wait(); + connector->TransferData(&context); + + const md::UPID upid(0, proc.child_pid(), start_time); + ASSERT_TRUE(context.parents().contains(upid)); + EXPECT_EQ(context.parents().at(upid), md::UPID(0, getpid(), parent_start_time)); +} + +TEST(ProcExitConnectorTest, ReportsCgroupOfExitedProcess) { + auto connector = ProcExitConnector::Create("test_proc_exit_connector"); + ASSERT_TRUE(connector != nullptr); + EXPECT_OK(connector->Init()); + ProcessParentContext context({md::UPID{0, 1, 1}}); + + DataTables data_tables{ProcExitConnector::kTables}; + connector->set_data_tables(data_tables.tables()); + + std::string cgroup; + std::ifstream ifs("/proc/self/cgroup"); + for (std::string line; std::getline(ifs, line);) { + if (absl::StartsWith(line, "0::")) { + cgroup = line.substr(3); + } + } + struct stat st; + ASSERT_EQ(0, stat(("/sys/fs/cgroup" + cgroup).c_str(), &st)); + + SubProcess proc; + ASSERT_OK(proc.Start([] { return 0; }, {})); + proc.Wait(); + connector->TransferData(&context); + + std::vector cgroups; + for (const auto& [upid, cgroup_id] : context.cgroups()) { + if (upid.pid() == static_cast(proc.child_pid())) { + cgroups.push_back(cgroup_id); + } + } + EXPECT_THAT(cgroups, ElementsAre(st.st_ino)); +} + +TEST(ProcExitConnectorTest, ReportsParentOfShortLivedProcess) { + auto connector = ProcExitConnector::Create("test_proc_exit_connector"); + ASSERT_TRUE(connector != nullptr); + EXPECT_OK(connector->Init()); + ProcessParentContext context({md::UPID{0, 1, 1}}); + + DataTables data_tables{ProcExitConnector::kTables}; + connector->set_data_tables(data_tables.tables()); + + system::ProcParser proc_parser; + ASSERT_OK_AND_ASSIGN(int64_t parent_start_time, proc_parser.GetPIDStartTimeTicks(getpid())); + SubProcess proc; + ASSERT_OK(proc.Start([] { return 0; }, {})); + proc.Wait(); + connector->TransferData(&context); + + std::vector parents; + for (const auto& [upid, parent_upid] : context.parents()) { + if (upid.pid() == static_cast(proc.child_pid())) { + parents.push_back(parent_upid); + } + } + EXPECT_THAT(parents, ElementsAre(md::UPID(0, getpid(), parent_start_time))); +} + +TEST(ProcExitConnectorTest, CountsLostForkEvents) { + auto connector = ProcExitConnector::Create("test_proc_exit_connector"); + static_cast(connector.get())->AcceptProcForkEventLoss(3); + + double lost = 0; + for (const auto& family : GetMetricsRegistry().Collect()) { + if (family.name == "proc_fork_events_lost") { + lost = family.metric[0].counter.value; + } + } + EXPECT_EQ(lost, 3); +} + } // namespace proc_exit_tracer } // namespace stirling } // namespace px diff --git a/src/stirling/stirling.cc b/src/stirling/stirling.cc index 5b15a5ecabd..f82ec487bfe 100644 --- a/src/stirling/stirling.cc +++ b/src/stirling/stirling.cc @@ -208,6 +208,12 @@ class StirlingImpl final : public Stirling { DCHECK(f != nullptr); agent_metadata_callback_ = f; } + void RegisterProcessParentCallback(ProcessParentCallback f) override { + process_parent_callback_ = f; + } + void RegisterProcessCgroupCallback(ProcessCgroupCallback f) override { + process_cgroup_callback_ = f; + } std::unique_ptr GetContext(); void Run() override; @@ -271,6 +277,8 @@ class StirlingImpl final : public Stirling { DataPushCallback data_push_callback_ = nullptr; AgentMetadataCallback agent_metadata_callback_ = nullptr; + ProcessParentCallback process_parent_callback_ = nullptr; + ProcessCgroupCallback process_cgroup_callback_ = nullptr; AgentMetadataType agent_metadata_; absl::base_internal::SpinLock dynamic_trace_status_map_lock_; @@ -422,7 +430,8 @@ Status StirlingImpl::Init() { std::unique_ptr StirlingImpl::GetContext() { if (agent_metadata_callback_ != nullptr) { - return std::unique_ptr(new AgentContext(agent_metadata_callback_())); + return std::unique_ptr(new AgentContext( + agent_metadata_callback_(), process_parent_callback_, process_cgroup_callback_)); } return std::unique_ptr(new SystemWideStandaloneContext()); } diff --git a/src/stirling/stirling.h b/src/stirling/stirling.h index 16a1d65c6e0..8a5516ce448 100644 --- a/src/stirling/stirling.h +++ b/src/stirling/stirling.h @@ -155,6 +155,10 @@ class Stirling : public NotCopyable { */ virtual void RegisterAgentMetadataCallback(AgentMetadataCallback f) = 0; + virtual void RegisterProcessParentCallback(ProcessParentCallback f) = 0; + + virtual void RegisterProcessCgroupCallback(ProcessCgroupCallback f) = 0; + /** * Main data collection call. This version blocks, so make sure to wrap a thread around it. */ diff --git a/src/stirling/testing/stirling_mock.h b/src/stirling/testing/stirling_mock.h index 9a997af8a90..30b0b7e87d4 100644 --- a/src/stirling/testing/stirling_mock.h +++ b/src/stirling/testing/stirling_mock.h @@ -43,6 +43,8 @@ class MockStirling : public Stirling { MOCK_METHOD(void, GetPublishProto, (stirlingpb::Publish * publish_pb), (override)); MOCK_METHOD(void, RegisterDataPushCallback, (DataPushCallback f), (override)); MOCK_METHOD(void, RegisterAgentMetadataCallback, (AgentMetadataCallback f), (override)); + MOCK_METHOD(void, RegisterProcessParentCallback, (ProcessParentCallback f), (override)); + MOCK_METHOD(void, RegisterProcessCgroupCallback, (ProcessCgroupCallback f), (override)); MOCK_METHOD(void, Run, (), (override)); MOCK_METHOD(Status, RunAsThread, (), (override)); MOCK_METHOD(bool, IsRunning, (), (const override)); diff --git a/src/vizier/funcs/md_udtfs/BUILD.bazel b/src/vizier/funcs/md_udtfs/BUILD.bazel index c5a966b5ca6..ee8bbe2f479 100644 --- a/src/vizier/funcs/md_udtfs/BUILD.bazel +++ b/src/vizier/funcs/md_udtfs/BUILD.bazel @@ -14,7 +14,7 @@ # # SPDX-License-Identifier: Apache-2.0 -load("//bazel:pl_build_system.bzl", "pl_cc_library") +load("//bazel:pl_build_system.bzl", "pl_cc_library", "pl_cc_test") package(default_visibility = ["//src/vizier:__subpackages__"]) @@ -50,3 +50,12 @@ pl_cc_library( "@com_github_grpc_grpc//:grpc++", ], ) + +pl_cc_test( + name = "md_udtfs_test", + srcs = ["md_udtfs_test.cc"], + deps = [ + ":cc_library", + "//src/shared/metadata:cc_library", + ], +) diff --git a/src/vizier/funcs/md_udtfs/md_udtfs.cc b/src/vizier/funcs/md_udtfs/md_udtfs.cc index 193c6d45dff..2185f720485 100644 --- a/src/vizier/funcs/md_udtfs/md_udtfs.cc +++ b/src/vizier/funcs/md_udtfs/md_udtfs.cc @@ -40,6 +40,7 @@ void RegisterFuncsOrDie(const VizierFuncFactoryContext& ctx, carnot::udf::Regist registry->RegisterFactoryOrDie>( "GetLinuxHeadersStatus", ctx); + registry->RegisterOrDie("GetProcessParents"); registry->RegisterOrDie("_DebugMDState"); registry->RegisterFactoryOrDie>( "_DebugMDGetWithPrefix", ctx); diff --git a/src/vizier/funcs/md_udtfs/md_udtfs_impl.h b/src/vizier/funcs/md_udtfs/md_udtfs_impl.h index b6af0ca1de8..c5d30bf5a9b 100644 --- a/src/vizier/funcs/md_udtfs/md_udtfs_impl.h +++ b/src/vizier/funcs/md_udtfs/md_udtfs_impl.h @@ -725,6 +725,39 @@ class GetDebugMDState final : public carnot::udf::UDTF { } }; +class GetProcessParents final : public carnot::udf::UDTF { + public: + static constexpr auto Executor() { return carnot::udfspb::UDTFSourceExecutor::UDTF_ALL_PEM; } + + static constexpr auto OutputRelation() { + return MakeArray(ColInfo("upid", types::DataType::UINT128, types::PatternType::GENERAL, + "The unique ID of the process"), + ColInfo("parent_upid", types::DataType::UINT128, types::PatternType::GENERAL, + "The unique ID of the parent process")); + } + + bool NextRecord(FunctionContext* ctx, RecordWriter* rw) { + if (!loaded_) { + parents_ = ctx->metadata_state()->ProcessParents(); + loaded_ = true; + } + if (idx_ >= parents_.size()) { + return false; + } + + rw->Append(parents_[idx_].first.value()); + rw->Append(parents_[idx_].second.value()); + ++idx_; + + return idx_ < parents_.size(); + } + + private: + bool loaded_ = false; + size_t idx_ = 0; + std::vector> parents_; +}; + /** * This UDTF fetches all MDS kvs with the given prefix. */ diff --git a/src/vizier/funcs/md_udtfs/md_udtfs_test.cc b/src/vizier/funcs/md_udtfs/md_udtfs_test.cc new file mode 100644 index 00000000000..0ab3f0464ce --- /dev/null +++ b/src/vizier/funcs/md_udtfs/md_udtfs_test.cc @@ -0,0 +1,68 @@ +/* + * Copyright 2018- The Pixie Authors. + * + * 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. + * + * SPDX-License-Identifier: Apache-2.0 + */ + +#include +#include + +#include +#include + +#include "src/carnot/udf/udf.h" +#include "src/carnot/udf/udf_wrapper.h" +#include "src/common/event/real_time_system.h" +#include "src/common/testing/testing.h" +#include "src/shared/metadata/metadata_state.h" +#include "src/shared/types/types.h" +#include "src/shared/upid/upid.h" +#include "src/vizier/funcs/md_udtfs/md_udtfs_impl.h" + +namespace px { +namespace vizier { +namespace funcs { +namespace md { + +TEST(GetProcessParentsTest, ListsParentsOfProcesses) { + event::RealTimeSystem time_system; + auto state = std::make_shared("myhost", 1, 123, sole::uuid4(), + "mypod", sole::uuid4(), "myvizier", + "myviziernamespace", &time_system); + px::md::UPID child(1, 300, 3000); + px::md::UPID parent(1, 100, 1000); + state->AddProcessParent(child, parent); + carnot::udf::FunctionContext ctx(state, nullptr); + + carnot::udf::UDTFWrapper wrapper; + auto udtf = wrapper.Make(); + arrow::UInt128Builder upids; + arrow::UInt128Builder parent_upids; + std::vector outs{&upids, &parent_upids}; + EXPECT_FALSE(wrapper.ExecBatchUpdate(udtf.get(), &ctx, 100, &outs)); + + std::shared_ptr upid_col; + std::shared_ptr parent_upid_col; + ASSERT_TRUE(upids.Finish(&upid_col).ok()); + ASSERT_TRUE(parent_upids.Finish(&parent_upid_col).ok()); + ASSERT_EQ(upid_col->length(), 1); + EXPECT_EQ(static_cast(upid_col.get())->Value(0), child.value()); + EXPECT_EQ(static_cast(parent_upid_col.get())->Value(0), parent.value()); +} + +} // namespace md +} // namespace funcs +} // namespace vizier +} // namespace px diff --git a/src/vizier/services/agent/pem/pem_manager.cc b/src/vizier/services/agent/pem/pem_manager.cc index 93cb2c21e97..20f8210e600 100644 --- a/src/vizier/services/agent/pem/pem_manager.cc +++ b/src/vizier/services/agent/pem/pem_manager.cc @@ -82,6 +82,14 @@ Status PEMManager::PostRegisterHookImpl() { stirling_->RegisterAgentMetadataCallback( std::bind(&px::md::AgentMetadataStateManager::CurrentAgentMetadataState, mds_manager())); + stirling_->RegisterProcessParentCallback( + std::bind(&px::md::AgentMetadataStateManager::AddProcessParent, mds_manager(), + std::placeholders::_1, std::placeholders::_2)); + + stirling_->RegisterProcessCgroupCallback( + std::bind(&px::md::AgentMetadataStateManager::AddProcessCgroup, mds_manager(), + std::placeholders::_1, std::placeholders::_2)); + PX_RETURN_IF_ERROR(InitSchemas()); PX_RETURN_IF_ERROR(stirling_->RunAsThread()); diff --git a/src/vizier/services/agent/shared/manager/heartbeat.cc b/src/vizier/services/agent/shared/manager/heartbeat.cc index 4b48c5c68a6..ad24179151a 100644 --- a/src/vizier/services/agent/shared/manager/heartbeat.cc +++ b/src/vizier/services/agent/shared/manager/heartbeat.cc @@ -202,6 +202,11 @@ void HeartbeatMessageHandler::ProcessPIDStartedEvent(const px::md::PIDStartedEve } process_info->set_cmdline(cmdline); process_info->set_cid(ev.pid_info.cid()); + + auto parent_upid = ev.pid_info.parent_upid(); + auto* mu_parent_upid = process_info->mutable_parent_upid(); + mu_parent_upid->set_high(absl::Uint128High64(parent_upid.value())); + mu_parent_upid->set_low(absl::Uint128Low64(parent_upid.value())); } void HeartbeatMessageHandler::ProcessPIDTerminatedEvent(const px::md::PIDTerminatedEvent& ev, diff --git a/src/vizier/services/agent/shared/manager/heartbeat_test.cc b/src/vizier/services/agent/shared/manager/heartbeat_test.cc index 249a34ea1fc..d80becc8aca 100644 --- a/src/vizier/services/agent/shared/manager/heartbeat_test.cc +++ b/src/vizier/services/agent/shared/manager/heartbeat_test.cc @@ -80,6 +80,10 @@ process_created { start_timestamp_ns: $0 cmdline: "./a_command" cid: "example_container" + parent_upid { + low: 7 + high: 4294967297 + } } )proto"; @@ -162,6 +166,7 @@ TEST_F(HeartbeatMessageHandlerTest, HandleHeartbeat) { auto start_time_nanos = time_to_nanos(time_system_->MonotonicTime()); md::UPID upid(1, 2, start_time_nanos); md::PIDInfo pid_info(upid, "", "./a_command", "example_container"); + pid_info.set_parent_upid(md::UPID(1, 1, 7)); mds_manager_->AddPIDStatusEvent(std::make_unique(pid_info)); // Publish pid updates. diff --git a/src/vizier/services/agent/shared/manager/test_utils.h b/src/vizier/services/agent/shared/manager/test_utils.h index 1175f8409e0..66cd64b4149 100644 --- a/src/vizier/services/agent/shared/manager/test_utils.h +++ b/src/vizier/services/agent/shared/manager/test_utils.h @@ -85,6 +85,10 @@ class FakeAgentMetadataStateManager : public md::AgentMetadataStateManager { int32_t num_k8s_updates() const { return updates_.size(); } md::ResourceUpdate* k8s_update(int32_t i) const { return updates_[i].get(); } + void AddProcessParent(md::UPID, md::UPID) override {} + + void AddProcessCgroup(md::UPID, uint64_t) override {} + void SetServiceCIDR(CIDRBlock cidr) override { cidr_ = cidr; } void SetPodCIDR(std::vector cidrs) override { pod_cidr_ = cidrs; } diff --git a/src/vizier/services/metadata/controllers/agent/agent.go b/src/vizier/services/metadata/controllers/agent/agent.go index b4e2a5014d8..1c20276d0f5 100644 --- a/src/vizier/services/metadata/controllers/agent/agent.go +++ b/src/vizier/services/metadata/controllers/agent/agent.go @@ -410,6 +410,7 @@ func (m *ManagerImpl) handleCreatedProcesses(processes []*metadatapb.ProcessCrea StartTimestampNS: p.StartTimestampNS, ProcessArgs: p.Cmdline, CID: p.CID, + ParentUPID: p.ParentUPID, } processInfos[i] = pPb } diff --git a/src/vizier/services/metadata/controllers/testutils/test_proto.go b/src/vizier/services/metadata/controllers/testutils/test_proto.go index fc912a95beb..09c33db3b6b 100644 --- a/src/vizier/services/metadata/controllers/testutils/test_proto.go +++ b/src/vizier/services/metadata/controllers/testutils/test_proto.go @@ -178,6 +178,10 @@ upid { start_timestamp_ns: 4 cmdline: "./bin/bash" cid: "container_1" +parent_upid { + low: 89000 + high: 528280977975 +} ` // ProcessInfo1PB is the process info for the first created process. @@ -189,6 +193,10 @@ upid { start_timestamp_ns: 4 process_args: "./bin/bash" cid: "container_1" +parent_upid { + low: 89000 + high: 528280977975 +} ` // ProcessCreated2PB is the protobuf for another created process.