我正在尝试在使用 Windows10 机器的 WSL2 上使用 Linux 的 perf 工具。我已经在这里完成了已接受答案的每一步:Is there any method to run perf under WSL?
当我运行“make”评论时,我收到警告:
警告:“tools/include/uapi/linux/stat.h”处的内核 ABI 标头与“include/uapi/linux/stat.h”处的最新版本不同
但仍创建了 perf 可执行文件。但是,当我尝试像这样使用 perf 时:
sudo perf record -g myexe myargs
Run Code Online (Sandbox Code Playgroud)
我收到这个错误:
警告:未找到内核 5.10.16.3-microsoft 的性能
您可能需要为此特定内核安装以下软件包: linux-tools-5.10.16.3-microsoft-standard-WSL2 linux-cloud-tools-5.10.16.3-microsoft-standard-WSL2
然后我尝试运行这个:
sudo apt install linux-tools-5.10.16.3-microsoft-standard-WSL2
Run Code Online (Sandbox Code Playgroud)
但这也不起作用,我得到了这个:
正在读取软件包列表...已完成构建依赖关系树正在读取状态信息...已完成 E: 无法找到软件包 linux-tools-5.10.16.3-microsoft-standard-WSL2 E: 无法通过 glob 'linux-tools 找到任何软件包-5.10.16.3-微软标准-WSL2'
我现在应该怎么做?
我正在使用 Keycloak 来保护我的 Javascript 应用程序。当单击按钮时,我希望打开一个注册页面,其中包含我现有的电子邮件。我的意思是,keycloak 注册页面将打开,其中电子邮件字段已预先填写。
我发现我们可以在登录页面中使用login_hint. 通过将其添加到链接末尾。例子:
http://localhost:8080/auth/realms/realm_name/protocol/openid-connect/auth?client_id=client_id&redirect_uri={url}&response_mode=fragment&response_type=code&scope=openid&nonce={...}&login_hint=exmaple@gmail.com
Run Code Online (Sandbox Code Playgroud)
但我不知道我是否可以对注册页面做同样的事情。有办法吗?
谢谢
javascript ×1
keycloak ×1
linux ×1
linux-kernel ×1
node.js ×1
perf ×1
registration ×1
windows ×1