1 // SPDX-License-Identifier: GPL-2.0
3 * null_blk trace related helpers.
5 * Copyright (C) 2020 Western Digital Corporation or its affiliates.
10 * Helper to use for all null_blk traces to extract disk name.
12 const char *nullb_trace_disk_name(struct trace_seq *p, char *name)
14 const char *ret = trace_seq_buffer_ptr(p);
17 trace_seq_printf(p, "disk=%s, ", name);