Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • L linux-qy
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • linux-arm
  • linux-qy
  • Repository
  • linux-qy
  • drivers
  • net
  • can
  • slcan.c
Find file BlameHistoryPermalink
  • Andre Naujoks's avatar
    slcan: rewrite of slc_bump and slc_encaps · 87397fe1
    Andre Naujoks authored Sep 13, 2013
    
    
    The old implementation was heavy on str* functions and sprintf calls.
    This version is more manual, but faster.
    
    Profiling just the printing of a 3 char CAN-id resulted in 60 instructions
    for the manual method and over 2000 for the sprintf method. Bear in
    mind the profiling was done against libc and not the kernel sprintf.
    
    Together with this rewrite an issue with sending and receiving of RTR frames
    has been fixed by Oliver for the cases that the DLC is not zero.
    
    Signed-off-by: default avatarAndre Naujoks <nautsch2@gmail.com>
    Tested-by: default avatarOliver Hartkopp <socketcan@hartkopp.net>
    Acked-by: default avatarOliver Hartkopp <socketcan@hartkopp.net>
    Acked-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    87397fe1