aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorJesse Brandeburg <[email protected]>2023-12-05 17:01:09 -0800
committerTony Nguyen <[email protected]>2023-12-18 11:20:43 -0800
commita8e0c7a6800dc466ac815264c16971b9adf7ffbd (patch)
treeb30b171cfc4ccb3299fbf7c8299d3c091814c308 /tools/perf/scripts/python/event_analyzing_sample.py
parentb9a4525450758dd75edbdaee97425ba7546c2b5c (diff)
igc: field get conversion
Refactor the igc driver to use FIELD_GET() for mask and shift reads, which reduces lines of code and adds clarity of intent. This code was generated by the following coccinelle/spatch script and then manually repaired in a later patch. @get@ constant shift,mask; type T; expression a; @@ -((T)((a) & mask) >> shift) +FIELD_GET(mask, a) and applied via: spatch --sp-file field_prep.cocci --in-place --dir \ drivers/net/ethernet/intel/ Cc: Julia Lawall <[email protected]> Reviewed-by: Marcin Szycik <[email protected]> Reviewed-by: Simon Horman <[email protected]> Signed-off-by: Jesse Brandeburg <[email protected]> Signed-off-by: Tony Nguyen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions