tuned

package
v0.0.0-...-dd2698c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBootcmdline

func GetBootcmdline() (string, error)

func InitializeStatusConditions

func InitializeStatusConditions() []tunedv1.ProfileStatusCondition

InitializeStatusConditions returns a slice of tunedv1.ProfileStatusCondition initialized to an unknown state.

func ProfilesExtract

func ProfilesExtract(profiles []tunedv1.TunedProfile, recommendedProfile string) (bool, map[string]bool, map[string]bool, error)

ProfilesExtract extracts TuneD daemon profiles to the daemon configuration directory. Returns:

  • True if the data in the to-be-extracted recommended profile or the profiles being included from the current recommended profile have changed.
  • A map with successfully extracted TuneD profile names.
  • A map with names of TuneD profiles the current TuneD recommended profile depends on.
  • Error if any or nil.

func RunOperand

func RunOperand(stopCh <-chan struct{}, version string, inCluster bool) error

func TunedCreateCmd

func TunedCreateCmd(debug bool) *exec.Cmd

func TunedRecommendFileWrite

func TunedRecommendFileWrite(profileName string) error

func TunedRun

func TunedRun(cmd *exec.Cmd, daemon *Daemon, onDaemonReload func()) error

func TunedRunNoDaemon

func TunedRunNoDaemon(cmd *exec.Cmd) error

Types

type Bits

type Bits uint64

Types

type Change

type Change struct {
	// contains filtered or unexported fields
}

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

type Daemon

type Daemon struct {
	// contains filtered or unexported fields
}

Directories

Path Synopsis
cmd
render
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL