Use DEFINE_DEBUGFS_ATTRIBUTE rather than DEFINE_SIMPLE_ATTRIBUTE for debugfs files. Semantic patch information: Rationale: DEFINE_SIMPLE_ATTRIBUTE + debugfs_create_file() imposes some significant overhead as compared to DEFINE_DEBUGFS_ATTRIBUTE + debugfs_create_file_unsafe(). Generated by: scripts/coccinelle/api/debugfs/debugfs_simple_attr.cocci Signed-off-by: YueHaibing <yuehaibing@huawei.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org> |
||
---|---|---|
.. | ||
6lowpan_i.h | ||
Kconfig | ||
Makefile | ||
core.c | ||
debugfs.c | ||
iphc.c | ||
ndisc.c | ||
nhc.c | ||
nhc.h | ||
nhc_dest.c | ||
nhc_fragment.c | ||
nhc_ghc_ext_dest.c | ||
nhc_ghc_ext_frag.c | ||
nhc_ghc_ext_hop.c | ||
nhc_ghc_ext_route.c | ||
nhc_ghc_icmpv6.c | ||
nhc_ghc_udp.c | ||
nhc_hop.c | ||
nhc_ipv6.c | ||
nhc_mobility.c | ||
nhc_routing.c | ||
nhc_udp.c |