kind: host-fail run lisa
Created by: zf1575192187
target-conf: kind: host
run demo : from lisa.trace import Trace from lisa.target import Target
target = Target.from_default_conf()
with Trace.from_target(target, events=['sched_switch', 'sched_wakeup']) as trace:
target.execute('echo hello world')
# DO NOT USE trace object inside the with
statement
trace.ana.tasks.plot_tasks_total_residency(filepath='plot.png')
return err: ValueError: The target's kernel needs CONFIG_FTRACE=y kconfig enabled
check the code and find for path in ['/boot/config', '/boot/config-$(uname -r)']: try: return KernelConfig(self.execute('cat {}'.format(quote(path))))
/boot/config-$(uname -r) $(uname -r) is not expanded, so don't find config,It's weird.
when I skip this bug and run it the next bug is here: Will not load cgroups devlib module: target is using systemd, which already uses cgroups Cannot retrieve value of key nrg-model: Unable to probe for energy model on target. Traceback (most recent call last): File "./zf.py", line 10, in trace.ana.tasks.plot_tasks_total_residency(filepath='plot.png') File "/home/zhoufeng.zf/lisa/lisa/analysis/_proxy.py", line 59, in wrapper return x(**kwargs) File "/home/zhoufeng.zf/lisa/lisa/analysis/base.py", line 661, in wrapper hv_fig = f(**kwargs) File "/home/zhoufeng.zf/lisa/lisa/trace.py", line 4840, in wrapper return f(self, *args, **kwargs) File "/home/zhoufeng.zf/lisa/lisa/analysis/tasks.py", line 842, in plot_tasks_total_residency df = self.df_tasks_total_residency(tasks, ascending, count) File "/home/zhoufeng.zf/lisa/lisa/trace.py", line 4840, in wrapper return f(self, *args, **kwargs) File "/home/zhoufeng.zf/lisa/lisa/analysis/tasks.py", line 644, in df_tasks_total_residency for df in map(get_task_df, task_ids) File "/home/zhoufeng.zf/lisa/.lisa-venv-3.7/lib/python3.7/site-packages/pandas/util/_decorators.py", line 311, in wrapper return func(*args, **kwargs) File "/home/zhoufeng.zf/lisa/.lisa-venv-3.7/lib/python3.7/site-packages/pandas/core/reshape/concat.py", line 304, in concat sort=sort, File "/home/zhoufeng.zf/lisa/.lisa-venv-3.7/lib/python3.7/site-packages/pandas/core/reshape/concat.py", line 351, in init raise ValueError("No objects to concatenate") ValueError: No objects to concatenate
I don't get it.