普通文本  |  165行  |  5.79 KB

buffers {
  size_kb: 4096
  fill_policy: RING_BUFFER
}

buffers {
  size_kb: 4096
  fill_policy: RING_BUFFER
}

data_sources {
  config {
    name: "linux.ftrace"
    target_buffer: 1
    ftrace_config {
      buffer_size_kb: 40 # 4 (page size) * 10
      drain_period_ms: 200
      ftrace_events: "clock_disable"
      ftrace_events: "clock_enable"
      ftrace_events: "clock_set_rate"
      ftrace_events: "cpu_frequency_limits"
      ftrace_events: "cpu_frequency"
      ftrace_events: "cpu_idle"
      ftrace_events: "cpufreq_interactive_already"
      ftrace_events: "cpufreq_interactive_boost"
      ftrace_events: "cpufreq_interactive_notyet"
      ftrace_events: "cpufreq_interactive_setspeed"
      ftrace_events: "cpufreq_interactive_target"
      ftrace_events: "cpufreq_interactive_unboost"
      ftrace_events: "sched_process_exec"
      ftrace_events: "sched_process_exit"
      ftrace_events: "sched_process_fork"
      ftrace_events: "sched_process_free"
      ftrace_events: "sched_process_hang"
      ftrace_events: "sched_process_wait"
      ftrace_events: "sched_switch"
      ftrace_events: "sched_wakeup_new"
      ftrace_events: "sched_wakeup"
      ftrace_events: "sched_waking"
      ftrace_events: "task_newtask"
      ftrace_events: "task_rename"
      ftrace_events: "tracing_mark_write"

      ftrace_events: "ext4_alloc_da_blocks"
      ftrace_events: "ext4_allocate_blocks"
      ftrace_events: "ext4_allocate_inode"
      ftrace_events: "ext4_begin_ordered_truncate"
      ftrace_events: "ext4_collapse_range"
      ftrace_events: "ext4_da_release_space"
      ftrace_events: "ext4_da_reserve_space"
      ftrace_events: "ext4_da_update_reserve_space"
      ftrace_events: "ext4_da_write_begin"
      ftrace_events: "ext4_da_write_end"
      ftrace_events: "ext4_da_write_pages_extent"
      ftrace_events: "ext4_da_write_pages"
      ftrace_events: "ext4_direct_IO_enter"
      ftrace_events: "ext4_direct_IO_exit"
      ftrace_events: "ext4_discard_blocks"
      ftrace_events: "ext4_discard_preallocations"
      ftrace_events: "ext4_drop_inode"
      ftrace_events: "ext4_es_cache_extent"
      ftrace_events: "ext4_es_find_delayed_extent_range_enter"
      ftrace_events: "ext4_es_find_delayed_extent_range_exit"
      ftrace_events: "ext4_es_insert_extent"
      ftrace_events: "ext4_es_lookup_extent_enter"
      ftrace_events: "ext4_es_lookup_extent_exit"
      ftrace_events: "ext4_es_remove_extent"
      ftrace_events: "ext4_es_shrink_count"
      ftrace_events: "ext4_es_shrink_scan_enter"
      ftrace_events: "ext4_es_shrink_scan_exit"
      ftrace_events: "ext4_es_shrink"
      ftrace_events: "ext4_evict_inode"
      ftrace_events: "ext4_ext_convert_to_initialized_enter"
      ftrace_events: "ext4_ext_convert_to_initialized_fastpath"
      ftrace_events: "ext4_ext_handle_unwritten_extents"
      ftrace_events: "ext4_ext_in_cache"
      ftrace_events: "ext4_ext_load_extent"
      ftrace_events: "ext4_ext_map_blocks_enter"
      ftrace_events: "ext4_ext_map_blocks_exit"
      ftrace_events: "ext4_ext_put_in_cache"
      ftrace_events: "ext4_ext_remove_space_done"
      ftrace_events: "ext4_ext_remove_space"
      ftrace_events: "ext4_ext_rm_idx"
      ftrace_events: "ext4_ext_rm_leaf"
      ftrace_events: "ext4_ext_show_extent"
      ftrace_events: "ext4_fallocate_enter"
      ftrace_events: "ext4_fallocate_exit"
      ftrace_events: "ext4_find_delalloc_range"
      ftrace_events: "ext4_forget"
      ftrace_events: "ext4_free_blocks"
      ftrace_events: "ext4_free_inode"
      ftrace_events: "ext4_get_implied_cluster_alloc_exit"
      ftrace_events: "ext4_get_reserved_cluster_alloc"
      ftrace_events: "ext4_ind_map_blocks_enter"
      ftrace_events: "ext4_ind_map_blocks_exit"
      ftrace_events: "ext4_insert_range"
      ftrace_events: "ext4_invalidatepage"
      ftrace_events: "ext4_journal_start_reserved"
      ftrace_events: "ext4_journal_start"
      ftrace_events: "ext4_journalled_invalidatepage"
      ftrace_events: "ext4_journalled_write_end"
      ftrace_events: "ext4_load_inode_bitmap"
      ftrace_events: "ext4_load_inode"
      ftrace_events: "ext4_mark_inode_dirty"
      ftrace_events: "ext4_mb_bitmap_load"
      ftrace_events: "ext4_mb_buddy_bitmap_load"
      ftrace_events: "ext4_mb_discard_preallocations"
      ftrace_events: "ext4_mb_new_group_pa"
      ftrace_events: "ext4_mb_new_inode_pa"
      ftrace_events: "ext4_mb_release_group_pa"
      ftrace_events: "ext4_mb_release_inode_pa"
      ftrace_events: "ext4_mballoc_alloc"
      ftrace_events: "ext4_mballoc_discard"
      ftrace_events: "ext4_mballoc_free"
      ftrace_events: "ext4_mballoc_prealloc"
      ftrace_events: "ext4_other_inode_update_time"
      ftrace_events: "ext4_punch_hole"
      ftrace_events: "ext4_read_block_bitmap_load"
      ftrace_events: "ext4_readpage"
      ftrace_events: "ext4_releasepage"
      ftrace_events: "ext4_remove_blocks"
      ftrace_events: "ext4_request_blocks"
      ftrace_events: "ext4_request_inode"
      ftrace_events: "ext4_sync_file_enter"
      ftrace_events: "ext4_sync_file_exit"
      ftrace_events: "ext4_sync_fs"
      ftrace_events: "ext4_trim_all_free"
      ftrace_events: "ext4_trim_extent"
      ftrace_events: "ext4_truncate_enter"
      ftrace_events: "ext4_truncate_exit"
      ftrace_events: "ext4_unlink_enter"
      ftrace_events: "ext4_unlink_exit"
      ftrace_events: "ext4_write_begin"
      ftrace_events: "ext4_write_end"
      ftrace_events: "ext4_writepage"
      ftrace_events: "ext4_writepages_result"
      ftrace_events: "ext4_writepages"
    }
  }
}

data_sources {
  config {
    name: "linux.process_stats"
    target_buffer: 0
  }
}

data_sources {
  config {
    name: "linux.inode_file_map"
    target_buffer: 0
  }
}

producers {
  producer_name: "perfetto.traced_probes"
  shm_size_kb: 4096
  page_size_kb: 4
}

duration_ms: 5000
write_into_file: true
file_write_period_ms: 1000