aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/kernel.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/kernel.h')
-rw-r--r--include/linux/kernel.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/include/linux/kernel.h b/include/linux/kernel.h
index 482ad2d84a32..d4e98d13eff4 100644
--- a/include/linux/kernel.h
+++ b/include/linux/kernel.h
@@ -439,6 +439,17 @@ static inline char *hex_byte_pack(char *buf, u8 byte)
439 return buf; 439 return buf;
440} 440}
441 441
442extern const char hex_asc_upper[];
443#define hex_asc_upper_lo(x) hex_asc_upper[((x) & 0x0f)]
444#define hex_asc_upper_hi(x) hex_asc_upper[((x) & 0xf0) >> 4]
445
446static inline char *hex_byte_pack_upper(char *buf, u8 byte)
447{
448 *buf++ = hex_asc_upper_hi(byte);
449 *buf++ = hex_asc_upper_lo(byte);
450 return buf;
451}
452
442static inline char * __deprecated pack_hex_byte(char *buf, u8 byte) 453static inline char * __deprecated pack_hex_byte(char *buf, u8 byte)
443{ 454{
444 return hex_byte_pack(buf, byte); 455 return hex_byte_pack(buf, byte);
@@ -490,7 +501,6 @@ void tracing_snapshot_alloc(void);
490 501
491extern void tracing_start(void); 502extern void tracing_start(void);
492extern void tracing_stop(void); 503extern void tracing_stop(void);
493extern void ftrace_off_permanent(void);
494 504
495static inline __printf(1, 2) 505static inline __printf(1, 2)
496void ____trace_printk_check_format(const char *fmt, ...) 506void ____trace_printk_check_format(const char *fmt, ...)
@@ -628,7 +638,6 @@ extern void ftrace_dump(enum ftrace_dump_mode oops_dump_mode);
628#else 638#else
629static inline void tracing_start(void) { } 639static inline void tracing_start(void) { }
630static inline void tracing_stop(void) { } 640static inline void tracing_stop(void) { }
631static inline void ftrace_off_permanent(void) { }
632static inline void trace_dump_stack(int skip) { } 641static inline void trace_dump_stack(int skip) { }
633 642
634static inline void tracing_on(void) { } 643static inline void tracing_on(void) { }