chromium/third_party/perfetto/src/trace_processor/importers/ftrace/v4l2_tracker.cc

/*
 * Copyright (C) 2022 The Android Open Source Project
 *
 * 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.
 */

#include <memory>

#include "perfetto/ext/base/hash.h"
#include "perfetto/ext/base/string_utils.h"

#include "src/trace_processor/importers/common/args_tracker.h"
#include "src/trace_processor/importers/common/flow_tracker.h"
#include "src/trace_processor/importers/common/process_tracker.h"
#include "src/trace_processor/importers/common/slice_tracker.h"
#include "src/trace_processor/importers/common/track_tracker.h"
#include "src/trace_processor/importers/ftrace/v4l2_tracker.h"

#include "protos/perfetto/trace/ftrace/ftrace_event.pbzero.h"
#include "protos/perfetto/trace/ftrace/v4l2.pbzero.h"

#include "v4l2_tracker.h"

namespace perfetto {
namespace trace_processor {

namespace {
FtraceEvent;
V4l2DqbufFtraceEvent;
V4l2QbufFtraceEvent;
Vb2V4l2BufDoneFtraceEvent;
Vb2V4l2BufQueueFtraceEvent;
Vb2V4l2DqbufFtraceEvent;
Vb2V4l2QbufFtraceEvent;
ConstBytes;
}  // namespace

V4l2Tracker::V4l2Tracker(TraceProcessorContext* context)
    :{}

V4l2Tracker::~V4l2Tracker() = default;

void V4l2Tracker::ParseV4l2Event(uint64_t fld_id,
                                 int64_t timestamp,
                                 uint32_t pid,
                                 const ConstBytes& bytes) {}

std::optional<SliceId> V4l2Tracker::AddSlice(StringId buf_name_id,
                                             int64_t timestamp,
                                             uint32_t pid,
                                             const BufferEvent& evt) {}

void V4l2Tracker::AddArgs(const BufferEvent& evt,
                          ArgsTracker::BoundInserter* inserter) {}

V4l2Tracker::BufferEventStringIds::BufferEventStringIds(TraceStorage& storage)
    :{}

V4l2Tracker::BufferTypeStringIds::BufferTypeStringIds(TraceStorage& storage)
    :{}

StringId V4l2Tracker::BufferTypeStringIds::Map(uint32_t buf_type) {}

V4l2Tracker::BufferFieldStringIds::BufferFieldStringIds(TraceStorage& storage)
    :{}

StringId V4l2Tracker::BufferFieldStringIds::Map(uint32_t field) {}

V4l2Tracker::TimecodeTypeStringIds::TimecodeTypeStringIds(TraceStorage& storage)
    :{}

StringId V4l2Tracker::TimecodeTypeStringIds::Map(uint32_t type) {}

StringId V4l2Tracker::InternBufFlags(uint32_t flags) {}

StringId V4l2Tracker::InternTcFlags(uint32_t flags) {}

}  // namespace trace_processor
}  // namespace perfetto