tuned

package
v0.0.0-...-86e5d63 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2024 License: Apache-2.0 Imports: 35 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 RunInCluster

func RunInCluster(stopCh <-chan struct{}, version string) error

func RunOutOfClusterOneShot

func RunOutOfClusterOneShot(stopCh <-chan struct{}, version string) error

func TunedCreateCmdline

func TunedCreateCmdline(debug bool) (string, []string)

func TunedRecommendFileRead

func TunedRecommendFileRead() (string, error)

func TunedRecommendFileReadPath

func TunedRecommendFileReadPath(recommendFilePath string) (string, error)

func TunedRecommendFileWrite

func TunedRecommendFileWrite(profileName string) error

func TunedRecommendFileWritePath

func TunedRecommendFileWritePath(recommendFilePath, profileName string) error

func TunedRun

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

func TunedRunNoDaemon

func TunedRunNoDaemon(timeout time.Duration) error

Types

type Bits

type Bits uint64

Types

type Change

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

func (Change) String

func (ch Change) String() string

type Controller

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

type Daemon

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

type ExtractedProfiles

type ExtractedProfiles struct {
	// True if the data in the to-be-extracted recommended profile or the profiles being
	// included from the current recommended profile have changed.
	Changed bool
	// If the data changed, the fingerprint of the new profile, or "" otherwise.
	Fingerprint string
	// A map with successfully extracted TuneD profile names.
	Names map[string]bool
	// A map with names of TuneD profiles the current TuneD recommended profile depends on.
	Dependencies map[string]bool
}

func ProfilesExtract

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

ProfilesExtract extracts TuneD daemon profiles to tunedProfilesDirCustom directory. Returns:

  • ExtractedProfiles with the details of the operation performed
  • Error if any or nil.

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