# Why kernal buffer is not generated?

If you're experiencing issues with generating the kernal buffer using the yc command on Linux or macOS, it might be due to insufficient permissions. This section explains the possible reason for the failure and provides a solution.

# Reason

The dmesg command used in the backend requires elevated privileges to access and retrieve kernel-level messages and information. By default, regular users do not have the necessary permissions to execute this command successfully.

# Solution

To generate the kernal buffer output using the yc command, you can use the sudo command to acquire the required elevated privileges. Follow the steps below:

  1. Open a terminal or command prompt.
  2. Run the following command, replacing <PID> with the actual process ID and /path/to/config.yaml with the appropriate configuration file:
sudo ./yc -c /path/to/config.yaml -p <PID>
1
  1. Enter your password when prompted.

Note that your user account must have administrative rights to use sudo.

By using sudo, you grant the yc command the necessary privileges to retrieve kernel buffer information, allowing the output generation to proceed successfully.