cregit-Linux how code gets into the kernel

Release 4.7 fs/pstore/internal.h

Directory: fs/pstore
#ifndef __PSTORE_INTERNAL_H__

#define __PSTORE_INTERNAL_H__

#include <linux/types.h>
#include <linux/time.h>
#include <linux/pstore.h>

#if NR_CPUS <= 2 && defined(CONFIG_ARM_THUMB)

#define PSTORE_CPU_IN_IP 0x1
#elif NR_CPUS <= 4 && defined(CONFIG_ARM)

#define PSTORE_CPU_IN_IP 0x3
#endif


struct pstore_ftrace_record {
	
unsigned long ip;
	
unsigned long parent_ip;
#ifndef PSTORE_CPU_IN_IP
	
unsigned int cpu;
#endif
};


static inline void pstore_ftrace_encode_cpu(struct pstore_ftrace_record *rec, unsigned int cpu) { #ifndef PSTORE_CPU_IN_IP rec->cpu = cpu; #else rec->ip |= cpu; #endif }

Contributors

PersonTokensPropCommitsCommitProp
anton vorontsovanton vorontsov35100.00%1100.00%
Total35100.00%1100.00%


static inline unsigned int pstore_ftrace_decode_cpu(struct pstore_ftrace_record *rec) { #ifndef PSTORE_CPU_IN_IP return rec->cpu; #else return rec->ip & PSTORE_CPU_IN_IP; #endif }

Contributors

PersonTokensPropCommitsCommitProp
anton vorontsovanton vorontsov32100.00%1100.00%
Total32100.00%1100.00%

#ifdef CONFIG_PSTORE_FTRACE extern void pstore_register_ftrace(void); extern void pstore_unregister_ftrace(void); #else
static inline void pstore_register_ftrace(void) {}

Contributors

PersonTokensPropCommitsCommitProp
anton vorontsovanton vorontsov8100.00%1100.00%
Total8100.00%1100.00%


static inline void pstore_unregister_ftrace(void) {}

Contributors

PersonTokensPropCommitsCommitProp
geliang tanggeliang tang8100.00%1100.00%
Total8100.00%1100.00%

#endif #ifdef CONFIG_PSTORE_PMSG extern void pstore_register_pmsg(void); extern void pstore_unregister_pmsg(void); #else
static inline void pstore_register_pmsg(void) {}

Contributors

PersonTokensPropCommitsCommitProp
mark salyzynmark salyzyn8100.00%1100.00%
Total8100.00%1100.00%


static inline void pstore_unregister_pmsg(void) {}

Contributors

PersonTokensPropCommitsCommitProp
geliang tanggeliang tang8100.00%1100.00%
Total8100.00%1100.00%

#endif extern struct pstore_info *psinfo; extern void pstore_set_kmsg_bytes(int); extern void pstore_get_records(int); extern int pstore_mkfile(enum pstore_type_id, char *psname, u64 id, int count, char *data, bool compressed, size_t size, struct timespec time, struct pstore_info *psi); extern bool pstore_is_mounted(void); #endif

Overall Contributors

PersonTokensPropCommitsCommitProp
anton vorontsovanton vorontsov16459.85%325.00%
tony lucktony luck4817.52%325.00%
geliang tanggeliang tang3111.31%216.67%
mark salyzynmark salyzyn228.03%18.33%
aruna balakrishnaiaharuna balakrishnaiah31.09%18.33%
matthew garrettmatthew garrett31.09%18.33%
seiji aguchiseiji aguchi31.09%18.33%
Total274100.00%12100.00%
Directory: fs/pstore
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
{% endraw %}