This fixes a bug in the contrib tracing script p2p_monitor.py. currently the script fails to read the msg_type of inbound and outbound messages, which is useful in the per-peer message view.
    contrib: tracing: Fix read of pmsg_type in p2p_monitor.py
    #32771
    
      
    
  
  
    
  
    pull
  
    davidgumberg
      wants to merge
      1
      commits into
      bitcoin:master
      from
      davidgumberg:6-18-25-p2p-mon-fix
      changing
      1
      files
      +2 −2 
      
  
- 
  
  davidgumberg commented at 6:45 pm on June 18, 2025: contributor
- 
    
    contrib: tracing: Correctly read msg type in p2p_monitor.py 3473986fe1
- 
    
    DrahtBot added the label Scripts and tools on Jun 18, 2025
- 
  
  DrahtBot commented at 6:45 pm on June 18, 2025: contributorThe following sections might be updated with supplementary metadata relevant to reviewers and maintainers. Code Coverage & BenchmarksFor details see: https://corecheck.dev/bitcoin/bitcoin/pulls/32771. ReviewsSee the guideline for information on the review process. If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update. 
- 
    
    fanquake requested review from 0xB10C on Jun 18, 2025
- 
  
  janb84 commented at 7:44 am on June 19, 2025: contributorut ACK 3473986fe10e2689fe36cc93e1e50013649ac14b This PR fixes bug not displaying msg_type.bpf_probe_read_user_str(&msg.msg_type, sizeof(msg.msg_type), pmsg_typetries to copy pmsg_type into kernel space butpmsg_typewas still NULL (unassigned). This PR changesbpf_usdt_readargto copy argument 4 topmsg_typefixing the bug.Steps taken in this review: - git blame (history of bug) ✅
- code review ✅
 
- 
    
    0xB10C approved
- 
  
  0xB10C commented at 7:23 am on June 20, 2025: contributorACK 3473986fe10e2689fe36cc93e1e50013649ac14b Changes look good to me, but I haven’t tested them yet. Introduced by me in https://github.com/bitcoin/bitcoin/commit/ec47ba349d0b3cb2d274593ca7b828ae70584e10 
- 
  
  yuvicc commented at 8:38 pm on June 20, 2025: contributorConcept ACK It would be good to have the message type with the size of message in p2p_monitor.py
- 
  
  yuvicc commented at 9:03 pm on June 20, 2025: contributorACK 3473986fe10e2689fe36cc93e1e50013649ac14b TestingOn mastercommit 3473986fe10e2689fe36cc93e1e50013649ac14b
- 
    
    fanquake merged this on Jun 23, 2025
- 
    
    fanquake closed this on Jun 23, 2025
 
- 
    
    fanquake referenced this in commit 5697605414 on Jun 23, 2025
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2025-10-31 09:13 UTC
More mirrored repositories can be found on mirror.b10c.me