)]}'
{
  "commit": "cb44c7cea16f8de6892898ffc1677a67bbbaec28",
  "tree": "022af204202dd0cd1434681411033c22a6b94e37",
  "parents": [
    "f713e2080772e0409f3470639456cade9b5c29e6"
  ],
  "author": {
    "name": "Johannes Berg",
    "email": "johannes.berg@intel.com",
    "time": "Thu Nov 19 16:48:41 2026 +0100"
  },
  "committer": {
    "name": "Steven Rostedt",
    "email": "rostedt@goodmis.org",
    "time": "Tue Dec 01 10:58:05 2026 -0500"
  },
  "message": "tracing: Add __print_sym() to replace __print_symbolic()\n\nThe way __print_symbolic() works is limited and inefficient\nin multiple ways:\n - you can only use it with a static list of symbols, but\n   e.g. the SKB dropreasons are now a dynamic list\n\n - it builds the list in memory _three_ times, so it takes\n   a lot of memory:\n   - The print_fmt contains the list (since it\u0027s passed to\n     the macro there). This actually contains the names\n     _twice_, which is fixed up at runtime.\n   - TRACE_DEFINE_ENUM() puts a 24-byte struct trace_eval_map\n     for every entry, plus the string pointed to by it, which\n     cannot be deduplicated with the strings in the print_fmt\n   - The in-kernel symbolic printing creates yet another list\n     of struct trace_print_flags for trace_print_symbols_seq()\n\n - it also requires runtime fixup during init, which is a lot\n   of string parsing due to the print_fmt fixup\n\nIntroduce __print_sym() to - over time - replace the old one.\nWe can easily extend this also to __print_flags later, but I\ncared only about the SKB dropreasons for now, which has only\n__print_symbolic().\n\nThis new __print_sym() requires only a single list of items,\ncreated by TRACE_DEFINE_SYM_LIST(), or can even use another\nalready existing list by using TRACE_DEFINE_SYM_FNS() with\nlookup and show methods.\n\nThen, instead of doing an init-time fixup, just do this at the\ntime when userspace reads the print_fmt. This way, dynamically\nupdated lists are possible.\n\nFor userspace, nothing actually changes, because the print_fmt\nis shown exactly the same way the old __print_symbolic() was.\n\nThis adds about 4k .text in my test builds, but that\u0027ll be\nmore than paid for by the actual conversions.\n\nLink: https://patch.msgid.link/20261119155133.355849-7-johannes@sipsolutions.net\nSigned-off-by: Johannes Berg \u003cjohannes.berg@intel.com\u003e\nSigned-off-by: Steven Rostedt \u003crostedt@goodmis.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "3eb732942d699c6b2ced81a5fc755d2373b8dfd8",
      "old_mode": 33188,
      "old_path": "include/asm-generic/vmlinux.lds.h",
      "new_id": "ba2d8234aecb830174765b2c4085673fdffaac61",
      "new_mode": 33188,
      "new_path": "include/asm-generic/vmlinux.lds.h"
    },
    {
      "type": "modify",
      "old_id": "e4c39013f4143160c6f0d20292142a37d332390d",
      "old_mode": 33188,
      "old_path": "include/linux/module.h",
      "new_id": "ac4255fa00a5503954c7c90603479d2fc714e76b",
      "new_mode": 33188,
      "new_path": "include/linux/module.h"
    },
    {
      "type": "modify",
      "old_id": "321f2f3a6c8e8fb154b44751561b61815cc78b40",
      "old_mode": 33188,
      "old_path": "include/linux/trace_events.h",
      "new_id": "793fc1d7030a2c847339bcb749c678500a265a32",
      "new_mode": 33188,
      "new_path": "include/linux/trace_events.h"
    },
    {
      "type": "modify",
      "old_id": "7b3ee936a8ca3b5ea0cb70625076ad020dd576ca",
      "old_mode": 33188,
      "old_path": "include/linux/tracepoint.h",
      "new_id": "4303196ea9b468e593cefe916a0b625e15b4670b",
      "new_mode": 33188,
      "new_path": "include/linux/tracepoint.h"
    },
    {
      "type": "modify",
      "old_id": "000bcfc8dd2e7300531316c08277f8b994a0eef4",
      "old_mode": 33188,
      "old_path": "include/trace/stages/init.h",
      "new_id": "03a7898cc84afbac99ddf5935bacefc7eee356b4",
      "new_mode": 33188,
      "new_path": "include/trace/stages/init.h"
    },
    {
      "type": "modify",
      "old_id": "8b0cff06d34633d8fc0169922342640254fd9a00",
      "old_mode": 33188,
      "old_path": "include/trace/stages/stage2_data_offsets.h",
      "new_id": "5afd9de7deb3b2d7e3c804e0d0b7d66baa8966b2",
      "new_mode": 33188,
      "new_path": "include/trace/stages/stage2_data_offsets.h"
    },
    {
      "type": "modify",
      "old_id": "181b813357812edd330fa7ced9e38fedeece707a",
      "old_mode": 33188,
      "old_path": "include/trace/stages/stage3_trace_output.h",
      "new_id": "eb34b43147a1560503472f95d556630f435bb993",
      "new_mode": 33188,
      "new_path": "include/trace/stages/stage3_trace_output.h"
    },
    {
      "type": "modify",
      "old_id": "47008897a7956fab1b4bb38065224e852e94b03d",
      "old_mode": 33188,
      "old_path": "include/trace/stages/stage7_class_define.h",
      "new_id": "936b9fa08ceafb2e0841d5283b7904df301da690",
      "new_mode": 33188,
      "new_path": "include/trace/stages/stage7_class_define.h"
    },
    {
      "type": "modify",
      "old_id": "630431b1b16c02ed84b92941f59658458a7c0745",
      "old_mode": 33188,
      "old_path": "kernel/module/main.c",
      "new_id": "3e774a0caadf56425f508d36a67c09cb60094e78",
      "new_mode": 33188,
      "new_path": "kernel/module/main.c"
    },
    {
      "type": "modify",
      "old_id": "7f89160aeff3afc9a3a249d968ac3232a53193d6",
      "old_mode": 33188,
      "old_path": "kernel/trace/trace_events.c",
      "new_id": "ebf712d7de35b0dd761a13b430a79f9db43c3378",
      "new_mode": 33188,
      "new_path": "kernel/trace/trace_events.c"
    },
    {
      "type": "modify",
      "old_id": "a5ad76175d10d4e3acb8726a1f5d3cfea9b8c1f2",
      "old_mode": 33188,
      "old_path": "kernel/trace/trace_output.c",
      "new_id": "0850b3ad5707584dfc3ffc4d520b65b1831eaa8f",
      "new_mode": 33188,
      "new_path": "kernel/trace/trace_output.c"
    },
    {
      "type": "modify",
      "old_id": "0164cbdc42636aff21e93bbe9290eb160120ba42",
      "old_mode": 33188,
      "old_path": "samples/trace_events/trace-events-sample.c",
      "new_id": "61a70087798ad8cfccf501dfb0d1aae4973ba411",
      "new_mode": 33188,
      "new_path": "samples/trace_events/trace-events-sample.c"
    },
    {
      "type": "modify",
      "old_id": "021fd0e9d2f5c0c603be44903947beeb0e40fa71",
      "old_mode": 33188,
      "old_path": "samples/trace_events/trace-events-sample.h",
      "new_id": "8cda753f8ed0a38fc1b9be9651495f99ec0d346c",
      "new_mode": 33188,
      "new_path": "samples/trace_events/trace-events-sample.h"
    }
  ]
}
