// Autogenerated by:
// ../../src/tools/ftrace_proto_gen/ftrace_proto_gen.cc
// Do not edit.

// @generated by protoc-gen-es v2.2.2 with parameter "target=ts"
// @generated from file protos/perfetto/trace/ftrace/perf_trace_counters.proto (package perfetto.protos, syntax proto2)
/* eslint-disable */

import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1";
import type { Message } from "@bufbuild/protobuf";

/**
 * Describes the file protos/perfetto/trace/ftrace/perf_trace_counters.proto.
 */
export const file_protos_perfetto_trace_ftrace_perf_trace_counters: GenFile = /*@__PURE__*/
  fileDesc("CjZwcm90b3MvcGVyZmV0dG8vdHJhY2UvZnRyYWNlL3BlcmZfdHJhY2VfY291bnRlcnMucHJvdG8SD3BlcmZldHRvLnByb3RvcyKEAwoeU2NoZWRTd2l0Y2hXaXRoQ3Ryc0Z0cmFjZUV2ZW50Eg8KB29sZF9waWQYASABKAUSDwoHbmV3X3BpZBgCIAEoBRIMCgRjY3RyGAMgASgEEgwKBGN0cjAYBCABKAQSDAoEY3RyMRgFIAEoBBIMCgRjdHIyGAYgASgEEgwKBGN0cjMYByABKAQSDQoFbGN0cjAYCCABKA0SDQoFbGN0cjEYCSABKA0SDAoEY3RyNBgKIAEoBBIMCgRjdHI1GAsgASgEEhEKCXByZXZfY29tbRgMIAEoCRIQCghwcmV2X3BpZBgNIAEoBRILCgNjeWMYDiABKA0SDAoEaW5zdBgPIAEoDRIPCgdzdGFsbGJtGBAgASgNEgwKBGwzZG0YESABKA0SEAoIbmV4dF9waWQYEiABKAUSEQoJbmV4dF9jb21tGBMgASgJEhIKCnByZXZfc3RhdGUYFCABKAMSDAoEYW11MBgVIAEoBBIMCgRhbXUxGBYgASgEEgwKBGFtdTIYFyABKAQ");

/**
 * @generated from message perfetto.protos.SchedSwitchWithCtrsFtraceEvent
 */
export type SchedSwitchWithCtrsFtraceEvent = Message<"perfetto.protos.SchedSwitchWithCtrsFtraceEvent"> & {
  /**
   * @generated from field: optional int32 old_pid = 1;
   */
  oldPid: number;

  /**
   * @generated from field: optional int32 new_pid = 2;
   */
  newPid: number;

  /**
   * @generated from field: optional uint64 cctr = 3;
   */
  cctr: bigint;

  /**
   * @generated from field: optional uint64 ctr0 = 4;
   */
  ctr0: bigint;

  /**
   * @generated from field: optional uint64 ctr1 = 5;
   */
  ctr1: bigint;

  /**
   * @generated from field: optional uint64 ctr2 = 6;
   */
  ctr2: bigint;

  /**
   * @generated from field: optional uint64 ctr3 = 7;
   */
  ctr3: bigint;

  /**
   * @generated from field: optional uint32 lctr0 = 8;
   */
  lctr0: number;

  /**
   * @generated from field: optional uint32 lctr1 = 9;
   */
  lctr1: number;

  /**
   * @generated from field: optional uint64 ctr4 = 10;
   */
  ctr4: bigint;

  /**
   * @generated from field: optional uint64 ctr5 = 11;
   */
  ctr5: bigint;

  /**
   * @generated from field: optional string prev_comm = 12;
   */
  prevComm: string;

  /**
   * @generated from field: optional int32 prev_pid = 13;
   */
  prevPid: number;

  /**
   * @generated from field: optional uint32 cyc = 14;
   */
  cyc: number;

  /**
   * @generated from field: optional uint32 inst = 15;
   */
  inst: number;

  /**
   * @generated from field: optional uint32 stallbm = 16;
   */
  stallbm: number;

  /**
   * @generated from field: optional uint32 l3dm = 17;
   */
  l3dm: number;

  /**
   * @generated from field: optional int32 next_pid = 18;
   */
  nextPid: number;

  /**
   * @generated from field: optional string next_comm = 19;
   */
  nextComm: string;

  /**
   * @generated from field: optional int64 prev_state = 20;
   */
  prevState: bigint;

  /**
   * @generated from field: optional uint64 amu0 = 21;
   */
  amu0: bigint;

  /**
   * @generated from field: optional uint64 amu1 = 22;
   */
  amu1: bigint;

  /**
   * @generated from field: optional uint64 amu2 = 23;
   */
  amu2: bigint;
};

/**
 * Describes the message perfetto.protos.SchedSwitchWithCtrsFtraceEvent.
 * Use `create(SchedSwitchWithCtrsFtraceEventSchema)` to create a new message.
 */
export const SchedSwitchWithCtrsFtraceEventSchema: GenMessage<SchedSwitchWithCtrsFtraceEvent> = /*@__PURE__*/
  messageDesc(file_protos_perfetto_trace_ftrace_perf_trace_counters, 0);

