我正在使用 kprobe 命令来跟踪一些内核函数。我使用的命令是:
kprobe“p:balance_pgdat”
但出现以下错误:
错误:funcbalance_pgdat 不在
/sys/kernel/debug/tracing/available_filter_functions.
Either it doesn't exist, or, it might be unsafe to kprobe. Existing. Use -F to override.
Run Code Online (Sandbox Code Playgroud)
我已经检查过balance_pgdat不在available_filter_functions中。但是,根据我的理解,无法追踪的功能保存在 /sys/kernel/debug/kprobes/blacklist 中,为什么还有其他功能不适用于 kprobe ?
感谢任何人的帮助!
全部
我正在尝试将数据序列化到 tensorflow 中的 tfrecords 文件。我按照这里的说明操作:https : //github.com/tensorlayer/tensorlayer/blob/master/example/tutorial_tfrecord.py
如本说明所示,我需要example 为每个记录构建一个,每个记录example包含多个feature.
但是,我在初始化该功能时遇到了问题。这是我的测试代码:
import tensorflow as tf
import numpy as np
feature_str=tf.train.Feature(bytes_list=tf.train.BytesList(value = np.array(["a" , "b"])))
feature_int=tf.train.Feature(bytes_list=tf.train.Int64List(value = np.array([32 , 24])))
feature_flo=tf.train.Feature(bytes_list=tf.train.FloatList(value = np.array([32.1 , 24.1 ])))
Run Code Online (Sandbox Code Playgroud)
但是,我遇到了以下错误,这是直觉的:
usr/local/lib/python2.7/dist-packages/h5py/ init .py:36: FutureWarning:不推荐将 issubdtype 的第二个参数从floatto转换np.floating。将来,它将被视为np.float64 == np.dtype(float).type. from ._conv import register_converters as _register_converters Traceback(最近一次调用):文件“test.py”,第7行,在feature_int=tf.train.Feature(bytes_list=tf.train.Int64List(value = np.array([32 , 24]))) 类型错误:MergeFrom() 的参数必须是同一类的实例:预期的 tensorflow.BytesList 得到了 tensorflow.Int64List。
我进一步尝试使用tf.train.BytesListfornp.array([32,24])并得到以下错误:
feature_int=tf.train.Feature(bytes_list=tf.train.BytesList(value = np.array([32 …
我有一些 go 程序在 pod 内运行。我将如何编写代码以使其通过 go-client 库知道其 pod 名称?