Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nuttxgdb/rpmsg.py:dump rpmsg_service message #14976

Merged
merged 1 commit into from
Nov 28, 2024

Conversation

yeungao
Copy link

@yeungao yeungao commented Nov 28, 2024

(gdb)rpmsg_service
g_rpmsg_cb:
rpmsg_cb_s at ns_match ns_bind


0xf4e00ac0 0x44708225 <rpmsg_rtc_server_ns_match> 0x4470874c <rpmsg_rtc_server_ns_bind>
0xf4e27b20 0x440c8fd6 <syslog_rpmsg_ns_match> 0x440c966a <syslog_rpmsg_ns_bind>
0xf4e27af0 0x0 0x0
g_rpmsg:
Endpoint at Name local Addr dest Addr cb ns_bound_cb ns_unbind_cb


0xf2302ac0 NS 53 53 0x44699520 <rpmsg_virtio_ns_callback> 0x0 0x0
0xf3c0f920 rpmsg-ttysensor 1025 1028 0x44704457 <uart_rpmsg_ept_cb> 0x0 0x0
0xf301d058 rpmsg-sensor 1026 1029 0x440c1680 <sensor_rpmsg_ept_cb> 0x440c1871 <sensor_rpmsg_device_ns_bound> 0x44693a18 <rpmsg_destroy_ept>
0xf2302a6c rpmsg-ping 1027 1036 0x440a10d2 <rpmsg_ping_ept_cb> 0x0 0x0

List update: rpmsg dump contains none initialized list, need to take care of it in NxList.

Note: Please adhere to Contributing Guidelines.

Summary

The function of rpmsg_service is implemented under GDB. By entering the command rpmsg_service, you can print out the contents of the two linked lists g_rpmsg and g_rpmsg_cb of the AP and sensor front-end. This allows us to see what devices are currently waiting to connect and what devices are already connected.

Impact

The implementation of this function makes it easier for developers to view the connection status of the RPMsg service during debugging, allowing for better diagnosis and debugging. It mainly affects the debugging process and has no direct impact on the user interface and device functionality.

Testing

It has been verified on a real device and the functionality is confirmed to work properly. Relevant log information has been recorded and analyzed to ensure the correctness of the implementation.

(gdb)rpmsg_service
g_rpmsg_cb:
rpmsg_cb_s at        ns_match                                 ns_bind
-------------        --------                                 -------
0xf4e00ac0           0x44708225 <rpmsg_rtc_server_ns_match>   0x4470874c <rpmsg_rtc_server_ns_bind>
0xf4e27b20           0x440c8fd6 <syslog_rpmsg_ns_match>       0x440c966a <syslog_rpmsg_ns_bind>
0xf4e27af0           0x0                                      0x0
g_rpmsg:
Endpoint at          Name                 local Addr   dest Addr    cb                                       ns_bound_cb                              ns_unbind_cb
-----------          ----                 ----------   ---------    --                                       -----------                              ------------
0xf2302ac0           NS                   53           53           0x44699520 <rpmsg_virtio_ns_callback>    0x0                                      0x0
0xf3c0f920           rpmsg-ttysensor      1025         1028         0x44704457 <uart_rpmsg_ept_cb>           0x0                                      0x0
0xf301d058           rpmsg-sensor         1026         1029         0x440c1680 <sensor_rpmsg_ept_cb>         0x440c1871 <sensor_rpmsg_device_ns_bound> 0x44693a18 <rpmsg_destroy_ept>
0xf2302a6c           rpmsg-ping           1027         1036         0x440a10d2 <rpmsg_ping_ept_cb>           0x0                                      0x0

List update: rpmsg dump contains none initialized list, need to take care of it in
NxList.

Signed-off-by: yangao1 <[email protected]>
@github-actions github-actions bot added Area: Tooling Size: M The size of the change in this PR is medium labels Nov 28, 2024
Copy link
Contributor

@acassis acassis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yeungao please update the Documentation/ https://nuttx.apache.org/docs/latest/guides/gdbwithpython.html to include this rpmsg.py usage example as well

@xiaoxiang781216
Copy link
Contributor

@yeungao please update the Documentation/ https://nuttx.apache.org/docs/latest/guides/gdbwithpython.html to include this rpmsg.py usage example as well

@XuNeo will update the document after all patch merge.

@xiaoxiang781216 xiaoxiang781216 merged commit 968bb17 into apache:master Nov 28, 2024
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Tooling Size: M The size of the change in this PR is medium
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants