diff options
| author | Tony Lindgren <tony@atomide.com> | 2017-03-06 08:37:53 -0800 | 
|---|---|---|
| committer | Tony Lindgren <tony@atomide.com> | 2017-03-06 08:37:53 -0800 | 
| commit | e24bce8fb4c26bd0d8eca74cbbee1ad049246be3 (patch) | |
| tree | c219c2ec183633aa15841fca5b055a09d2d0b980 /tools/perf/util/scripting-engines/trace-event-python.c | |
| parent | b92675d998a9fa37fe9e0e35053a95b4a23c158b (diff) | |
| parent | c1ae3cfa0e89fa1a7ecc4c99031f5e9ae99d9201 (diff) | |
Merge tag 'v4.11-rc1' into omap-for-v4.11/fixes
Linux 4.11-rc1
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
| -rw-r--r-- | tools/perf/util/scripting-engines/trace-event-python.c | 5 | 
1 files changed, 3 insertions, 2 deletions
| diff --git a/tools/perf/util/scripting-engines/trace-event-python.c b/tools/perf/util/scripting-engines/trace-event-python.c index 089438da1f7f..783326cfbaa6 100644 --- a/tools/perf/util/scripting-engines/trace-event-python.c +++ b/tools/perf/util/scripting-engines/trace-event-python.c @@ -236,6 +236,7 @@ static void define_event_symbols(struct event_format *event,  			      cur_field_name);  		break;  	case PRINT_HEX: +	case PRINT_HEX_STR:  		define_event_symbols(event, ev_name, args->hex.field);  		define_event_symbols(event, ev_name, args->hex.size);  		break; @@ -368,10 +369,10 @@ static PyObject *python_process_callchain(struct perf_sample *sample,  		if (node->map) {  			struct map *map = node->map;  			const char *dsoname = "[unknown]"; -			if (map && map->dso && (map->dso->name || map->dso->long_name)) { +			if (map && map->dso) {  				if (symbol_conf.show_kernel_path && map->dso->long_name)  					dsoname = map->dso->long_name; -				else if (map->dso->name) +				else  					dsoname = map->dso->name;  			}  			pydict_set_item_string_decref(pyelem, "dso", | 
