blob: d5040486207f50d52342268d33deaf9f9d5f02e1 [file] [log] [blame]
// Copyright 2020 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef RUNTIME_PROBE_FUNCTIONS_ETHERNET_NETWORK_H_
#define RUNTIME_PROBE_FUNCTIONS_ETHERNET_NETWORK_H_
#include <memory>
#include <optional>
#include <string>
#include "runtime_probe/function_templates/network.h"
namespace runtime_probe {
class EthernetNetworkFunction : public NetworkFunction {
using NetworkFunction::NetworkFunction;
public:
NAME_PROBE_FUNCTION("ethernet_network");
protected:
std::optional<std::string> GetNetworkType() const override;
};
} // namespace runtime_probe
#endif // RUNTIME_PROBE_FUNCTIONS_ETHERNET_NETWORK_H_