summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-record
diff options
context:
space:
mode:
authorSteven Rostedt <rostedt@goodmis.org>2025-11-05 19:33:26 -0500
committerSteven Rostedt (Google) <rostedt@goodmis.org>2025-11-10 14:33:51 -0500
commit3a0d5bc76ff482c6e0c20f66f2b32e5dcf8238fe (patch)
tree18c1ebbb07e1e2233f5893345ba5d99bace6e722 /tools/perf/scripts/python/bin/stackcollapse-record
parent9c5053083eeecc7a2cd6c1271a85087e73820ae2 (diff)
downloadkernel-3a0d5bc76ff482c6e0c20f66f2b32e5dcf8238fe.tar.gz
tracing: Use switch statement instead of ifs in set_tracer_flag()
The "mask" passed in to set_trace_flag() has a single bit set. The function then checks if the mask is equal to one of the option masks and performs the appropriate function associated to that option. Instead of having a bunch of "if ()" statement, use a "switch ()" statement instead to make it cleaner and a bit more optimal. No function changes. Cc: Mark Rutland <mark.rutland@arm.com> Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> Cc: Andrew Morton <akpm@linux-foundation.org> Link: https://patch.msgid.link/20251106003501.890298562@kernel.org Reviewed-by: Masami Hiramatsu (Google) <mhiramat@kernel.org> Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions
istro/kernel/commit/fs/nfs/delegation.c?id=c1f10ac840caced7a9f717d4170dcc14b3fac076'>Merge tag 'nfs-for-6.9-1' of git://git.linux-nfs.org/projects/trondmy/linux-nfsLinus Torvalds 2024-03-09NFSv4: nfs4_do_open() is incorrectly triggering state recoveryTrond Myklebust 2024-02-05nfs: adapt to breakup of struct file_lockJeff Layton 2024-02-05nfs: convert to using new filelock helpersJeff Layton 2023-11-01NFSv4: fairly test all delegations on a SEQ4_ revocationBenjamin Coddington 2022-11-30nfs: use locks_inode_context helperJeff Layton 2022-10-27NFSv4: Fix a potential state reclaim deadlockTrond Myklebust 2022-02-25NFSv4: Charge NFSv4 open state trackers to kmemcgTrond Myklebust 2021-10-20NFSv4: Fixes for nfs4_inode_return_delegation()Trond Myklebust 2021-06-13NFSv4: Add lease breakpoints in case of a delegation recall or returnTrond Myklebust 2021-06-13NFSv4: Fix delegation return in cases where we have to retryTrond Myklebust 2021-04-14NFS: Don't store NFS_INO_REVAL_FORCEDTrond Myklebust 2021-04-05NFS: Fix up incorrect documentationTrond Myklebust 2021-01-10NFS: nfs_delegation_find_inode_server must first reference the superblockTrond Myklebust